const { Pool } = require("pg");
const pool = new Pool({
  user: "postgres",
  password: "madhu1402",
  host: "localhost",
  port: 5432,
  database: "Printmodule"
});

async function check() {
  try {
    const res = await pool.query(`
      SELECT column_name, data_type 
      FROM information_schema.columns 
      WHERE table_name = 'design_master'
    `);
    console.log("COLUMNS IN design_master:");
    console.log(res.rows);
  } catch (err) {
    console.error("DB Error:", err);
  } finally {
    await pool.end();
  }
}

check();
