feat: add database schema support for gateway and game profiles
- Introduced `dbSchema` configuration option in GatewayApiConfig and GatewayOrchestratorConfig. - Implemented schema resolution logic in environment configuration functions. - Updated context and orchestrator factory to use GatewayPrismaClient instead of PrismaClient. - Refactored orchestrator server and profile repository to accommodate new database schema handling. - Created separate Prisma schemas for game and gateway in the infra package. - Enhanced Postgres connector to support schema overrides in database URLs. - Updated documentation to reflect changes in database schema handling. - Added new Prisma generation and database push scripts for game and gateway schemas.
This commit is contained in:
+3
-1
@@ -1,18 +1,20 @@
|
||||
POSTGRES_DB=sammo
|
||||
POSTGRES_USER=sammo
|
||||
POSTGRES_PASSWORD=change-me
|
||||
POSTGRES_SCHEMA=public
|
||||
REDIS_PASSWORD=change-me
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PORT=16379
|
||||
REDIS_DB=0
|
||||
GAME_TOKEN_SECRET=change-me
|
||||
GATEWAY_REDIS_PREFIX=sammo:gateway
|
||||
GATEWAY_DB_SCHEMA=public
|
||||
GATEWAY_API_HOST=0.0.0.0
|
||||
GATEWAY_API_PORT=13000
|
||||
GATEWAY_PUBLIC_URL=https://example.com
|
||||
GAME_API_HOST=0.0.0.0
|
||||
GAME_API_PORT=14000
|
||||
PROFILE=che
|
||||
PROFILE=hwe
|
||||
SCENARIO=default
|
||||
KAKAO_REST_KEY=your-kakao-rest-key
|
||||
KAKAO_ADMIN_KEY=your-kakao-admin-key
|
||||
|
||||
Reference in New Issue
Block a user