<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class PeminjamanSeeder extends Seeder
{
    /**
     * Seed the peminjaman table with data from SQL dump
     */
    public function run(): void
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0');

        // Execute each INSERT statement separately
        $statements = [
            base64_decode('[encoded data, 6948 characters]'),
        ];

        foreach ($statements as $sql) {
            DB::statement($sql);
        }

        DB::statement('SET FOREIGN_KEY_CHECKS=1');
    }
}
