Implement FastAPI Temporal MVP pipeline
This commit is contained in:
21
app/domain/models/workflow_run.py
Normal file
21
app/domain/models/workflow_run.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Domain workflow run model."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
|
||||
from app.domain.enums import OrderStatus, WorkflowStepName
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class WorkflowRun:
|
||||
"""Business representation of a workflow execution."""
|
||||
|
||||
id: int
|
||||
order_id: int
|
||||
workflow_id: str
|
||||
workflow_type: str
|
||||
status: OrderStatus
|
||||
current_step: WorkflowStepName | None
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
Reference in New Issue
Block a user