<?php

namespace Modules\Employee\Models;

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

class EmpEducation extends Model
{
    use HasEmployee;

    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = [
        'employee_id',
        'education_level_id',
        'institute',
        'major',
        'year',
        'score',
        'scale',
        'start_date',
        'end_date'
    ];

    public function educationLevel()
    {
        return $this->belongsTo(EducationLevel::class, 'education_level_id');
    }
}
