<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AttendanceSetting extends Model
{
    protected $fillable = [
        'latitude',
        'longitude',
        'allowed_radius',
        'late_minute_price',
        'absence_deduction_days',
        'unpaid_leave_deduction_days',
        'missing_checkout_penalty_amount',
    ];

    protected $casts = [
        'latitude' => 'float',
        'longitude' => 'float',
        'allowed_radius' => 'int',
        'late_minute_price' => 'int',
        'absence_deduction_days' => 'int',
        'unpaid_leave_deduction_days' => 'int',
        'missing_checkout_penalty_amount' => 'int',
    ];
}
