user id profile

This commit is contained in:
2026-05-25 10:58:39 +07:00
parent 7669511220
commit 7e8ad932a4
3 changed files with 3 additions and 1 deletions
@@ -51,7 +51,6 @@ return new class extends Migration
Schema::create('profiles', function (Blueprint $table) { Schema::create('profiles', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_id')->constrained(); $table->foreignId('user_id')->constrained();
$table->string('user_uid');
$table->string('role')->nullable(); $table->string('role')->nullable();
$table->string('nama'); $table->string('nama');
+2
View File
@@ -20,6 +20,7 @@ class AdminUserSeeder extends Seeder
'email_verified_at' => now(), 'email_verified_at' => now(),
'password' => Hash::make('Asalada123'), 'password' => Hash::make('Asalada123'),
'role' => 'super_admin', 'role' => 'super_admin',
'uid' => 'AD-1234567891',
'created_at' => now(), 'created_at' => now(),
'updated_at' => now(), 'updated_at' => now(),
]); ]);
@@ -44,6 +45,7 @@ class AdminUserSeeder extends Seeder
'created_at' => now(), 'created_at' => now(),
'updated_at' => now(), 'updated_at' => now(),
'adat_id' => null, 'adat_id' => null,
'user_uid' => 'AD-1234567891',
]); ]);
} }
} }
+1
View File
@@ -20,6 +20,7 @@ class DatabaseSeeder extends Seeder
User::factory()->create([ User::factory()->create([
'name' => 'Test User', 'name' => 'Test User',
'email' => 'test@example.com', 'email' => 'test@example.com',
'uid' => 'AD-1234567890',
]); ]);
} }
} }