<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    use WithoutModelEvents;

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

        // Cria seu usuário de acesso (Admin)
        User::factory()->create([
            'name' => 'Admin OmniBoard',
            'email' => 'admin@omniboard.com',
            'password' => bcrypt('password'), // A senha será 'password'
            'role' => 'admin',
        ]);
    }
}
