<?php

namespace Database\Seeders;

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

class AdminUserSeeder extends Seeder
{
    public function run(): void
    {
        AdminUser::updateOrCreate(
            ['email' => 'admin@syye.net'],
            [
                'password' => Hash::make('tjekdfl1234%^'),
                'full_name' => '최고관리자',
                'nickname' => 'superadmin',
                'phone' => null,
                'role' => 'super',
                'status' => 'active',
                'is_consult_available' => true,
                'consult_types' => ['signup','login','payment','giftcard','event'],
                'totp_enabled' => false,
            ]
        );
    }
}
