<?php

namespace Database\Seeders;

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

class PagIbigSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $pagibigData = [
            [
                'salary_min' => '1501.00',
                'salary_max' => '99999999',
                'employee_share' => '0.02',
                'employer_share' => 0.02,
            ],
            [
                'salary_min' => '0',
                'salary_max' => '1500',
                'employee_share' => '0.02',
                'employer_share' => 0.01,
            ]
        ];

        PagIbigTable::insert($pagibigData);
    }

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