40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class EmployerProfileSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// Create Employer User
|
|
$userId = \Illuminate\Support\Facades\DB::table('users')->insertGetId([
|
|
'name' => 'Employer One',
|
|
'email' => 'employer1@example.com',
|
|
'password' => \Illuminate\Support\Facades\Hash::make('password'),
|
|
'role' => 'employer',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
]);
|
|
|
|
// Create Employer Profile
|
|
\Illuminate\Support\Facades\DB::table('employer_profiles')->insert([
|
|
'user_id' => $userId,
|
|
'company_name' => 'Al Mansoor Household',
|
|
'phone' => '+971 50 123 4567',
|
|
'verification_status' => 'approved',
|
|
'emirates_id_front' => '[DELETED_FOR_PDPL_COMPLIANCE]',
|
|
'emirates_id_back' => '[DELETED_FOR_PDPL_COMPLIANCE]',
|
|
'emirates_id_number' => '784-1990-1234567-8',
|
|
'emirates_id_expiry' => '2028-12-31',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
]);
|
|
}
|
|
}
|