<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        // Super Admin
        User::firstOrCreate(
            ['email' => 'superadmin@farmmanager.com'],
            [
                'name'     => 'Super Admin',
                'password' => Hash::make('SuperAdmin@123'),
                'role'     => 'super_admin',
            ]
        );

        // Default Admin
        User::firstOrCreate(
            ['email' => 'admin@farmmanager.com'],
            [
                'name'     => 'Farm Admin',
                'password' => Hash::make('Admin@123'),
                'role'     => 'admin',
            ]
        );
    }
}
