<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        $this->call([
            ConfigAppSeeder::class,
            RolesSeeder::class,
            MenuSeeder::class,
            TingkatSeeder::class,
            TahunAkademikSeeder::class,
            JurusanSeeder::class,
            KelasSeeder::class,
        ]);
        
        // siswa::factory()->count(50)->create();

        User::factory()->create([
            'name' => 'Test User',
            'email' => 'test@example.com',
            'primary_role_id' => 3
        ]);
        User::factory()->create([
            'name' => 'administrator',
            'email' => 'admin@demo.com',
            'primary_role_id' => 1
            // 'password' => 'password@123',
        ]);
    }
}
