<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class NatureOfRequestSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $natureOfRequest = [
            [
                'parent_id' => 1,
                'name' => 'FILLING UP OF PLANTILLA POSITION',
                'request_for' => 'MRF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'HIRING OF NON-PLANTILLA PERSONNEL',
                'request_for' => 'MRF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Promotion to: Position',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Transfer to: Position',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Reassignment: Position',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Salary alignment/adjustment due to',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Seperation due to',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Relocation to: Unit',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Designation as OIC: Position',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Detail to: Position',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Development Assignment: Position',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Position Classification/Reclassification',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'parent_id' => 1,
                'name' => 'Others (Specify)',
                'request_for' => 'PAF',
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ];

        \App\Models\NatureOfRequest::insert($natureOfRequest);
    }

    public function reset() {
        \App\Models\NatureOfRequest::truncate();
    }
}
