<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // Crear usuario administrador
        User::create([
            'name' => 'Admin',
            'email' => 'admin@medicalcenter.com',
            'password' => Hash::make('password'),
            'active' => 1
        ]);

        // Crear usuario doctor
        User::create([
            'name' => 'Doctor',
            'email' => 'doctor@medicalcenter.com',
            'password' => Hash::make('password'),
            'active' => 1
        ]);
    }
}
