<?php

namespace App\Models\Academico;

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

class Curso extends Model
{
    use HasFactory;
    protected $table = 'cursos';
    protected $fillable = ['nombre'];

    public function pivote_areas_cursos_docentes()
    {
        return $this->hasMany(PivoteAreaCursoDocente::class, 'id_curso');
    }

}
