From 333a59ecd08b441ab90e9a9042e124a08083556a Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Thu, 4 Apr 2024 15:20:28 +0300 Subject: [PATCH] Update 2024_04_02_181018_create_customers_table.php --- .../migrations/2024_04_02_181018_create_customers_table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/database/migrations/2024_04_02_181018_create_customers_table.php b/web/database/migrations/2024_04_02_181018_create_customers_table.php index 22f9886..db115a2 100644 --- a/web/database/migrations/2024_04_02_181018_create_customers_table.php +++ b/web/database/migrations/2024_04_02_181018_create_customers_table.php @@ -15,7 +15,8 @@ return new class extends Migration $table->id(); $table->string('name')->nullable(); - $table->string('email')->nullable(); + $table->string('email')->nullable()->unique(); + $table->string('username')->nullable()->unique(); $table->string('phone')->nullable(); $table->string('address')->nullable(); $table->string('city')->nullable();