From 61e07bd53a92c78ac98140db611583a05ec05367 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 15 Sep 2025 22:11:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20team=5Fdocument=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=EC=97=90=EC=84=9C=20uploaded=5Fby=20=EC=BB=AC?= =?UTF-8?q?=EB=9F=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 삼각형 의존성 제거 (user-team-document) - 업로더 정보는 metadata JSONB에 기록 - 팀 문서는 팀 공유 자산으로 단순화 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- 300_architecture/database/tables.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/300_architecture/database/tables.md b/300_architecture/database/tables.md index 7696178..9673f34 100644 --- a/300_architecture/database/tables.md +++ b/300_architecture/database/tables.md @@ -218,7 +218,6 @@ |--------|------|------|--------|------| | id | UUID | NO | gen_random_uuid() | 문서 ID | | team_id | UUID | NO | | 팀 ID (FK → team) | -| uploaded_by | UUID | YES | | 업로드 사용자 (FK → user) | | filename | VARCHAR(255) | NO | | 파일명 | | file_hash | VARCHAR(64) | NO | | SHA256 해시 | | file_size | BIGINT | YES | | 파일 크기 (bytes) | @@ -227,7 +226,7 @@ | text_content | TEXT | YES | | 추출된 텍스트 | | chunk_count | INTEGER | YES | 0 | ChromaDB 청크 수 | | processing_status | VARCHAR(20) | YES | 'pending' | 처리 상태 (pending/completed/failed) | -| metadata | JSONB | YES | '{}' | 메타데이터 (tags, summary 등) | +| metadata | JSONB | YES | '{}' | 메타데이터 (uploaded_by, tags, summary 등) | | created_at | TIMESTAMPTZ | YES | CURRENT_TIMESTAMP | 생성 시각 | | updated_at | TIMESTAMPTZ | YES | CURRENT_TIMESTAMP | 수정 시각 | @@ -259,7 +258,6 @@ | news | user_id | user | id | | user_preference | user_id | user | id | | team_document | team_id | team | id | -| team_document | uploaded_by | user | id | ---