This commit is contained in:
Dr Masroor Ehsan 2024-12-28 12:15:27 +06:00
parent 023eb4616e
commit 562d46cf75

View File

@ -1,5 +1,6 @@
<?php
use App\Models\Enums\UserRole;
use App\Models\Site;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
@ -21,7 +22,7 @@ public function up(): void
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->unsignedTinyInteger('role')->default(0);
$table->unsignedTinyInteger('role')->default(UserRole::Guest->value);
//$table->foreignId('current_team_id')->nullable();
$table->string('profile_photo_path')->nullable();
$table->foreignIdFor(Site::class)->nullable()->index();