const { Pool } = require('pg'); async function run() { const pool = new Pool({ connectionString: 'postgresql://postgres:postgres@localhost:5432/xflow' }); const res = await pool.query('UPDATE "User" SET role = \'admin\''); console.log('Updated users to admin:', res.rowCount); await pool.end(); } run().catch(console.error);