<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class EvaluationPeriod extends Model
{
    protected $fillable = ['name','start_date','end_date','type','status'];
    protected $casts    = ['start_date'=>'date','end_date'=>'date'];

    public function evaluations() { return $this->hasMany(PerformanceEvaluation::class, 'period_id'); }
}
