<?php

namespace Database\Seeders;

use App\Models\Guru;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    public function run(): void
    {
        // Superadmin
        User::firstOrCreate(['email' => 'superadmin@e-ujian.com'], [
            'name'     => 'Super Admin',
            'password' => Hash::make('password'),
            'role'     => 'superadmin',
            'is_aktif' => true,
        ]);

        // Admin / Panitia
        User::firstOrCreate(['email' => 'admin@e-ujian.com'], [
            'name'     => 'Admin Panitia',
            'password' => Hash::make('password'),
            'role'     => 'admin',
            'is_aktif' => true,
        ]);

    }
}
