<?php

namespace Database\Seeders;

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

class KategoriSeeder extends Seeder
{
    /**
     * Seed the kategori 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('SU5TRVJUIElOVE8gYGthdGVnb3JpYCAoYGlkX2thdGVnb3JpYCwgYG5hbWFfa2F0ZWdvcmlgKSBWQUxVRVMKKDEsICdVbXVtJyk7'),
        ];

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

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