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

class EvaluationCriteria extends Model
{
    // "evaluation_criterias" is wrong — the table is already plural
    protected $table = 'evaluation_criteria';

    protected $fillable = ['name','description','category','max_score','weight','is_active'];

    public function scores() { return $this->hasMany(EvaluationScore::class, 'criteria_id'); }
}
