
import { pool } from './db.js';

async function inspect() {
    try {
        const res = await pool.query("SELECT pg_get_constraintdef(oid) FROM pg_constraint WHERE conname = 'applications_status_check'");
        console.log('Constraint applications_status_check:');
        console.table(res.rows);
        await pool.end();
    } catch (error) {
        console.error(error);
    }
}

inspect();
