<?php

namespace App\Models;

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

class OperatingHour extends Model
{
    use HasFactory;
    protected $fillable=[
        'id',
        'manage_restaurant_xid',
        'day_of_week',
        'restaurant_id',
        'start_time',
        'end_time',
        'created_at',
        'updated_at',
     ];
     public function restaurant()
     {
         return $this->belongsTo(ManageRestaurant::class, 'manage_restaurant_xid');
     }
}
