<?php

namespace Database\Seeders;

use App\Models\User;
use App\Models\Guru;
use App\Models\Santri;
use App\Models\Kelas;
use App\Models\Semester;
use App\Models\MataPelajaran;
use App\Models\Alumni;
use App\Models\Berita;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // Seed master data first
        Kelas::factory(10)->create();
        Semester::factory(2)->create();
        MataPelajaran::factory(10)->create();

        // Seed basic users (admin, guru, santri)
        $this->call([
            UserSeeder::class,
        ]);

        // Seed dependent data
        Alumni::factory(10)->create();
        Berita::factory(15)->create();

        // Seeder relasi berat di akhir
    }
}
