We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40277fd commit 63fae5cCopy full SHA for 63fae5c
app/templates/server/sqldb(sequelize)/index.js
@@ -13,23 +13,8 @@ var db = {
13
Sequelize: Sequelize,
14
sequelize: new Sequelize(config.sequelize.uri, config.sequelize.options)
15
};
16
-<% if (filters.sequelizeModels) { %>
17
-db.Thing = db.sequelize.import(path.join(
18
- config.root,
19
- 'server',
20
- 'api',
21
- 'thing',
22
- 'thing.model'
23
-));
24
-<% if (filters.auth) { %>
25
-db.User = db.sequelize.import(path.join(
26
27
28
29
- 'user',
30
- 'user.model'
31
32
-<% } %><% } %>
33
-// Insert models below
+
+// Insert models below<% if (filters.sequelizeModels && filters.auth) { %>
+db.User = db.sequelize.import('../api/user/user.model');<% } %>
34
35
module.exports = db;
0 commit comments