diff --git a/database/migrations/2025_01_15_032951_create_temp_accounts_table.php b/database/migrations/2025_01_15_032951_create_temp_accounts_table.php deleted file mode 100644 index a866f0c..0000000 --- a/database/migrations/2025_01_15_032951_create_temp_accounts_table.php +++ /dev/null @@ -1,38 +0,0 @@ -id(); - foreach ($fieldArray as $field) { - $field = trim($field); - if ($field !== '@id') { // Skip @id as we already have $table->id() - $table->text($field)->nullable(); - } - } - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('temp_accounts'); - } -}; 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 91ee86f..585c1f0 100644 --- a/database/migrations/2025_02_06_095447_create_accounts_table.php +++ b/database/migrations/2025_02_06_095447_create_accounts_table.php @@ -14,11 +14,18 @@ return new class extends Migration Schema::create('accounts', function (Blueprint $table) { $table->id(); $table->string('account_number')->unique(); - $table->string('customer_code')->nullable(); + $table->string('customer_no')->nullable(); $table->string('currency')->nullable(); - $table->string('opening_date')->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(); + $table->string('account_type')->nullable(); + $table->string('stmt_email')->nullable(); + $table->string('stmt_sent_type')->nullable(); $table->timestamps(); }); }