const { Client } = require('pg');

async function check() {
    const client = new Client({
        host: '87.106.21.21',
        port: 5432,
        user: 'enwelo_admin',
        password: 'WX1t1cgP1qK09',
        database: 'enwelo'
    });
    
    try {
        await client.connect();
        const res = await client.query(`
            SELECT column_name, data_type 
            FROM information_schema.columns 
            WHERE table_schema = 'wind_projekt_bwscheddebrock' AND table_name = 'wea';
        `);
        console.log("Columns for wind_projekt_bwscheddebrock.wea:");
        res.rows.forEach(r => console.log(`${r.column_name}: ${r.data_type}`));
    } catch (e) {
        console.error("Error:", e);
    } finally {
        await client.end();
    }
}
check();
