stuffy stuff

This commit is contained in:
counterweight 2025-02-08 15:57:54 +01:00
parent faee3ca0ea
commit 2c1c1bd774
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
6 changed files with 12 additions and 12 deletions

View file

@ -4,8 +4,15 @@ const sequelize = new Sequelize({
dialect: 'sqlite',
storage: './data/database.sqlite',
define: {
timestamps: false
timestamps: false,
freezeTableName: true
},
});
sequelize.sync().then(() => {
console.log('Database synced');
}).catch(err => {
console.error('Error syncing the database:', err);
});
module.exports = sequelize;