summaryrefslogtreecommitdiff
path: root/app/models/order.rb
blob: ae5a0d5bfe2084385ea1f31a37748dfbaf888f30 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# Order
# public_id: string
class Order < ApplicationRecord
  belongs_to :user_account
  has_one :payment
  has_many :product_orders
  has_many :products, through: :product_orders
end