feat: wire GraphRAG API handlers, activities, and database layer
ci / test (push) Failing after 2m9s

This commit is contained in:
Test
2026-09-05 06:00:58 -07:00
parent 8474d7e494
commit 5c0eb2b66a
10 changed files with 715 additions and 398 deletions
+27
View File
@@ -111,3 +111,30 @@ type WorkflowMemoryLink struct {
CreatedAt time.Time `db:"created_at"`
Notes string `db:"notes"`
}
// WorkflowRelation represents a semantic relation between two canvas nodes
type WorkflowRelation struct {
ID string `db:"id"`
WorkflowID string `db:"workflow_id"`
Version int `db:"version"`
SourceNodeID string `db:"source_node_id"`
TargetNodeID string `db:"target_node_id"`
RelationType string `db:"relation_type"` // "data-flow", "dependency", "conditional"
Label string `db:"label"` // Human-readable relation description
RelationWording []byte `db:"relation_wording"` // JSONB with verb, outputs, inputs, confidence
Metadata []byte `db:"metadata"` // JSONB for extensibility
CreatedAt time.Time `db:"created_at"`
}
// WorkflowRelationVersion represents versioned history of relation changes
type WorkflowRelationVersion struct {
ID string `db:"id"`
WorkflowID string `db:"workflow_id"`
EdgeID string `db:"edge_id"`
VersionNum int `db:"version_num"`
Operation string `db:"operation"` // "CREATE", "UPDATE", "DELETE"
Snapshot []byte `db:"snapshot"` // JSONB full state at this version
ChangedAt time.Time `db:"changed_at"`
ChangedBy string `db:"changed_by"`
FieldsChanged []byte `db:"fields_changed"` // JSONB array of changed field names
}