Implement FastAPI Temporal MVP pipeline
This commit is contained in:
23
app/api/schemas/asset.py
Normal file
23
app/api/schemas/asset.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""Asset API schemas."""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from app.domain.enums import AssetType, WorkflowStepName
|
||||
|
||||
|
||||
class AssetRead(BaseModel):
|
||||
"""Serialized asset response."""
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
id: int
|
||||
order_id: int
|
||||
asset_type: AssetType
|
||||
step_name: WorkflowStepName | None
|
||||
uri: str
|
||||
metadata_json: dict[str, Any] | None
|
||||
created_at: datetime
|
||||
|
||||
Reference in New Issue
Block a user