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
+21
View File
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const pool_1 = require("./src/db/pool");
async function migrate() {
try {
await pool_1.pool.query('ALTER TABLE users ADD COLUMN profile_image_url TEXT');
console.log("Migration successful");
}
catch (err) {
if (err.message.includes('already exists')) {
console.log("Column already exists");
}
else {
console.error(err);
}
}
finally {
process.exit(0);
}
}
migrate();