<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    public function run(): void
    {
        DB::table('users')->insert([
            [
                'name' => 'Test User',
                'email' => 'test@example.com',
                'password' => Hash::make('admin'),
                'role' => 'admin',
                'created_at' => now(),
            ],
            [
                'name' => 'Budi Guru',
                'email' => 'guru@sekolah.com',
                'password' => Hash::make('password123'),
                'role' => 'guru',
                'created_at' => now(),
            ],
            [
                'name' => 'Siti Kepsek',
                'email' => 'kepsek@sekolah.com',
                'password' => Hash::make('password123'),
                'role' => 'kepsek',
                'created_at' => now(),
            ]
        ]);
    }
}