# Wiki Protection Phase 1 Done

> **일시**: 2026-02-15 22:10
> **작성자**: Antigravity (Backend/Frontend Agent)
> **주제**: Wiki Protection (Soft Delete, Revision History) 구현 완료

---

## 1. 진행 상황 (Progress)

### 1.1. DB 보호 계획 (Wiki Protection)
- [x] Soft Delete 구현 (Schema & API)
    - [x] Schema Update: `isDeleted`, `deletedAt` 추가
    - [x] Service Layer: `document-service.ts` 구현
    - [x] Client Integration: `DocumentClient.tsx` soft delete 적용
    - [x] Data Migration: 기존 문서 `isDeleted: false` 백필 완료
    - [x] Query Filtering: `SearchModal`, `page.tsx` 등에서 삭제된 문서 필터링 적용
- [x] Wiki Revision History 구현 (Subcollection + Squash Logic)
    - [x] Data Structure: `documents/{docId}/revisions` 설계
    - [x] Backend Logic: `createRevision` 함수 구현
    - [x] UI: Revision History Viewer & Restore 기능

### 1.2. 다음 단계 (Next Steps)
- [ ] Admin Purge API 구현 (Legal Compliance)
- [ ] Firestore 내보내기 스크립트/함수 생성
- [ ] Soft Delete 및 복원 검증

## 2. 관련 문서 (References)
- `docs/specs/260215-22.05-wiki-revision-history.md`: Revision History 구현 명세
- `docs/decisions/260215-21.45-wiki-protection-adr.md`: Wiki보호 결정을 위한 ADR
