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 3471d39..c1821c8 100644 --- a/database/migrations/0001_01_01_000000_create_users_table.php +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -1,5 +1,6 @@ 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();