Phase 1 MVP - Complete implementation

- Auth: register, login, JWT with refresh tokens, blocklist
- Projects/Folders/Documents CRUD with soft deletes
- Tags CRUD and assignment
- FTS5 search with highlights and tag filtering
- ADR-001, ADR-002, ADR-003 compliant
- Security fixes applied (JWT_SECRET_KEY, exception handler, cookie secure)
- 25 tests passing
This commit is contained in:
Motoko
2026-03-30 15:17:27 +00:00
parent 33f19e02f8
commit 7f3e8a8f53
41 changed files with 2858 additions and 0 deletions

29
app/schemas/folder.py Normal file
View File

@@ -0,0 +1,29 @@
from datetime import datetime
from pydantic import BaseModel
class FolderCreate(BaseModel):
name: str
parent_id: str | None = None
class FolderUpdate(BaseModel):
name: str | None = None
parent_id: str | None = None
class FolderResponse(BaseModel):
id: str
name: str
project_id: str
parent_id: str | None
path: str
created_at: datetime
updated_at: datetime
model_config = {"from_attributes": True}
class FolderListResponse(BaseModel):
folders: list[FolderResponse]