public.workflow_entity
列
约束
索引
触发器
关系
erDiagram
"public.workflow_entity" }o--o| "public.workflow_history" : "FOREIGN KEY (#quot;activeVersionId#quot;) REFERENCES workflow_history(#quot;versionId#quot;) ON DELETE RESTRICT"
"public.agent_workflow_dependency" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.agents" }o--o| "public.workflow_entity" : "FOREIGN KEY (#quot;approvalWorkflowId#quot;) REFERENCES workflow_entity(id) ON DELETE RESTRICT"
"public.ai_builder_temporary_workflow" |o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.chat_hub_messages" }o--o| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE SET NULL"
"public.chat_hub_sessions" }o--o| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE SET NULL"
"public.evaluation_collection" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.evaluation_config" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.execution_entity" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.insights_metadata" }o--o| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE SET NULL"
"public.migration_finding" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.migration_workflow_owner" |o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.poller_state" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.processed_data" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.self_healing_configuration_workflow" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.self_healing_investigation" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.self_healing_result" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.shared_workflow" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.test_run" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.webhook_entity" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_builder_session" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_dependency" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_history" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_publication_retry_state" |o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_publication_trigger_status" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_publish_history" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_published_version" |o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE RESTRICT"
"public.workflow_review_request_workflow" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_suggestion" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflows_tags" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_entity" }o--o| "public.folder" : "FOREIGN KEY (#quot;parentFolderId#quot;) REFERENCES folder(id) ON DELETE CASCADE"
"public.workflow_entity" {
boolean active
varchar_36_ activeVersionId FK
json connections
timestamp_3__with_time_zone createdAt
text description
varchar_36_ id
boolean isArchived
json meta
varchar_128_ name
json nodeGroups
json nodes
varchar_36_ parentFolderId FK
json pinData
json settings
varchar sourceWorkflowId
json staticData
integer triggerCount
timestamp_3__with_time_zone updatedAt
integer versionCounter
character_36_ versionId
}
"public.workflow_history" {
varchar_255_ authors
boolean autosaved
json connections
timestamp_3__with_time_zone createdAt
text description
varchar_128_ name
json nodeGroups
json nodes
json settings
timestamp_3__with_time_zone updatedAt
varchar_36_ versionId
varchar_36_ workflowId FK
}
"public.agent_workflow_dependency" {
varchar_36_ agentId FK
timestamp_3__with_time_zone createdAt
varchar_36_ workflowId FK
}
"public.agents" {
varchar_36_ activeVersionId FK
varchar_36_ approvalWorkflowId FK
boolean availableInMCP
timestamp_3__with_time_zone createdAt
varchar_36_ id
uuid identityId FK
json integrations
boolean isArchived
varchar_128_ name
varchar_36_ parentFolderId FK
varchar_255_ projectId FK
integer publicationRevision
integer revision
json schema
varchar_16_ scope
timestamp_3__with_time_zone setupCompletedAt
json skills
json tools
timestamp_3__with_time_zone updatedAt
varchar_36_ versionId
}
"public.ai_builder_temporary_workflow" {
timestamp_3__with_time_zone createdAt
uuid threadId FK
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.chat_hub_messages" {
uuid agentId FK
json attachments
text content
timestamp_3__with_time_zone createdAt
integer executionId FK
uuid id
varchar_256_ model
varchar_128_ name
uuid previousMessageId FK
varchar_16_ provider
uuid retryOfMessageId FK
uuid revisionOfMessageId FK
uuid sessionId FK
varchar_16_ status
varchar_16_ type
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.chat_hub_sessions" {
uuid agentId FK
varchar_128_ agentName
timestamp_3__with_time_zone createdAt
varchar_36_ credentialId FK
uuid id
timestamp_3__with_time_zone lastMessageAt
varchar_256_ model
uuid ownerId FK
varchar_16_ provider
varchar_256_ title
varchar_16_ type
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.evaluation_collection" {
timestamp_3__with_time_zone createdAt
uuid createdById FK
text description
varchar_36_ evaluationConfigId FK
varchar_36_ id
json insightsCache
varchar_128_ name
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.evaluation_config" {
timestamp_3__with_time_zone createdAt
json datasetRef
varchar_32_ datasetSource
varchar_255_ endNodeName
varchar_36_ id
varchar_64_ invalidReason
json metrics
varchar_128_ name
varchar_255_ startNodeName
varchar_16_ status
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.execution_entity" {
bigint binaryDataSizeBytes
timestamp_3__with_time_zone createdAt
varchar_255_ deduplicationKey
timestamp_3__with_time_zone deletedAt
boolean finished
integer id
bigint jsonSizeBytes
varchar mode
smallint resumeAttempts
varchar retryOf
varchar retrySuccessId
timestamp_3__with_time_zone startedAt
varchar status
timestamp_3__with_time_zone stoppedAt
varchar_2_ storedAt
json tracingContext
boolean usedPrivateCredentials
timestamp_3__with_time_zone waitTill
varchar_36_ workflowId FK
varchar_36_ workflowVersionId
}
"public.insights_metadata" {
integer metaId
varchar_36_ projectId FK
varchar_255_ projectName
varchar_36_ workflowId FK
varchar_128_ workflowName
}
"public.migration_finding" {
timestamp_3__with_time_zone createdAt
integer id
text note
timestamp_3__with_time_zone notifiedAt
varchar_128_ ruleId
varchar_32_ status
timestamp_3__with_time_zone statusChangedAt
varchar_16_ targetVersion
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.migration_workflow_owner" {
timestamp_3__with_time_zone assignedAt
uuid assignedById FK
timestamp_3__with_time_zone createdAt
varchar_16_ source
timestamp_3__with_time_zone updatedAt
uuid userId FK
varchar_36_ workflowId FK
}
"public.poller_state" {
timestamp_3__with_time_zone backoffUntil
integer consecutiveErrors
timestamp_3__with_time_zone createdAt
json cursor
varchar_64_ nodeId
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.processed_data" {
varchar_255_ context
timestamp_3__with_time_zone createdAt
timestamp_3__with_time_zone updatedAt
text value
varchar_36_ workflowId FK
}
"public.self_healing_configuration_workflow" {
integer configurationId FK
varchar_36_ projectId FK
varchar_36_ workflowId FK
}
"public.self_healing_investigation" {
uuid backgroundUserId FK
integer configurationId FK
timestamp_3__with_time_zone createdAt
varchar_36_ executionId
timestamp_3__with_time_zone finishedAt
varchar_36_ id
varchar_36_ projectId FK
varchar_36_ publishedVersionId
varchar_36_ resultId FK
uuid runId
uuid threadId
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.self_healing_result" {
uuid backgroundUserId FK
timestamp_3__with_time_zone completedAt
integer configurationId FK
timestamp_3__with_time_zone createdAt
varchar_36_ executionId
varchar_36_ id
varchar_16_ outcome
varchar_36_ projectId FK
text report
varchar_16_ reviewState
text summary
timestamp_3__with_time_zone updatedAt
json usage
varchar_36_ workflowId FK
}
"public.shared_workflow" {
timestamp_3__with_time_zone createdAt
varchar_36_ projectId FK
text role
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.test_run" {
boolean cancelRequested
varchar_36_ collectionId FK
timestamp_3__with_time_zone completedAt
timestamp_3__with_time_zone createdAt
varchar errorCode
json errorDetails
varchar_36_ evaluationConfigId FK
jsonb evaluationConfigSnapshot
varchar_36_ id
json metrics
timestamp_3__with_time_zone runAt
varchar_255_ runningInstanceId
varchar status
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
varchar_36_ workflowVersionId
}
"public.webhook_entity" {
varchar method
varchar node
integer pathLength
varchar webhookId
varchar webhookPath
varchar_36_ workflowId FK
}
"public.workflow_builder_session" {
varchar_255_ activeVersionCardId
timestamp_3__with_time_zone createdAt
uuid id
json messages
text previousSummary
varchar_255_ resumeAfterRestoreMessageId
timestamp_3__with_time_zone updatedAt
uuid userId FK
varchar_36_ workflowId FK
}
"public.workflow_dependency" {
timestamp_3__with_time_zone createdAt
json dependencyInfo
varchar_255_ dependencyKey
varchar_32_ dependencyType
integer id
smallint indexVersionId
varchar_36_ publishedVersionId
varchar_36_ workflowId FK
integer workflowVersionId
}
"public.workflow_publication_retry_state" {
timestamp_3__with_time_zone createdAt
integer retryDelaySeconds
varchar_36_ targetVersionId
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.workflow_publication_trigger_status" {
timestamp_3__with_time_zone createdAt
text errorMessage
varchar_64_ nodeId
varchar_20_ status
varchar_20_ triggerKind
timestamp_3__with_time_zone updatedAt
varchar_36_ versionId FK
varchar_36_ workflowId FK
}
"public.workflow_publish_history" {
timestamp_3__with_time_zone createdAt
varchar_36_ event
integer id
uuid userId FK
varchar_36_ versionId FK
varchar_36_ workflowId FK
}
"public.workflow_published_version" {
timestamp_3__with_time_zone createdAt
varchar_36_ publishedVersionId FK
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.workflow_review_request_workflow" {
varchar_36_ baselineVersionId FK
varchar_36_ id
varchar_36_ workflowId FK
varchar_36_ workflowReviewRequestId FK
varchar_36_ workflowVersionId FK
}
"public.workflow_suggestion" {
varchar_32_ appliedAction
uuid appliedActorId
varchar_64_ appliedChecksum
varchar_36_ appliedVersionId
uuid backgroundUserId FK
timestamp_3__with_time_zone closedAt
varchar_16_ closedReason
timestamp_3__with_time_zone createdAt
json expectedBaseline
varchar_36_ id
json payload
varchar_36_ projectId FK
varchar_16_ resultKind
varchar_36_ selfHealingResultId FK
varchar_16_ state
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"public.workflows_tags" {
varchar_36_ tagId FK
varchar_36_ workflowId FK
}
"public.folder" {
timestamp_3__with_time_zone createdAt
varchar_36_ id
varchar_128_ name
varchar_36_ parentFolderId FK
varchar_36_ projectId FK
varchar_16_ resourceType
timestamp_3__with_time_zone updatedAt
}
由 tbls 生成