add core backend modules including database initialization, authentication, AI service, and database viewer

This commit is contained in:
2026-09-17 14:08:48 +05:30
parent 1f9378d96c
commit f7d76c915b
7 changed files with 801 additions and 19 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ 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");
await pool.query("ALTER TABLE users ADD COLUMN IF NOT EXISTS hospital_id VARCHAR(50) DEFAULT '1'");
console.log("Added email, phone_number, and hospital_id columns to users table");
} catch (e) {
console.error(e);
} finally {