user id profile
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
@@ -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',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user