import 'dotenv/config';
import db from './src/database/models/index.js';
const { ApplicationProgress } = (db as any).default || db;

const applicationId = '6139d6f9-f3c1-4e55-903b-3516d3a08955';

async function checkProgress() {
    try {
        const count = await ApplicationProgress.count({
            where: { applicationId }
        });

        console.log(`Application has ${count} progress records.`);

    } catch (error) {
        console.error('Error checking progress:', error);
    } finally {
        process.exit();
    }
}

checkProgress();
