feat(controlplane): add workflow_template_id column to workflows table#3154
Conversation
Add an optional nullable UUID column to the Workflow entity so template-created workflows can reference their source WorkflowTemplate. Assisted-by: Claude Code Signed-off-by: Javier Rodriguez <javier@chainloop.dev> Chainloop-Trace-Sessions: 43e15867-d061-4ef2-9b69-ad069dbcab98
Assisted-by: Claude Code Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
AI Session Analysis
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | human | app/controlplane/pkg/data/ent/migrate/schema.go |
+9 / -8 |
| modified | human | go.sum |
+6 / -0 |
| modified | human | app/controlplane/pkg/data/ent/migrate/migrations/atlas.sum |
+2 / -1 |
| modified | ai | app/controlplane/pkg/data/ent/schema/workflow.go |
+2 / -1 |
| created | human | app/controlplane/pkg/data/ent/migrate/migrations/20260527093110.sql |
+2 / -0 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-43e158 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-43e158 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-43e158 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-43e158 |
- |
Powered by Chainloop and Chainloop Trace
Summary
Add an optional nullable
workflow_template_idUUID column to the Workflow entity so template-created workflows can reference their source WorkflowTemplate. The column will be populated from the platform side when a workflow is created from a template.