feat: implement dispensing module with transaction-safe stock management, FEFO allocation, and H1 compliance reporting

This commit is contained in:
2026-08-19 11:05:04 +05:30
parent fd77985cf9
commit ea49fe800f
32 changed files with 1150 additions and 53 deletions
+18
View File
@@ -0,0 +1,18 @@
import { pool } from './src/db/pool';
async function migrate() {
try {
await pool.query('ALTER TABLE users ADD COLUMN profile_image_url TEXT');
console.log("Migration successful");
} catch (err: any) {
if (err.message.includes('already exists')) {
console.log("Column already exists");
} else {
console.error(err);
}
} finally {
process.exit(0);
}
}
migrate();