<?php

namespace Database\Seeders;

use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // Seed Admin
        User::factory()->create([
            'name' => 'Admin',
            'email' => 'admin@gmail.com',
            'user_type' => 'admin',
            'password' => bcrypt('admin1234'),
        ]);

        // Seed User
        User::factory()->create([
            'name' => 'User',
            'email' => 'user@gmail.com',
            'user_type' => 'user',
            'password' => bcrypt('user1234'),
        ]);

        // Seed Supervisor
        User::factory()->create([
            'name' => 'Supervisor',
            'email' => 'supervisor@gmail.com',
            'user_type' => 'supervisor',
            'password' => bcrypt('supervisor1234'),
        ]);

        // Seed Teknisi
        User::factory()->create([
            'name' => 'Teknisi',
            'email' => 'teknisi@gmail.com',
            'user_type' => 'teknisi',
            'password' => bcrypt('teknisi1234'),
        ]);
    }
}
