customer section

This commit is contained in:
Abhishek Mali
2025-11-18 10:01:59 +05:30
parent df89031d36
commit 63daef6a92
10 changed files with 664 additions and 12 deletions

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::table('users', function (Blueprint $table) {
// status: active / inactive
$table->enum('status', ['active', 'inactive'])->default('active')->after('pincode');
// premium / regular
$table->enum('customer_type', ['regular', 'premium'])->default('regular')->after('status');
// optional: profile image path
$table->string('profile_image')->nullable()->after('customer_type');
});
}
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['status', 'customer_type', 'profile_image']);
});
}
};