Class: Corporates::Event

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

Overview

Schema Information

Table name: corporates_events

id                       :bigint           not null, primary key
custom_commision_percent :float(24)
date                     :date
name                     :string(255)
secret_key               :string(191)
start_time               :time
use_custom_commision     :boolean          default(FALSE)
created_at               :datetime         not null
updated_at               :datetime         not null
restaurant_id            :integer

Indexes

index_corporates_events_on_restaurant_id  (restaurant_id)
index_corporates_events_on_secret_key     (secret_key) UNIQUE

Foreign Keys

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

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url