<?php

namespace App\Modules\HR\Core\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use App\Modules\PLATFORM\Settings\Models\Branch;
use App\Modules\PLATFORM\Settings\Models\BranchScoped;

class LeaveType extends Model
{
    use BranchScoped;
    protected $fillable = [
        'name',
        'branch_id',
        'allocated_days',
        'frequency',
        'status',
    ];

    public function branch()
    {
        return $this->belongsTo(Branch::class);
    }
}
