feat: implement core dispensing, identity, and integration modules with authentication middleware

This commit is contained in:
2026-09-11 11:21:53 +05:30
parent a579da0f70
commit 22a03043ea
21 changed files with 869 additions and 688 deletions
+19
View File
@@ -0,0 +1,19 @@
const { pool } = require('./src/db/pool');
(async () => {
try {
const rx = await pool.query(
'SELECT id, tenant_id, status, created_at, extracted_data FROM prescriptions ORDER BY created_at DESC'
);
console.log('Prescriptions:', JSON.stringify(rx.rows, null, 2));
const users = await pool.query(
'SELECT id, username, role, pharmacy_name, tenant_id FROM users'
);
console.log('Users:', JSON.stringify(users.rows, null, 2));
} catch (err) {
console.error('Error executing query:', err);
} finally {
process.exit();
}
})();