<?php

namespace Modules\Lpj\Database\Seeders;

use Illuminate\Database\Seeder;
use Modules\Lpj\Models\JenisPenilaian;

class JenisPenilaianSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $jenis_penilaian = [
            [
                'code' => 'JP1',
                'name' => 'Internal',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'JP2',
                'name' => 'External',
                'created_at' => now(),
                'updated_at' => now()
            ],
        ];

        foreach ($jenis_penilaian as $value) {
            JenisPenilaian::insert($value);
        }
    }
}
