aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-05-30 06:38:58 -0700
committerAdam Soltys <[email protected]>2021-06-09 16:06:45 -0700
commitc5374c599a9d96507bff6ff6d5b9e1f355e89eff (patch)
treedef064241e92be3f2f589dc67d161d25264dce59 /db
parent441cc95d60d198cc54a36a758d5fc8c4fe363938 (diff)
downloadcoinos-server-c5374c599a9d96507bff6ff6d5b9e1f355e89eff.tar.gz
coinos-server-c5374c599a9d96507bff6ff6d5b9e1f355e89eff.zip
changes to dev environment
Diffstat (limited to 'db')
-rw-r--r--db/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/index.js b/db/index.js
index 86827bca..e18aec8e 100644
--- a/db/index.js
+++ b/db/index.js
@@ -89,10 +89,10 @@ User.hasMany(Payment, {
foreignKey: "user_id"
});
-// User.belongsTo(Account, {
-// as: "account",
-// foreignKey: "account_id"
-// });
+User.belongsTo(Account, {
+ as: "account",
+ foreignKey: "account_id"
+});
Invoice.belongsTo(Account, {
as: "account",