feat(library): doc_purpose 필드 + 자료실 업로드 기능

지식/업무 문서 1차 구분을 위한 doc_purpose(business|knowledge) 추가.
- 마이그레이션: document_purpose enum + 컬럼
- AI 분류: docPurpose 자동 추론 (빈 값만 채움)
- 업로드 API: doc_purpose + library_path Form 파라미터
- 자료실 업로드: business 기본값 + 선택 경로 자동 태깅
- FileInfoView: 용도 select (수동 변경, 실패 롤백)
- DocumentCard: 업무/참조 배지

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-14 15:26:59 +09:00
parent 96ab2369a7
commit 5c58778a41
8 changed files with 142 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
-- 문서 용도 구분: business(업무용) | knowledge(참조용)
-- 기존 문서는 NULL → AI 재분류 시 점진 채움
-- 우선순위: 수동 수정 > 업로드 시 명시값 > AI 추론
CREATE TYPE document_purpose AS ENUM ('business', 'knowledge');
ALTER TABLE documents ADD COLUMN doc_purpose document_purpose;