<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    public function run(): void
    {
        // 1. Membuat Akun Admin
        User::create([
            'name' => 'Margiyanto',
            'email' => 'umaardhani.04@gmail.com',
            'password' => Hash::make('admin123'),
            'role' => 'admin',
        ]);

        // 2. Membuat Akun Kasir Biasa
        User::create([
            'name' => 'Edi',
            'email' => 'edi@gmail.com',
            'password' => Hash::make('password123'),
            'role' => 'user',
        ]);
    }
}