aboutsummaryrefslogtreecommitdiffstats
path: root/db/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/index.js')
-rw-r--r--db/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/index.js b/db/index.js
index 57586954..5a10a01a 100644
--- a/db/index.js
+++ b/db/index.js
@@ -162,4 +162,9 @@ Referral.belongsTo(User, {
foreignKey: "user_id",
});
+Payment.belongsTo(Payment, {
+ as: "fee",
+ foreignKey: "fee_payment_id"
+});
+
db.Order = Order;