<?php

namespace Database\Seeders;

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

class JobClassificationSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $jobClassifications = [
            [
                'name' => 'Rank & File',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Supervisor',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Manager',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Executive',
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ];

        \App\Models\JobClassification::insert($jobClassifications);
    }

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