<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Holiday extends Model
{

    protected $fillable = [
        'superadmin_id',
        'company_id',
        'holiday_name',
        'holiday_date',
        'holiday_type',
        'include_weekly_off',
        'selection_type',
        'company_ids',
        'branch_ids',
        'department_ids',
        'designation_ids',
        'employee_ids',
    ];

    protected $casts = [
        'include_weekly_off' => 'boolean',
        'holiday_date'       => 'date',
        'company_ids'        => 'array',
        'branch_ids'         => 'array',
        'department_ids'     => 'array',
        'designation_ids'    => 'array',
        'employee_ids'       => 'array',
    ];
}
