<?php

namespace App\Models;

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

class ModoVacaciones extends Model
{
    use HasFactory;
    protected $table = 'modosvacaciones';
    
    protected $fillable = [
        'inicio',
        'fin',
        'descripcion',
        'agenda_id',
    ];

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

}
