
import { Sequelize } from 'sequelize';

const sequelize = new Sequelize('royal_enfield_onboarding', 'laxman', '<.efvP1D0^80Z)r5', {
    host: 'localhost',
    dialect: 'postgres',
    logging: console.log
});

const run = async () => {
    try {
        await sequelize.authenticate();
        console.log('Connected to database.');

        console.log('Adding remarks column to interview_evaluations table...');
        await sequelize.query('ALTER TABLE "interview_evaluations" ADD COLUMN IF NOT EXISTS "remarks" TEXT;');

        console.log('Column added successfully.');
        process.exit(0);
    } catch (error) {
        console.error('Error:', error);
        process.exit(1);
    }
};

run();
