<?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',
            'created_at' => now(),
            'updated_at' => now(),
        ]);
    }
}
