192.168.219.45 → 192.168.0.100 일괄 변경 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
52 lines
1.5 KiB
Markdown
52 lines
1.5 KiB
Markdown
# Database 구조 문서
|
|
|
|
## 개요
|
|
로빙 프로젝트의 PostgreSQL 데이터베이스 구조 및 관계를 정리한 문서입니다.
|
|
|
|
## 문서 구성
|
|
|
|
### 1. 테이블 정의
|
|
- `tables.md` - 모든 테이블 구조 정의
|
|
- `relationships.md` - 테이블 간 관계 (FK, JOIN)
|
|
- `../390_workspace_team_project_도메인_모델.md` - workspace/team/project 상위 해석 SSOT
|
|
|
|
### 2. 도메인별 정리
|
|
- `auth_domain.md` - 인증/사용자 관련 테이블
|
|
- `gmail_domain.md` - Gmail/이메일 관련 테이블
|
|
- `robeing_domain.md` - 로빙 서비스 관련 테이블
|
|
- `slack_domain.md` - Slack 통합 관련 테이블
|
|
|
|
### 3. 데이터 타입 표준
|
|
- `data_types.md` - 사용되는 데이터 타입 정의
|
|
- `naming_conventions.md` - 명명 규칙
|
|
|
|
## 데이터베이스 정보
|
|
- **Host**: 192.168.0.100 (51123 서버)
|
|
- **Port**: 5432
|
|
- **Database**: main_db (~~auth_db는 더 이상 사용 안함~~)
|
|
- **User**: robeings
|
|
- **Password**: robeings
|
|
|
|
## 서버별 연결 방법
|
|
### 51123 서버 (PostgreSQL 설치됨)
|
|
```bash
|
|
psql postgresql://robeings:robeings@localhost:5432/main_db
|
|
```
|
|
|
|
### 51124 서버 (SSH 터널 사용)
|
|
```bash
|
|
# SSH 터널 생성
|
|
ssh -N -L 5433:localhost:5432 admin@192.168.0.100
|
|
|
|
# DB 연결
|
|
psql postgresql://robeings:robeings@localhost:5433/main_db
|
|
```
|
|
|
|
## 최근 변경사항
|
|
- 2025-08-26: conversation_log에 slack_user_id 추가
|
|
- 2025-08-23: gmail_token 구조 변경
|
|
- 2025-08-20: auth_db → main_db 마이그레이션
|
|
|
|
## 최종 업데이트
|
|
2025-08-26
|