<?php

namespace App\Models;

use App\Concerns\RecordsCreator;
use Illuminate\Database\Eloquent\Model;

class AttendanceLeaveApplication extends Model
{
    use RecordsCreator;

    /**
     * @var list<string>
     */
    protected $fillable = [
        'staff_type',
        'staff_id',
        'leave_type',
        'from_date',
        'to_date',
        'reason',
    ];

    /**
     * @return array<string, string>
     */
    protected function casts(): array
    {
        return [
            'from_date' => 'date',
            'to_date' => 'date',
        ];
    }
}
