feat: add core backend modules, inventory services, and patch scripts for AI Pharmacy API

This commit is contained in:
2026-09-15 11:15:15 +05:30
parent 22a03043ea
commit 1f9378d96c
41 changed files with 1413 additions and 130 deletions
+14
View File
@@ -0,0 +1,14 @@
import { pool } from './src/db/pool';
async function run() {
try {
await pool.query("ALTER TABLE users ADD COLUMN IF NOT EXISTS email VARCHAR(255)");
await pool.query("ALTER TABLE users ADD COLUMN IF NOT EXISTS phone_number VARCHAR(50)");
console.log("Added email and phone_number columns to users table");
} catch (e) {
console.error(e);
} finally {
process.exit();
}
}
run();