<?php

namespace App\Models\Evaluacion;

use App\Models\PivoteHorarioCarreraEstudiante;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Nota extends Model
{
    use HasFactory;
    protected $table = 'notas';
    protected $fillable = ['tipo', 'nota', 'fecha', 'id_pivote_horario_carrera_estudiante'];

    public function pivote_horarios_carreras_estudiantes()
    {
        return $this->belongsTo(PivoteHorarioCarreraEstudiante::class, 'id_pivote_horario_carrera_estudiante');
    }
}
