<?php

namespace Database\Seeders;

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

class KriteriaSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('data_kriterias')->insert([
            [
                'kode_kriteria' => 'C1',
                'nama_kriteria' => 'Curah Hujan',
                'jenis' => 'Benefit',
                'bobot' => 0.25,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kode_kriteria' => 'C2',
                'nama_kriteria' => 'pH Tanah',
                'jenis' => 'Benefit',
                'bobot' => 0.20,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kode_kriteria' => 'C3',
                'nama_kriteria' => 'Tekstur Tanah',
                'jenis' => 'Benefit',
                'bobot' => 0.15,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kode_kriteria' => 'C4',
                'nama_kriteria' => 'Temperatur',
                'jenis' => 'Benefit',
                'bobot' => 0.15,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kode_kriteria' => 'C5',
                'nama_kriteria' => 'Kelembapan',
                'jenis' => 'Benefit',
                'bobot' => 0.15,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'kode_kriteria' => 'C6',
                'nama_kriteria' => 'Tanaman Sebelumnya',
                'jenis' => 'Benefit',
                'bobot' => 0.10,
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ]);
    }
}
