18 lines
377 B
TypeScript
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();
|