<?php

namespace App\Modules\HR\Attendance\Models;

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

class Holiday extends Model
{
    use BelongsToTenant;

    protected $table = 'hr_holidays';

    protected $fillable = [
        'tenant_id', 'name', 'date', 'is_recurring_yearly', 'is_active',
    ];

    protected function casts(): array
    {
        return [
            'date' => 'date',
            'is_recurring_yearly' => 'boolean',
            'is_active' => 'boolean',
        ];
    }
}
