refactor(automation): rename trigger model config to params

This commit is contained in:
CREDO23 2026-05-27 13:29:22 +02:00
parent fe32cd35ed
commit c8a89ccac8
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
"""SQLAlchemy models and enums for the automation tables."""
"""Models and enums for the automation tables."""
from __future__ import annotations

View file

@ -1,4 +1,4 @@
"""SQLAlchemy models, one per table."""
"""Models, one per table."""
from __future__ import annotations

View file

@ -47,7 +47,7 @@ class AutomationRun(BaseModel, TimestampMixin):
trigger_payload = Column(JSONB, nullable=True)
resolved_inputs = Column(JSONB, nullable=False, server_default="{}")
# one entry per executed step; agent_task entries carry their own
# `agent_session_id` (LangGraph thread reference) inside this JSONB
# `agent_session_id` inside their entry
step_results = Column(JSONB, nullable=False, server_default="[]")
output = Column(JSONB, nullable=True)
artifacts = Column(JSONB, nullable=False, server_default="[]")

View file

@ -33,7 +33,7 @@ class AutomationTrigger(BaseModel, TimestampMixin):
index=True,
)
config = Column(JSONB, nullable=False)
params = Column(JSONB, nullable=False)
enabled = Column(
Boolean,