feat: wire GraphRAG API handlers, activities, and database layer
ci / test (push) Failing after 2m9s
ci / test (push) Failing after 2m9s
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user