chore: align infrastructure with server

This commit is contained in:
2026-05-02 17:20:14 +05:00
parent e8c924f63a
commit 73c323685f
36 changed files with 785 additions and 540 deletions
+10
View File
@@ -0,0 +1,10 @@
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);