1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/models/stats/order.rb

15 lines
364 B
Ruby
Raw Normal View History

2022-10-10 17:42:25 +02:00
# frozen_string_literal: true
2022-10-11 17:23:45 +02:00
# This is a statistical data saved in ElasticSearch, about a store's order
class Stats::Order
2022-10-10 17:42:25 +02:00
include Elasticsearch::Persistence::Model
include StatConcern
attribute :orderId, Integer
attribute :state, String
attribute :products, Array
attribute :categories, Array
attribute :ca, Float
attribute :coupon, String
2022-10-10 17:42:25 +02:00
end