request Model is added
This commit is contained in:
@@ -11,22 +11,38 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
// USERS TABLE
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->id(); // Auto-increment primary key
|
||||
|
||||
// Custom customer ID like CID-2025-000001
|
||||
$table->string('customer_id')->unique();
|
||||
|
||||
// Customer details
|
||||
$table->string('customer_name');
|
||||
$table->string('company_name');
|
||||
$table->string('designation')->nullable();
|
||||
$table->string('email')->unique();
|
||||
$table->string('mobile_no');
|
||||
$table->string('address')->nullable();
|
||||
$table->string('pincode')->nullable();
|
||||
$table->date('date')->nullable();
|
||||
|
||||
// Authentication fields
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->string('password')->nullable();
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
// PASSWORD RESETS TABLE
|
||||
Schema::create('password_reset_tokens', function (Blueprint $table) {
|
||||
$table->string('email')->primary();
|
||||
$table->string('token');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
|
||||
// SESSIONS TABLE
|
||||
Schema::create('sessions', function (Blueprint $table) {
|
||||
$table->string('id')->primary();
|
||||
$table->foreignId('user_id')->nullable()->index();
|
||||
@@ -42,8 +58,8 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
Schema::dropIfExists('password_reset_tokens');
|
||||
Schema::dropIfExists('sessions');
|
||||
Schema::dropIfExists('password_reset_tokens');
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user