Initial commit - Physiotherapy Clinic Management System
This commit is contained in:
commit
dbb326f2cc
300 files changed
+144285
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('payments', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user