const db = require('./src/db');
async function check() {
    try {
        await db.initDB();
        const [rows] = await db.execute('SHOW TABLES LIKE "audit_logs"');
        console.log('Table exists:', rows.length > 0);
        if (rows.length > 0) {
            const [columns] = await db.execute('DESCRIBE audit_logs');
            console.log('Columns:', columns.map(c => c.Field));
        }
        process.exit(0);
    } catch (e) {
        console.error('Check failed:', e);
        process.exit(1);
    }
}
check();
