<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        \App\Models\User::factory()->create([
            'name' => 'Admin User',
            'email' => 'admin@cargo.com',
            'password' => bcrypt('password'),
            'role' => 'Branch Manager',
        ]);

        \App\Models\User::factory()->create([
            'name' => 'Cashier User',
            'email' => 'cashier@cargo.com',
            'password' => bcrypt('password'),
            'role' => 'Cashier',
        ]);

        \App\Models\User::factory()->create([
            'name' => 'Receptionist User',
            'email' => 'reception@cargo.com',
            'password' => bcrypt('password'),
            'role' => 'Receptionist',
        ]);

        \App\Models\User::factory()->create([
            'name' => 'Driver User',
            'email' => 'driver@cargo.com',
            'password' => bcrypt('password'),
            'role' => 'Driver',
        ]);
    }
}
