Files
fund-tracer/backend/app/schemas/report.py

31 lines
670 B
Python
Raw Normal View History

2026-03-11 16:28:04 +08:00
from datetime import datetime
from uuid import UUID
from app.models.report import ReportType
2026-03-12 12:32:29 +08:00
from app.schemas.base import CamelModel
2026-03-11 16:28:04 +08:00
2026-03-12 12:32:29 +08:00
class ReportCreate(CamelModel):
2026-03-11 16:28:04 +08:00
report_type: ReportType
include_summary: bool = True
include_transactions: bool = True
include_flow_chart: bool = True
include_timeline: bool = True
include_reasons: bool = True
include_inquiry: bool = False
include_screenshots: bool = False
2026-03-12 12:32:29 +08:00
class ReportOut(CamelModel):
2026-03-11 16:28:04 +08:00
id: UUID
case_id: UUID
report_type: ReportType
file_path: str
version: int
created_at: datetime
2026-03-12 12:32:29 +08:00
class ReportListOut(CamelModel):
2026-03-11 16:28:04 +08:00
items: list[ReportOut]
total: int