feat: canonical flow directory with sync engine (files are source of truth)
This commit is contained in:
parent
7d5ade6b6a
commit
c65e3ed332
16 changed files with 4167 additions and 42 deletions
|
|
@ -29,6 +29,9 @@ class FlowDefinition(SQLModel, table=True):
|
|||
name: str = Field(index=True, unique=True, max_length=200)
|
||||
description: str = Field(default="", max_length=2000)
|
||||
status: str = Field(default="active", max_length=20) # active | archived
|
||||
# Filename under backend/flows/ this definition is synced from
|
||||
# (e.g. "simple_rule.json"). None for definitions created via the API.
|
||||
source_path: str | None = Field(default=None, max_length=255)
|
||||
# Flow to run after a human approval on this flow's runs (nullable).
|
||||
continuation_flow_id: UUID | None = Field(
|
||||
default=None, foreign_key="flow_definitions.id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue