Skip to content

Commit

Permalink
migration users
Browse files Browse the repository at this point in the history
  • Loading branch information
Romaindk committed Sep 12, 2024
1 parent 42dc5c7 commit f2d6b6a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions database/migrations/2014_10_12_000000_create_users_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ public function up(): void
Schema::create('users', static function (Blueprint $table): void {
$table->id();
$table->enum('gender', ['male', 'female', 'other']);
$table->string('last_name', 45);
$table->string('last_name', 45)->index();
$table->string('first_name', 45);
$table->date('date_of_birth')->nullable();
$table->string('email')->unique();
$table->string('email')->unique()->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->boolean('newsletter')->default(0);
$table->string('password');
$table->string('password', 150);
$table->rememberToken();
$table->string('address', 100)->nullable();
$table->string('address_2', 100)->nullable();
Expand All @@ -30,6 +30,11 @@ public function up(): void
$table->string('phone_2', 20)->nullable();
$table->string('profile_photo_path', 2048)->nullable();
$table->text('comment')->nullable();
$table->string('job', 50)->nullable();
$table->string('contact_name')->nullable();
$table->string('contact_phone')->nullable();
$table->integer('nb_children')->nullable();
$table->foreignId('parent_id')->nullable();
$table->timestamps();
});
}
Expand Down

0 comments on commit f2d6b6a

Please sign in to comment.