Initial commit of BlackDice ROI toolkit

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 17:04:40 +05:00
co-authored by Claude Sonnet 5
commit a69e127331
51 changed files with 4950 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import 'dotenv/config';
import fs from 'node:fs';
import { pool } from './db.js';
const sql = fs.readFileSync(new URL('./schema.sql', import.meta.url), 'utf8');
const statements = sql.split(';').map((s) => s.trim()).filter(Boolean);
for (const statement of statements) {
await pool.query(statement);
console.log('Ran:', statement.split('\n')[0], '...');
}
console.log('Migration complete.');
await pool.end();