update database stuff and and package.json to help generate migrations

This commit is contained in:
Aster Fialla
2026-03-01 12:51:58 -05:00
parent 735084e0a8
commit 7467878dff
4 changed files with 562 additions and 11 deletions

View File

@@ -1,5 +1,11 @@
import { AppDataSource } from "./data-source"
import AppDataSource from "./data-source"
AppDataSource.initialize().then(async () => {
}).catch(error => console.log(error))
AppDataSource.initialize()
.then(() => {
console.log('✅ Connected successfully');
process.exit(0);
})
.catch((err) => {
console.error('❌ Connection failed:', err);
process.exit(1);
});