
const db = require('../src/db');

async function checkAlertTypes() {
    try {
        console.log('--- Checking Alert Types ---');
        const RES = await db.query("SELECT DISTINCT alert_type, sector_code FROM alerts");
        console.log('Distinct Alert Types:', RES.rows);
        process.exit(0);
    } catch (error) {
        console.error('Error:', error);
        process.exit(1);
    }
}

checkAlertTypes();
