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

async function check() {
    const app = await db.Application.findOne({ where: { applicationId: 'APP-2026-D444A1' } });
    if (!app) {
        console.log('Application not found');
        return;
    }
    const finalDeposit = await db.SecurityDeposit.findOne({
        where: { applicationId: app.id, depositType: 'FINAL' }
    });
    console.log(`Final Deposit Status: ${finalDeposit?.status || 'NOT FOUND'}`);
    process.exit(0);
}

check();
