feat: implement background payment sync worker and admin trigger UI

This commit is contained in:
mstfyldz
2026-03-13 05:29:17 +03:00
parent d7bd2afc29
commit 67d0c61adb
7 changed files with 306 additions and 0 deletions

16
check_schema.js Normal file
View 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();