- Tambahkan kolom province, city, district, village, dan postal_code pada tabel customers. - Ganti nama kolom customer_no menjadi customer_code pada tabel accounts.
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('accounts', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('account_number')->unique();
|
|
$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('open_category')->nullable();
|
|
$table->string('start_year_bal', 15, 2)->nullable();
|
|
$table->date('closure_date')->nullable();
|
|
$table->string('account_type')->nullable();
|
|
$table->string('stmt_email')->nullable();
|
|
$table->string('stmt_sent_type')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('accounts');
|
|
}
|
|
};
|