<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // User::factory(10)->create();

        User::create([
            'first_name' => 'Administrador',
            'last_name' => '',
            'username' => 'admin',
            'email' => 'admin@example.com',
            'password' => Hash::make('12345678'),
            'is_active' => true,
            'access_start' => now(),
        ]);

        $this->call([
            PermissionSeeder::class,
            RolePermissionSeeder::class
        ]);
    }
}
