<?php

namespace Database\Seeders;

use App\Models\BenefitType;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class BenefitTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $benefitType = [
            [
                'name' => 'Meal subsidy',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'name' => 'Communication',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'name' => 'Transportation',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'name' => 'Company Car',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'name' => 'Health Plan',
                'created_at' => now(),
                'updated_at' => now()
            ],
        ];

        \App\Models\BenefitType::insert($benefitType);
    }

    public function reset(){
        BenefitType::truncate();
    }
}
