<?php

namespace Database\Seeders;

use App\Models\Admin\Tizinjenis;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TizinjenisSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Tizinjenis::query()->forceDelete();

        $datas = [
            [
                'id' => 1,
                'name' => 'lain',
                'title' => 'Lainnya',
                'sta' => 0,
            ],
            [
                'id' => 2,
                'name' => 'sakit',
                'title' => 'Sakit',
                'sta' => 0,
            ],
            [
                'id' => 3,
                'name' => 'dispensasi',
                'title' => 'Dispensasi',
                'sta' => 0,
            ],
            [
                'id' => 4,
                'name' => 'personal',
                'title' => 'Keperluan Pribadi',
                'sta' => 0,
            ],
        ];
        foreach ($datas as $data) {
            Tizinjenis::forceCreate($data);
        }
        
    }
}
