<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class LeaveType extends Model
{
    protected $fillable = [
        'name','code','days_allowed_per_year',
        'requires_approval','is_paid','color','description','is_active',
    ];

    public function leaves()   { return $this->hasMany(Leave::class); }
    public function balances() { return $this->hasMany(LeaveBalance::class); }
}
