aboutsummaryrefslogtreecommitdiff
path: root/database/migrations
diff options
context:
space:
mode:
authorryo <ryo@nopwd.lol>2025-03-11 16:15:29 +0000
committerryo <ryo@nopwd.lol>2025-03-11 16:15:29 +0000
commitfa4823dd632cad6a5736c1d900a064647bb72c20 (patch)
treea716b9d9f0ce62a9d2ca53f11d64b2a39b178d6c /database/migrations
parente1a48c8208c181fd40ecb065878ba9ea49b1f48f (diff)
Added admin user that can change usres teamHEADmain
Fixed: player login based on user and password Added: show errors to the user
Diffstat (limited to 'database/migrations')
-rw-r--r--database/migrations/2025_03_08_132951_create_players_table.php (renamed from database/migrations/2025_03_06_091820_create_players_table.php)5
1 files changed, 4 insertions, 1 deletions
diff --git a/database/migrations/2025_03_06_091820_create_players_table.php b/database/migrations/2025_03_08_132951_create_players_table.php
index d078edf..13d4e24 100644
--- a/database/migrations/2025_03_06_091820_create_players_table.php
+++ b/database/migrations/2025_03_08_132951_create_players_table.php
@@ -14,9 +14,12 @@ return new class extends Migration
Schema::create('players', function (Blueprint $table) {
$table->id();
$table->timestamps();
- $table->string('name');
+ $table->rememberToken();
+ $table->string('name')->unique();
+ $table->string('password');
$table->string('team');
$table->integer('score');
+ $table->boolean('is_admin')->nullable();
});
Schema::create('sessions', function (Blueprint $table) {