FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring, source collection, LLM-based change analysis, enrichment, and account security (Turnstile, escalating lockout, email verification).
29 lines
599 B
Python
29 lines
599 B
Python
from __future__ import annotations
|
|
|
|
import uuid
|
|
from datetime import datetime
|
|
from typing import Any
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from app.models.enums import ReportType
|
|
|
|
|
|
class ReportListItem(BaseModel):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
id: uuid.UUID
|
|
report_type: ReportType
|
|
title: str
|
|
executive_summary: str
|
|
model_provider: str
|
|
model_name: str
|
|
created_at: datetime
|
|
|
|
|
|
class ReportResponse(ReportListItem):
|
|
company_id: uuid.UUID
|
|
monitoring_run_id: uuid.UUID | None
|
|
structured_report: dict[str, Any]
|
|
prompt_version: str
|