import db from './src/database/models/index.js'; async function check() { const app = await db.Application.findOne({ where: { applicationId: 'APP-2026-2DC97C' } }); if (!app) { console.log('Application APP-2026-2DC97C not found'); return; } console.log(`Application: APP-2026-2DC97C, id: ${app.id}, Status: ${app.overallStatus}, Stage: ${app.currentStage}, Progress: ${app.progressPercentage}`); const progress = await db.ApplicationProgress.findAll({ where: { applicationId: app.id } }); console.log('--- Application Progress ---'); progress.forEach(p => console.log(`Stage: ${p.stageName}, Status: ${p.status}`)); process.exit(0); } check();