<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\User;
use App\Models\Product;
use App\Models\Client;
use App\Models\Supplier;
use App\Models\Appointment;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        //Crear el Super Admin
        User::factory()->create([
            'name' => 'Sergio Lauck',
            'email' => 'admin@lauck.com',
            'password' => bcrypt('password'), // Cambiar en producción
            'role' => 'admin',
        ]);

        //Crear un Empleado de prueba
        User::factory()->create([
            'name' => 'Empleado Test',
            'email' => 'taller@lauck.com',
            'password' => bcrypt('password'),
            'role' => 'employee',
        ]);

    }
}
