Phase 1: 모노레포 디렉토리 구조 구축 - 기존 React 프로젝트를 frontend/ 디렉토리로 이동 (git mv) - backend/ 디렉토리 생성 (Phase 2에서 Spring Boot 초기화) - database/migration/ 디렉토리 생성 (Phase 2에서 Flyway 마이그레이션) - 루트 .gitignore에 frontend/, backend/ 경로 반영 - 루트 CLAUDE.md를 모노레포 가이드로 갱신 - Makefile 추가 (dev/build/lint 통합 명령) - frontend/vite.config.ts에 /api → :8080 백엔드 proxy 설정 - .githooks/pre-commit을 모노레포 구조에 맞게 갱신 (frontend/ 변경 시 frontend/ 내부에서 검증) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
947 B
947 B
Database Migrations
PostgreSQL 마이그레이션 (Flyway 형식).
DB 정보
- DB Name:
kcgaidb - User:
kcg-app - Schema:
kcg
마이그레이션 파일 (Phase 2에서 작성)
| 파일 | 내용 |
|---|---|
V001__auth_init.sql |
사용자, 조직, 역할, 로그인 이력 |
V002__perm_tree.sql |
권한 트리 + 권한 매트릭스 |
V003__perm_seed.sql |
초기 역할 + 트리 노드 시드 |
V004__access_logs.sql |
감사로그, 접근 이력 |
V005__parent_workflow.sql |
모선 워크플로우 (운영자 결정/제외/학습 세션) |
실행 방법
# DB 생성 (1회)
psql -U postgres -c "CREATE DATABASE kcgaidb;"
psql -U postgres -c "CREATE USER \"kcg-app\" WITH PASSWORD 'Kcg2026ai';"
psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE kcgaidb TO \"kcg-app\";"
# 마이그레이션은 backend Spring Boot가 기동 시 자동 실행 (Flyway)
cd backend && ./mvnw spring-boot:run