Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/foodbank.codeskitter.site/app/Models/
Upload File :
Current File : /home/users/unlimited/www/foodbank.codeskitter.site/app/Models/TimeSlot.php

<?php

namespace App\Models;

use Shipu\Watchable\Traits\WatchableTrait;

class TimeSlot extends BaseModel
{
    use WatchableTrait;

    protected $table       = 'time_slots';
    protected $auditColumn       = true;
    protected $fillable    = ['start_time', 'end_time', 'restaurant_id', 'status'];
    protected $casts = [
        'status' => 'int',
    ];

    
    public function restaurant()
    {
        return $this->belongsTo(Restaurant::class);
    }

    public function reservations(){
        return $this->hasMany(Reservation::class,'time_slot_id');
    }

}