The tasks mirror declares the FE-owned inputs column

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-07 11:32:09 +00:00
parent 561b8b078b
commit b008bcc6ba

View file

@ -25,6 +25,11 @@ class Task(SQLModel, table=True):
job_completed: Optional[datetime] = None
status: str = Field(default="In Progress")
service: Optional[str] = None
# FE-owned column (Drizzle migration): the app stores a task's original
# request here — for a Modelling Run, the full trigger-run payload
# (ADR-0055). The backend reads it at most; per-batch inputs live on the
# sub_tasks.
inputs: Optional[str] = None
updated_at: datetime = Field(default_factory=datetime.utcnow)
# source: Mapped[Optional[SourceEnum]] = mapped_column(Enum(SourceEnum)) <- SQLAlchemy not SQLModel