From 10723943174d471528ecc6d4dc8ba04fbf62b99e Mon Sep 17 00:00:00 2001 From: happybell80 Date: Sun, 31 Aug 2025 18:50:38 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EC=9B=8C=ED=81=AC=EC=8A=A4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=8A=A4=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EA=B5=AC?= =?UTF-8?q?=EC=A1=B0=20=EC=83=81=EC=84=B8=20=EC=A0=95=EB=B3=B4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - slack_workspaces vs workspaces 테이블 차이점 명시 - 각 테이블의 컬럼 구조 및 용도 설명 - 두 테이블 간 연결 관계 없음 강조 - 실제 데이터 예시 포함 --- ...31_slack_login_workspace_assignment_issue.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/troubleshooting/250831_slack_login_workspace_assignment_issue.md b/troubleshooting/250831_slack_login_workspace_assignment_issue.md index a46ae92..21654db 100644 --- a/troubleshooting/250831_slack_login_workspace_assignment_issue.md +++ b/troubleshooting/250831_slack_login_workspace_assignment_issue.md @@ -42,11 +42,26 @@ Slack OAuth로 로그인한 사용자가 Robeing 워크스페이스에 자동 ## 3. 데이터베이스 구조 문제 +### 두 종류의 워크스페이스 테이블 (독립적) + +#### slack_workspaces (Slack 팀 정보) +- **용도**: Slack 앱 설치 정보 저장 +- **주요 컬럼**: team_id (Slack ID), team_name, bot_token, company_id +- **현재 데이터**: GoodGang Labs (T035VFRKCN6), test (T097FCTDVEX) + +#### workspaces (Robeing 서비스) +- **용도**: Robeing 서비스 할당 +- **주요 컬럼**: name, subdomain, robeing_id, robeing_port, robeing_url +- **현재 데이터**: ivada-robeing (rb10508_micro, port 10508) + +**문제점**: 두 테이블 간 연결 관계 없음 (Foreign Key 없음) + +### 처리 흐름 | 테이블 | 용도 | 상태 | |--------|------|------| | users | 사용자 정보 | ✅ 생성됨 | | slack_user_mapping | Slack ID ↔ UUID | ✅ 생성됨 | -| SlackWorkspace | Slack 팀 정보 | ✅ 조회됨 | +| slack_workspaces | Slack 팀 정보 | ✅ 조회됨 | | workspaces | **Robeing 워크스페이스** | ❌ 연결 안 됨 | | workspace_members | **Robeing 멤버십** | ❌ 추가 안 됨 |