<?php

namespace Modules\Employee\Models;

use Illuminate\Database\Eloquent\Model;
use Modules\Employee\Models\Traits\HasEmployee;

class EmpTermination extends Model
{
    use HasEmployee;

    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = [
        'employee_id',
        'termination_id',
        'termination_date',
        'note'
    ];

    public function termination()
    {
        return $this->belongsTo(Termination::class, 'termination_id');
    }
}
