video-accessibility/backend/app/models/review_note.py
Vadym Samoilenko 31199f8705 chore: push all session changes — backend hardening, tests, apache config, deploy scripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 15:52:14 +01:00

23 lines
712 B
Python

"""Review Note model for timestamped video review notes."""
from datetime import datetime
from pydantic import BaseModel, Field
class ReviewNote(BaseModel):
"""A timestamped note attached to a video asset during review."""
id: str | None = Field(None, alias="_id")
job_id: str
asset_key: str # e.g., "en", "es", "en_accessible"
timestamp_seconds: float # Video timestamp when note was created
content: str # Note text content
user_id: str # Author's user ID
user_name: str # Author's display name (denormalized for display)
created_at: datetime
updated_at: datetime | None = None
class Config:
populate_by_name = True
use_enum_values = True