id(); $table->string('payment_number')->unique(); $table->foreignId('invoice_id')->constrained('invoices'); $table->date('payment_date'); $table->decimal('amount', 15, 2); $table->enum('payment_method', ['cash', 'card', 'bank_transfer', 'check', 'insurance', 'other']); $table->string('reference_number')->nullable(); $table->text('notes')->nullable(); $table->foreignId('received_by')->constrained('users'); $table->timestamps(); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('payments'); } };