<?php

namespace App\Models;

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

class HorarioReceso extends Model
{
    use HasFactory;
    protected $table = 'horariosrecesos';
    
    protected $fillable = [
        'comienzo',
        'fin',
        'diadeatencion_id',
    ];

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

}
