mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
23 lines
691 B
Python
23 lines
691 B
Python
from typing import List, Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class ExportCaseModel(BaseModel):
|
|
"""Model representing a single export case."""
|
|
|
|
id: str = Field(description="Unique identifier for the export case")
|
|
name: str = Field(description="Friendly name of the export case")
|
|
description: Optional[str] = Field(
|
|
default=None, description="Optional description of the export case"
|
|
)
|
|
created_at: float = Field(
|
|
description="Unix timestamp when the export case was created"
|
|
)
|
|
updated_at: float = Field(
|
|
description="Unix timestamp when the export case was last updated"
|
|
)
|
|
|
|
|
|
ExportCasesResponse = List[ExportCaseModel]
|