
const { Application } = require('./src/database/models/application/Application');
const { Sequelize, Op } = require('sequelize');
const config = require('./src/database/config/config.json')['development'];
const sequelize = new Sequelize(config.database, config.username, config.password, config);

async function check() {
    try {
        const apps = await Application.findAll({
            attributes: ['id', 'applicationId', 'overallStatus', 'isShortlisted', 'ddLeadShortlisted'],
            limit: 50
        });
        console.log(JSON.stringify(apps, null, 2));
    } catch (e) {
        console.error(e);
    } finally {
        process.exit();
    }
}
check();
