add/modified some backend models relations
This commit is contained in:
1 parent
8a1d5a8416
commit
ce9dcc79b7
3 files changed
+77
-7
No files matched your search
+3
-2
@@ -32,8 +32,9 @@ app.use('/api/v1', routes);
|
||||
const relations = require('./db/relations.js')
|
||||
|
||||
sequelize
|
||||
// .sync({force: true})
|
||||
.sync({ alter: true })
|
||||
// .sync({force: true}) // will drop all tables and recreate them.
|
||||
// .sync({ alter: true }) // will attempt to automatically alter tables to fit the model definitions.
|
||||
.sync()
|
||||
.then((result) => {
|
||||
app.listen(PORT, () => {
|
||||
//const Entry = require("./models/Entry.js")
|
||||
|
||||
Reference in new issue
Block a user