import db from '../src/database/models/index.js';

async function checkEnum() {
    try {
        const [results]: any = await db.sequelize.query(`
            SELECT enumlabel 
            FROM pg_enum 
            JOIN pg_type ON pg_enum.enumtypid = pg_type.oid 
            WHERE typname = 'enum_request_participants_participantType'
        `);
        console.log('Current enum values:', results.map((r: any) => r.enumlabel).join(', '));
    } catch (error: any) {
        console.error('Error fetching enum:', error.message);
    } finally {
        process.exit(0);
    }
}

checkEnum();
