Class: TablecheckRestaurant

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

Overview

Schema Information

Table name: tablecheck_restaurants

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

Indexes

index_tablecheck_restaurants_on_restaurant_id  (restaurant_id) UNIQUE
index_tablecheck_restaurants_on_shop_id        (shop_id)
index_tablecheck_restaurants_on_shop_slug      (shop_slug)

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