<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BookingRoom extends Model
{
    protected $fillable = [
        'booking_id',
        'room_id',
        'room_title',
        'room_slug',
        'room_number',
        'adults',
        'children',
        'meal_package',
        'addons',
        'room_daily_prices',
        'meal_total',
        'meal_total',
        'grand_total'
    ];

    protected $casts = [
        'meal_package' => 'array',
        'addons' => 'array',
        'room_daily_prices' => 'array',
    ];

    public function booking()
    {
        return $this->belongsTo(Booking::class);
    }
}
