property_hire/app/models/property_day_setting.rb

12 lines
288 B
Ruby

class PropertyDaySetting
include Mongoid::Document
include Mongoid::Timestamps
field :enable, type: Boolean, default: true
field :key
field :day
field :title
field :start_time
field :end_time
field :reservation_limit, type: Integer, default: 1
belongs_to :property
end