<?php

namespace App\Modules\HR\Overtime\Models;

use App\Modules\Admin\Tenancy\Traits\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class OvertimeRatePolicy extends Model
{
    use BelongsToTenant;

    protected $table = 'hr_overtime_rate_policies';

    protected $guarded = ['id'];

    protected function casts(): array
    {
        return [
            'is_default' => 'boolean',
            'is_active' => 'boolean',
            'normal_multiplier' => 'decimal:2',
            'weekend_multiplier' => 'decimal:2',
            'holiday_multiplier' => 'decimal:2',
            'night_multiplier' => 'decimal:2',
        ];
    }
}
