<?php

namespace Database\Seeders;

use Database\Seeders\KategoriSeeder;
use Database\Seeders\UserSeeder;
use Database\Seeders\AnggotaSeeder;
use Database\Seeders\BukuFromSqlSeeder;
use Database\Seeders\BukuTamuSeeder;
use Database\Seeders\PeminjamanSeeder;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0');

        $this->call([
            KategoriSeeder::class,
            UserSeeder::class,
            AnggotaSeeder::class,
            BukuFromSqlSeeder::class,
            BukuTamuSeeder::class,
            PeminjamanSeeder::class,
        ]);
        DB::statement('SET FOREIGN_KEY_CHECKS=1');
    }
}
