feat: refactor database connection handling and add legacy map loading functionality

- Updated check-connections.mts to use Prisma with PostgreSQL adapter.
- Introduced databaseUrl.ts for resolving database URLs from environment variables.
- Added legacyMapLoader.ts to load and parse legacy map data.
- Implemented scenarioSeeder.ts to seed scenario data into the database.
- Created tests for scenario seeding in scenarioSeeder.test.ts.
- Configured Prisma datasource in prisma.config.ts to support dynamic database URLs.
This commit is contained in:
2025-12-29 05:49:25 +00:00
parent 7124483001
commit 9fe4c8f96c
12 changed files with 1863 additions and 81 deletions
+5 -2
View File
@@ -13,11 +13,14 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@prisma/client": "^5.18.0",
"@prisma/adapter-pg": "^7.2.0",
"@prisma/client": "^7.2.0",
"pg": "^8.16.3",
"redis": "^4.7.0"
},
"devDependencies": {
"prisma": "^5.18.0",
"dotenv": "^17.2.3",
"prisma": "^7.2.0",
"tsdown": "^0.18.3"
}
}