- 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
19 lines
314 B
Python
19 lines
314 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from app.schemas.document import TagInfo
|
|
|
|
|
|
class SearchResult(BaseModel):
|
|
id: str
|
|
title: str
|
|
excerpt: str
|
|
project_id: str
|
|
tags: list[TagInfo] = []
|
|
score: float
|
|
|
|
|
|
class SearchResponse(BaseModel):
|
|
results: list[SearchResult]
|