<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class CalendarTemplateExclusion extends Model
{
    protected $table = 'calendar_template_exclusions';

    protected $primaryKey = 'id';

    protected $fillable = [
        'calendar_template_id', 'start_time_exclusion','end_time_exclusion'
    ];

    public function calendarTemplate(){
        return $this->belongsTo(CalendarTemplate::class,'calendar_template_id');
    }
}
