🚀 Patch auto

This commit is contained in:
karim hassan
2025-08-24 23:00:40 +00:00
parent 92e6afff00
commit f1103d67a0
1314 changed files with 2511 additions and 562 deletions

7
scripts/db-init.js Normal file
View File

@@ -0,0 +1,7 @@
import { query } from '../src/db.js';
import fs from 'fs';
import path from 'path';
const sql = fs.readFileSync(path.join(process.cwd(), 'sql', 'schema.sql'), 'utf-8');
await query(sql);
console.log('✅ DB schema applied');
process.exit(0);