<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;

class SubKriteriaSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('data_sub_kriterias')->insert([
            [
                'kriteria_id' => 1,
                'nama_sub_kriteria' => '51 – 100 mm',
                'bobot' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 1,
                'nama_sub_kriteria' => '101 – 200 mm',
                'bobot' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 1,
                'nama_sub_kriteria' => '201 – 300 mm',
                'bobot' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 1,
                'nama_sub_kriteria' => '< 50 atau > 300 mm',
                'bobot' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 2,
                'nama_sub_kriteria' => '6.0 – 6.8',
                'bobot' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 2,
                'nama_sub_kriteria' => '5.5 – 5.9 atau 6.9 – 7.2',
                'bobot' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 2,
                'nama_sub_kriteria' => '5.0 – 5.4 atau 7.3 – 7.5',
                'bobot' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 2,
                'nama_sub_kriteria' => '< 5.0 atau > 7.5',
                'bobot' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 3,
                'nama_sub_kriteria' => 'Lempung Berpasir',
                'bobot' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 3,
                'nama_sub_kriteria' => 'Lempung',
                'bobot' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 3,
                'nama_sub_kriteria' => 'Lempung Liat',
                'bobot' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 3,
                'nama_sub_kriteria' => 'Berpasir Kasar atau Liat Berat',
                'bobot' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 4,
                'nama_sub_kriteria' => '24 - 28 °C',
                'bobot' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 4,
                'nama_sub_kriteria' => '29 – 32 °C atau 17 – 23 °C',
                'bobot' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 4,
                'nama_sub_kriteria' => '33 – 34 °C atau 14 – 16 °C',
                'bobot' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 4,
                'nama_sub_kriteria' => '> 34 °C atau < 14 °C',
                'bobot' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 5,
                'nama_sub_kriteria' => '60 – 80%',
                'bobot' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 5,
                'nama_sub_kriteria' => '50 – 59%',
                'bobot' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 5,
                'nama_sub_kriteria' => '40 – 49%',
                'bobot' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 5,
                'nama_sub_kriteria' => '< 40% atau > 80%',
                'bobot' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 6,
                'nama_sub_kriteria' => 'Padi, Jagung, Tebu, Bawang',
                'bobot' => 4,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 6,
                'nama_sub_kriteria' => 'Bayam, Sawi, Kacang Tanah',
                'bobot' => 3,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 6,
                'nama_sub_kriteria' => 'Tomat, Terong, Tembakau',
                'bobot' => 2,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kriteria_id' => 6,
                'nama_sub_kriteria' => 'Semua Jenis Tanaman Cabai',
                'bobot' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ]
        ]);
    }
}
