<?php

namespace Database\Seeders;

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

class AdminSeeder extends Seeder
{
    public function run(): void
    {
        Admin::updateOrCreate(
            ['email' => 'admin@jamcorner.com.au'],
            [
                'name'     => 'JAM Super Admin',
                'email'    => 'admin@jamcorner.com.au',
                'password' => Hash::make('Admin@JAM2026!'),
                'role'     => 'super_admin',
                'status'   => 'active',
            ]
        );
    }
}
