Files
cannaiq/backend/check-brands-table.ts
2025-11-28 19:45:44 -07:00

18 lines
377 B
TypeScript

import { pool } from './src/db/migrate';
async function checkTable() {
const result = await pool.query(`
SELECT column_name, data_type, is_nullable
FROM information_schema.columns
WHERE table_name = 'brands'
ORDER BY ordinal_position
`);
console.log('Brands table structure:');
console.table(result.rows);
await pool.end();
}
checkTable();