diff --git a/troubleshooting/250831_happybell80_skill-email_UUID_inconsistency_URGENT.md b/troubleshooting/250831_happybell80_skill-email_UUID_inconsistency_URGENT.md index 5931af0..d10fa47 100644 --- a/troubleshooting/250831_happybell80_skill-email_UUID_inconsistency_URGENT.md +++ b/troubleshooting/250831_happybell80_skill-email_UUID_inconsistency_URGENT.md @@ -31,8 +31,8 @@ skill-email DB 조회: Slack ID로 저장됨 (U0925SXQFDK) ### 단기 해결 (즉시) rb8001의 email_integration.py 수정: - 이메일 조회 시: UUID → Slack ID 역변환 -- slack_user_mapping 테이블 활용 -- **참고: auth-server는 user.oauth_id에 slack_id 저장 중 (별도 slack_id 컬럼 없음)** +- user.oauth_id에서 Slack ID 조회 +- **참고: slack_user_mapping 테이블 없음, gmail_token에 slack 컬럼 없음** ### 장기 해결 (권장) **모든 내부 시스템 UUID Primary Key 통일**: diff --git a/troubleshooting/250831_rb8001_postgresql_context_integration.md b/troubleshooting/250831_rb8001_postgresql_context_integration.md index 53fc30b..349f63d 100644 --- a/troubleshooting/250831_rb8001_postgresql_context_integration.md +++ b/troubleshooting/250831_rb8001_postgresql_context_integration.md @@ -66,6 +66,7 @@ - `slack_handler.py`: route_message() 통합 ### 데이터베이스 스키마 -- `conversation_logs.user_id`: UUID (Frontend 사용자) +- `conversation_log.user_id`: UUID (Frontend 사용자) - 테이블명 주의: conversation_log (s 없음) - `conversation_log.thread_ts`: VARCHAR(128) (스레드 타임스탬프로 Slack 대화 추적) -- `slack_user_mapping`: Slack ID ↔ UUID 매핑 테이블 활용 \ No newline at end of file +- **참고: slack_user_id 컬럼, slack_user_mapping 테이블은 실제 존재하지 않음** +- **실제: user.oauth_id에 Slack ID 저장됨** \ No newline at end of file