const { Pool } = require('pg'); const pool = new Pool({ host: '10.99.0.3', port: 5432, user: 'clube67', password: 'clube67_db_pass_9903', database: 'dental_images' }); async function test() { const token = 'bab18d5a-09af-4759-b742-4e1eeb651694'; const email = 'ruibto@gmail.com'; console.log("Looking up token:", token); const res = await pool.query(`SELECT * FROM clinics_devices WHERE machine_token = $1`, [token]); console.log("Device found:", res.rows[0] || 'NOT FOUND'); process.exit(0); } test();