Class: SevenRoomsRestaurant

Inherits:
ApplicationRecord show all
Includes:
VendorSuppliers::RestaurantHumanizer
Defined in:
app/models/seven_rooms_restaurant.rb

Overview

Schema Information

Table name: seven_rooms_restaurants

id            :bigint           not null, primary key
min_seat      :integer          default(1)
created_at    :datetime         not null
updated_at    :datetime         not null
restaurant_id :integer          not null
venue_id      :string(191)

Indexes

index_seven_rooms_restaurants_on_restaurant_id  (restaurant_id) UNIQUE
index_seven_rooms_restaurants_on_venue_id       (venue_id)

Foreign Keys

fk_rails_...  (restaurant_id => restaurants.id)

min_seat column is used for syncing inventory from supplier

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url