<?php

namespace App\Models;

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

class HorarioPreferencia extends Model
{
    use HasFactory;
    protected $table = 'horariospreferencias';
    
    protected $fillable = [
        'descripcion',
    ];

    public function formularios()
    {
        return $this->belongsToMany(Formulario::class, 'formularios_horariospreferidos', 'horariopreferencia_id', 'formulario_id');
    }

}
