feat: implement background payment sync worker and admin trigger UI
This commit is contained in:
16
check_schema.js
Normal file
16
check_schema.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
const { Client } = require('pg');
|
||||
const client = new Client({ connectionString: process.env.DATABASE_URL });
|
||||
|
||||
async function checkSchema() {
|
||||
await client.connect();
|
||||
const res = await client.query(`
|
||||
SELECT column_name, data_type
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'transactions'
|
||||
`);
|
||||
console.log(JSON.stringify(res.rows, null, 2));
|
||||
await client.end();
|
||||
}
|
||||
|
||||
checkSchema();
|
||||
Reference in New Issue
Block a user