<?php

namespace Database\Seeders;

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

class UsersSeeder extends Seeder
{
    public function run()
    {
        // Admin Izin Tamu
        DB::table('admins')->insert([
            'name' => 'Info Asama',
            'email' => 'info@asama.co.id',
            'password' => Hash::make('Edppde45'), // password default
            'created_at' => now(),
            'updated_at' => now(),
        ]);

        // Security
        // Security (pakai username, bukan email)
        DB::table('security')->insert([
            'name' => 'Security Asama',
            'username' => 'securityaman',       // username biasa
            'password' => Hash::make('Edppde45'),
            'created_at' => now(),
            'updated_at' => now(),
        ]);
    }
}