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:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user