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

16
check-columns.js Normal file
View File

@@ -0,0 +1,16 @@
const {sequelize} = require('./config/database');
(async () => {
try {
await sequelize.authenticate();
const [cols] = await sequelize.query('DESCRIBE context');
console.log('\n📊 Context table columns:');
cols.forEach((c, i) => {
console.log(` ${i+1}. ${c.Field} (${c.Type})`);
});
process.exit(0);
} catch (error) {
console.error('Error:', error.message);
process.exit(1);
}
})();