<?php

namespace App\Models;

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

class EmpCovenant extends Model
{
    use HasFactory;
    protected $table = 'emp_covenants';
    protected $fillable = [
        'Emp',
        'Date',
        'Name',
        'Price',
        'Reason',
        'Life_Expectancy',


    ];

    public function Emp()
    {
        return $this->belongsTo(Employess::class,'Emp');
    }
}
