<?php

namespace Modules\Lpj\Database\Seeders;

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

class RegionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $region = [
            [
                'code' => 'R01',
                'name' => 'Region 1',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'R02',
                'name' => 'Region 2',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'R03',
                'name' => 'Region 3',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'R04',
                'name' => 'Region 4',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'code' => 'R05',
                'name' => 'Region 5',
                'created_at' => now(),
                'updated_at' => now()
            ]
        ];

        foreach ($region as $value) {
            Regions::insert($value);
        }
    }
}
