<?php

namespace App\Models\Educacion;

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

class Universidad extends Model
{
    use HasFactory;

    protected $table = 'universidades';
    protected $fillable = ['nombre', 'tipo'];

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