<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class UsersSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        [
            User::create([
                'username' => 'admin',
                'name' => 'Admin Sage',
                'email' => 'adminSage@gmail.com',
                'password' => Hash::make('admin123'),
                'role' => 'admin',
                'is_active' => true
            ]),
            User::create([
                'username' => 'petugas',
                'name' => 'Petugas Sage',
                'email' => 'petugasSage@gmail.com',
                'password' => Hash::make('petugas123'),
                'role' => 'user',
                'is_active' => true
            ]),
        ];
    }
}
