<?php

namespace App\Models\Finanza;

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

class Beca extends Model
{
    use HasFactory;
    protected $table = 'becas';
    protected $fillable = ['tipo', 'id_pivote_horario_carrera_estudiante'];

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

}
