update context API
All checks were successful
Deploy to Production / deploy (push) Successful in 19s

This commit is contained in:
silverpro89
2026-02-06 11:28:06 +07:00
parent 97dbbd4d12
commit aaba22b40c
12 changed files with 1375 additions and 49 deletions

View File

@@ -17,8 +17,8 @@ async function syncDatabase() {
setupRelationships();
console.log('✅ Model relationships configured');
// Sync all models (creates tables if not exist)
await sequelize.sync({ alter: false, force: false });
// Sync all models (creates tables if not exist, alters existing tables)
await sequelize.sync({ alter: true, force: false });
console.log('✅ All models synced successfully');
// Show created tables