diff --git a/database/migrations/2025_02_06_072406_create_customers_table.php b/database/migrations/2025_02_06_072406_create_customers_table.php index 896857d..8dea57e 100644 --- a/database/migrations/2025_02_06_072406_create_customers_table.php +++ b/database/migrations/2025_02_06_072406_create_customers_table.php @@ -16,8 +16,13 @@ return new class extends Migration $table->string('customer_code')->unique(); $table->string('name')->nullable(); $table->text('address')->nullable(); + $table->string('province')->nullable(); + $table->string('city')->nullable(); + $table->string('district')->nullable(); + $table->string('village')->nullable(); + $table->string('postal_code')->nullable(); $table->string('branch_code')->nullable(); - $table->string('date_of_birth')->nullable(); + $table->date('date_of_birth')->nullable(); $table->string('email')->nullable(); $table->timestamps(); }); diff --git a/database/migrations/2025_02_06_095447_create_accounts_table.php b/database/migrations/2025_02_06_095447_create_accounts_table.php index 585c1f0..879fe63 100644 --- a/database/migrations/2025_02_06_095447_create_accounts_table.php +++ b/database/migrations/2025_02_06_095447_create_accounts_table.php @@ -14,12 +14,11 @@ return new class extends Migration Schema::create('accounts', function (Blueprint $table) { $table->id(); $table->string('account_number')->unique(); - $table->string('customer_no')->nullable(); + $table->string('customer_code')->nullable(); $table->string('currency')->nullable(); $table->date('opening_date')->nullable(); $table->string('branch_code')->nullable(); $table->string('product_category')->nullable(); - $table->string('co_code')->nullable(); $table->string('open_category')->nullable(); $table->string('start_year_bal', 15, 2)->nullable(); $table->date('closure_date')->nullable();