From b008bcc6bac7c45a6152d83c12ebf1bbec36f2ff Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 7 Jul 2026 11:32:09 +0000 Subject: [PATCH] The tasks mirror declares the FE-owned inputs column Co-Authored-By: Claude Fable 5 --- backend/app/db/models/tasks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/app/db/models/tasks.py b/backend/app/db/models/tasks.py index db1b7c04f..373a16b33 100644 --- a/backend/app/db/models/tasks.py +++ b/backend/app/db/models/tasks.py @@ -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