// Standalone DB initializer (run with: npm run db:init)
import 'dotenv/config';
import db from './index.js';

console.log('SQLite database initialized.');
console.log(`Tables: ${db
  .prepare("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")
  .all()
  .map(r => r.name)
  .join(', ')}`);

db.close();
