Class: ReservationGroupSection

Inherits:
ApplicationRecord show all
Defined in:
app/models/reservation_group_section.rb

Overview

typed: ignore

Schema Information

Table name: reservation_group_sections

id                        :bigint           not null, primary key
quantity                  :integer          default(0), not null
pricing_menu_name         :string
original_price_cents      :integer
original_price_currency   :string           default("THB")
selling_price_cents       :integer
selling_price_currency    :string           default("THB")
section_type              :string
created_at                :datetime         not null
updated_at                :datetime         not null
pricing_menu_id           :integer          not null
reservation_id            :integer          not null

Indexes

index_reservation_group_sections_on_pricing_menu_id  (pricing_menu_id)
index_reservation_group_sections_on_reservation_id   (reservation_id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url