summaryrefslogtreecommitdiff
path: root/app/models/order.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/order.rb')
-rw-r--r--app/models/order.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/order.rb b/app/models/order.rb
new file mode 100644
index 0000000..ae5a0d5
--- /dev/null
+++ b/app/models/order.rb
@@ -0,0 +1,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