<?php

namespace App\Models;

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

class HorarioDeAtencion extends Model
{
    use HasFactory;
    protected $table = 'horariosatenciones';
    
    protected $fillable = [
        'horariocomienzo',
        'horariofin',
        'tipo',
        'diadeatencion_id',
    ];

    public function diaatencion()
    {
        return $this->belongsTo(DiaDeAtencion::class, 'diadeatencion_id', 'id');
    }
    
}
