aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/index.js b/db/index.js
index 8c94a4d3..81c0fe46 100644
--- a/db/index.js
+++ b/db/index.js
@@ -124,6 +124,11 @@ Payment.belongsTo(Payment, {
foreignKey: "fee_payment_id"
});
+Payment.belongsTo(User, {
+ as: "with",
+ foreignKey: "with_id"
+});
+
db.Order = Order;
export default db;