aboutsummaryrefslogtreecommitdiffstats
path: root/db/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/index.js')
-rw-r--r--db/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/index.js b/db/index.js
index dac6924e..9e78da9d 100644
--- a/db/index.js
+++ b/db/index.js
@@ -8,8 +8,9 @@ db = new Sequelize(conf.database, conf.username, conf.password, {
dialectOptions: { multipleStatements: true }
});
-require("./models/users.js");
+require("./models/invoices.js");
require("./models/payments.js");
+require("./models/users.js");
db["User"].hasMany(db["Payment"], {
as: "payments",