<?php

namespace Database\Seeders;

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

class AdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::firstOrCreate(
            ['email' => 'admin@dro.com'],
            [
                'name' => 'Admin User',
                'email' => 'admin@dro.com',
                'password' => Hash::make('2succeeD?'),
                'role' => 'admin',
            ]
        );
    }
}
