import { createConnection } from 'mysql2/promise';

async function checkData() {
  const connection = await createConnection({
    host: 'localhost',
    user: 'root',
    password: '',
    database: 'job_portal123'
  });

  try {
    const [rows] = await connection.query('SHOW CREATE TABLE seeker_resumes');
    console.log(rows[0]['Create Table']);
  } catch (error) {
    console.error('Error querying table:', error);
  } finally {
    await connection.end();
  }
}

checkData();
