diff --git a/app/Models/Customer.php b/app/Models/Customer.php index 111e3dd..67e8dec 100644 --- a/app/Models/Customer.php +++ b/app/Models/Customer.php @@ -21,7 +21,10 @@ class Customer extends Model 'postal_code', 'branch_code', 'date_of_birth', - 'email' + 'email', + 'sector', + 'customer_type', + 'birth_incorp_date' ]; public function accounts(){ diff --git a/database/migrations/2025_06_03_050056_add_sector_customer_type_birth_incorp_date_to_customers_table.php b/database/migrations/2025_06_03_050056_add_sector_customer_type_birth_incorp_date_to_customers_table.php new file mode 100644 index 0000000..d6b5e62 --- /dev/null +++ b/database/migrations/2025_06_03_050056_add_sector_customer_type_birth_incorp_date_to_customers_table.php @@ -0,0 +1,30 @@ +string('sector')->nullable()->after('branch_code'); + $table->string('customer_type')->nullable()->after('sector'); + $table->string('birth_incorp_date')->nullable()->after('date_of_birth'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('customers', function (Blueprint $table) { + $table->dropColumn(['sector', 'customer_type', 'birth_incorp_date']); + }); + } +};