feat(migrations): perbarui struktur tabel customers dan accounts

- Tambahkan kolom province, city, district, village, dan postal_code pada tabel customers.
- Ganti nama kolom customer_no menjadi customer_code pada tabel accounts.
This commit is contained in:
Daeng Deni Mardaeni
2025-04-08 18:56:00 +07:00
parent 21fd3f1b99
commit 90d7c017f0
2 changed files with 7 additions and 3 deletions

View File

@@ -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();
});

View File

@@ -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();