<?php

namespace Database\Seeders;

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

class BukuFromSqlSeeder extends Seeder
{
    public function run(): void
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0');
        DB::statement('SET SESSION sql_mode=""');

        // Execute each INSERT statement separately
        $statements = [
            base64_decode('[encoded data, 67184 characters]'),
            base64_decode('[encoded data, 67168 characters]'),
            base64_decode('[encoded data, 67244 characters]'),
            base64_decode('[encoded data, 67308 characters]'),
            base64_decode('[encoded data, 67316 characters]'),
            base64_decode('[encoded data, 67056 characters]'),
            base64_decode('[encoded data, 67228 characters]'),
            base64_decode('[encoded data, 5548 characters]'),
        ];

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

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