<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ProcessedLeave extends Model
{
    use HasFactory;

    // Specify that your table doesn't have a primary key
    protected $primaryKey = null;
    public $incrementing = false;
    protected $table="processed_leaves";

    protected $guarded = [];

    public function leave_type(): BelongsTo
    {
        return $this->belongsTo(LeaveType::class, 'type');
    }

}
