Initial commit

This commit is contained in:
2026-10-26 12:28:48 +09:00
commit 18f10cece4
269 changed files with 33654 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import 'reflect-metadata';
import { DataSource } from 'typeorm';
import { buildDatabaseOptions } from '@/shared/config/database.config';
/**
* TypeORM CLI 전용 DataSource.
*
* 앱 런타임은 app.module.ts 의 TypeOrmModule 을 사용하고,
* 이 파일은 `migration:generate` / `migration:run` 같은 CLI 명령에만 쓰인다.
* 접속 설정은 database.config.ts 를 공유하므로 두 경로가 어긋나지 않는다.
*
* ⚠️ DB 접속 정보(DB_*)는 루트 .env 에서 docker-compose 가 주입하므로,
* 마이그레이션 명령은 **컨테이너 안에서** 실행해야 한다.
* 자세한 절차는 .claude/skills/nestjs/SKILL.md 의 "DB 마이그레이션" 참조.
*/
export default new DataSource(buildDatabaseOptions());