<?php

namespace Database\Seeders;

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

class AdminSeeder extends Seeder
{
    public function run(): void
    {
        User::firstOrCreate(
            ['email' => 'saufi@mbip.gov.my'],
            [
                'name'     => 'Admin eCert MBIP',
                'password' => Hash::make('YongTauFu26'),
                'role'     => 'super_admin',
            ]
        );

        $this->command->info('Admin account created: saufi@mbip.gov.my / YongTauFu26');
    }
}
