<?php

namespace Database\Seeders;

use App\Models\AttendanceSetting;
use Illuminate\Database\Seeder;

class AttendanceSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        AttendanceSetting::query()->firstOrCreate([], [
            'checkin_start' => '07:00:00',
            'checkin_end' => '09:00:00',
            'checkout_start' => '15:00:00',
            'late_grace_minutes' => 0,
            'effective_workdays' => [1, 2, 3, 4, 5],
            'timezone' => 'Asia/Jakarta',
            'allow_checkin_after_end' => true,
            'require_checkout' => true,
            'office_latitude' => -7.5992153,
            'office_longitude' => 112.1035051,
            'attendance_radius_meters' => 90,
        ]);
    }
}
