<?php

namespace Database\Seeders;

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

class SuperAdminSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
         User::updateOrCreate(
            ['email' => 'simon_peraboh@gmail.com'],
            [
                'name' => 'Charity',
                'surname' => 'Simon-Peraboh',
                'email' => 'teideispc@gmail.com',
                'role' => 'super_admin',
                'password' => Hash::make('NPHM@4321'), // Set a default password
                'email_verified_at' => now(),
            ]
        );
    }
}
