const sequelize = require('../config/database');

async function checkColumns() {
    try {
        await sequelize.authenticate();
        const [results] = await sequelize.query("SHOW COLUMNS FROM orders");
        console.log(results.map(r => r.Field));
        process.exit(0);
    } catch (error) {
        console.error(error);
        process.exit(1);
    }
}

checkColumns();
