<?php

namespace Modules\Lpj\Database\Seeders;

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

class NilaiPlatformSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $nilai_platfond = [
            [
                'code' => 'NP001',
                'name' => '5 M - 10 M',
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'code' => 'NP002',
                'name' => '2 M - 5 M',
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'code' => 'NP003',
                'name' => '< 2M',
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'code' => 'NP004',
                'name' => '> 10 M',
                'status' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ]
        ];

        foreach ($nilai_platfond as $np) {
            NilaiPlafond::insert($np);
        }
    }
}
