diff --git a/database/migrations/0001_01_01_000000_create_users_table.php b/database/migrations/0001_01_01_000000_create_users_table.php index 05fb5d9..211f2a0 100644 --- a/database/migrations/0001_01_01_000000_create_users_table.php +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -13,7 +13,9 @@ return new class extends Migration { Schema::create('users', function (Blueprint $table) { $table->id(); - $table->string('name'); + $table->string('first_name')->nullable()->index(); + $table->string('last_name')->nullable()->index(); + $table->string('name')->index(); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password');