'integer', 'hotel_id' => 'integer', 'floor_id' => 'integer', 'room_type_id' => 'integer', 'max_adults' => 'integer', 'max_children' => 'integer', 'has_balcony' => 'boolean', 'has_bathtub' => 'boolean', 'gallery_images' => 'array', 'is_clean' => 'boolean', 'is_available' => 'boolean', 'status' => 'integer', ]; public const TABLE_NAME = 'rooms'; protected $table = self::TABLE_NAME; public function hotel(): BelongsTo { return $this->belongsTo(Hotel::class); } public function floor(): BelongsTo { return $this->belongsTo(Floor::class); } public function roomType(): BelongsTo { return $this->belongsTo(RoomType::class); } public function bookings(): HasMany { return $this->hasMany(BookingItem::class, 'room_id'); } }