<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    public function run(): void
    {
        DB::table('users')->upsert([
            [
                'name'       => 'Francia Patricia',
                'email'      => 'FranciaP@gmail.com',
                'password'   => Hash::make('Francia123*'),
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name'       => 'Admin',
                'email'      => 'sebas@gmail.com',
                'password'   => Hash::make('Sebas123*'),
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ], ['email'], ['name', 'password', 'updated_at']);
    }
}
