add/modified some backend models relations

This commit is contained in:
X4Lo committed 2024-04-16 10:14:55 +01:00
1 parent 8a1d5a8416
commit ce9dcc79b7
3 files changed
+77 -7

No files matched your search

+3 -2
View File
@@ -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")