<?php

namespace App\Models\Academico;

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

class Ciclo extends Model
{
    use HasFactory;
    protected $table = 'ciclos';
    protected $fillable = ['nombre', 'fecha_inicio', 'fecha_final', 'estado'];

    public function pivote_horarios()
    {
        return $this->hasMany(PivoteHorario::class, 'id_ciclo');
    }
}
