<?php

namespace App\Models;

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

class Feriado extends Model
{
    use HasFactory;
    protected $table = 'feriados';
    
    protected $fillable = [
        'fecha',
        'descripcion',
        'agenda_id',
    ];

        public function agenda() 
        {
            return $this->belongsTo(Agenda::class, 'agenda_id', 'id');
        }
    }
