mass refactor

This commit is contained in:
2025-09-18 08:31:14 +09:00
parent 856bf3ca2a
commit bdd7d0424f
58 changed files with 3009 additions and 291 deletions

14
check_schema.ts Normal file
View File

@@ -0,0 +1,14 @@
import { query } from './src/database/connection';
async function checkSchema() {
try {
const result = await query('SELECT column_name, data_type FROM information_schema.columns WHERE table_name = $1', ['messages']);
console.log(result.rows);
process.exit(0);
} catch (error) {
console.error(error);
process.exit(1);
}
}
checkSchema();