mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
refactor(automation): rename trigger model config to params
This commit is contained in:
parent
fe32cd35ed
commit
c8a89ccac8
4 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
"""SQLAlchemy models and enums for the automation tables."""
|
||||
"""Models and enums for the automation tables."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
"""SQLAlchemy models, one per table."""
|
||||
"""Models, one per table."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
|
|||
|
|
@ -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="[]")
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class AutomationTrigger(BaseModel, TimestampMixin):
|
|||
index=True,
|
||||
)
|
||||
|
||||
config = Column(JSONB, nullable=False)
|
||||
params = Column(JSONB, nullable=False)
|
||||
|
||||
enabled = Column(
|
||||
Boolean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue