<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Periodo extends Model
{
    use HasFactory;

    protected $table = 'periodos';

    protected $fillable = [
        'nombre',
    ];

    public function matriculaciones(){
        return $this->hasMany(Matriculacion::class);
    }

    public function gruposAcademicos()
    {
        return $this->hasMany(Grupos_academico::class);
    }
    
}
