<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class EmployeeLeave extends Model
{
    protected $table = 'employee_leaves';

    protected $fillable = [
        'employee_id',
        'leave_type',
        'leave_duration',
        'from_date',
        'to_date',
        'total_days',
        'reason',
        'status'
    ];

    // Relationship
    public function employee()
    {
        return $this->belongsTo(Employee::class);
    }
}
