跳转至

public.self_healing_investigation

列

名称 类型 默认值 可空 子表 父表 注释
backgroundUserId uuid false public.user 启用调查的用户
configurationId integer false public.self_healing_configuration
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
executionId varchar(36) false 修剪后保留的原始执行引用;支持两种执行引擎
finishedAt timestamp(3) with time zone true 调查释放其工作流占用的时间
id varchar(36) false
projectId varchar(36) false public.project 受理时工作流所属的项目
publishedVersionId varchar(36) false 受理时核对的已发布工作流版本
resultId varchar(36) true public.self_healing_result 调查原子完成时保存的结果
runId uuid false Assistant 运行 ID;技术状态保留在运行事件中
threadId uuid false 私有 Assistant 线程 ID;删除后保留
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
workflowId varchar(36) false public.workflow_entity 被调查的工作流

约束

名称 类型 定义
FK_24923f35caa34c1f264576a7914 FOREIGN KEY FOREIGN KEY ("backgroundUserId") REFERENCES "user"(id) ON DELETE CASCADE
FK_39a928c9ea7b7afce4bdd1c6dae FOREIGN KEY FOREIGN KEY ("resultId") REFERENCES self_healing_result(id) ON DELETE CASCADE
FK_7fa67c33c27bcc5d745c75a7eab FOREIGN KEY FOREIGN KEY ("workflowId") REFERENCES workflow_entity(id) ON DELETE CASCADE
FK_eb5b7d44599bd9a34f02f071b23 FOREIGN KEY FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE
FK_self_healing_investigation_configuration FOREIGN KEY FOREIGN KEY ("configurationId") REFERENCES self_healing_configuration(id) ON DELETE CASCADE
PK_735895e1c137cd827884cfa843a PRIMARY KEY PRIMARY KEY (id)
self_healing_investigation_backgroundUserId_not_null n NOT NULL "backgroundUserId"
self_healing_investigation_configurationId_not_null n NOT NULL "configurationId"
self_healing_investigation_createdAt_not_null n NOT NULL "createdAt"
self_healing_investigation_executionId_not_null n NOT NULL "executionId"
self_healing_investigation_id_not_null n NOT NULL id
self_healing_investigation_projectId_not_null n NOT NULL "projectId"
self_healing_investigation_publishedVersionId_not_null n NOT NULL "publishedVersionId"
self_healing_investigation_runId_not_null n NOT NULL "runId"
self_healing_investigation_threadId_not_null n NOT NULL "threadId"
self_healing_investigation_updatedAt_not_null n NOT NULL "updatedAt"
self_healing_investigation_workflowId_not_null n NOT NULL "workflowId"

索引

名称 定义
IDX_24923f35caa34c1f264576a791 CREATE INDEX "IDX_24923f35caa34c1f264576a791" ON public.self_healing_investigation USING btree ("backgroundUserId")
IDX_bfdc789961ad0537486e0e2d29 CREATE UNIQUE INDEX "IDX_bfdc789961ad0537486e0e2d29" ON public.self_healing_investigation USING btree ("workflowId", "executionId")
IDX_eb5b7d44599bd9a34f02f071b2 CREATE INDEX "IDX_eb5b7d44599bd9a34f02f071b2" ON public.self_healing_investigation USING btree ("projectId")
IDX_self_healing_investigation_configurationId_createdAt CREATE INDEX "IDX_self_healing_investigation_configurationId_createdAt" ON public.self_healing_investigation USING btree ("configurationId", "createdAt")
IDX_self_healing_investigation_resultId CREATE UNIQUE INDEX "IDX_self_healing_investigation_resultId" ON public.self_healing_investigation USING btree ("resultId") WHERE ("resultId" IS NOT NULL)
IDX_self_healing_investigation_workflowId CREATE UNIQUE INDEX "IDX_self_healing_investigation_workflowId" ON public.self_healing_investigation USING btree ("workflowId") WHERE ("finishedAt" IS NULL)
PK_735895e1c137cd827884cfa843a CREATE UNIQUE INDEX "PK_735895e1c137cd827884cfa843a" ON public.self_healing_investigation USING btree (id)

关系

erDiagram

"public.self_healing_investigation" }o--|| "public.user" : "FOREIGN KEY (#quot;backgroundUserId#quot;) REFERENCES #quot;user#quot;(id) ON DELETE CASCADE"
"public.self_healing_investigation" }o--|| "public.self_healing_configuration" : "FOREIGN KEY (#quot;configurationId#quot;) REFERENCES self_healing_configuration(id) ON DELETE CASCADE"
"public.self_healing_investigation" }o--|| "public.project" : "FOREIGN KEY (#quot;projectId#quot;) REFERENCES project(id) ON DELETE CASCADE"
"public.self_healing_investigation" }o--o| "public.self_healing_result" : "FOREIGN KEY (#quot;resultId#quot;) REFERENCES self_healing_result(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_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.user" {
  timestamp_3__with_time_zone createdAt
  boolean disabled
  varchar_255_ email
  varchar_32_ firstName
  uuid id
  varchar_16_ kind
  date lastActiveAt
  varchar_32_ lastName
  boolean mfaEnabled
  text mfaRecoveryCodes
  text mfaSecret
  varchar_255_ password
  json personalizationAnswers
  varchar_128_ roleSlug FK
  json settings
  timestamp_3__with_time_zone updatedAt
}
"public.self_healing_configuration" {
  timestamp_3__with_time_zone createdAt
  boolean enabled
  uuid enabledById FK
  integer id
  boolean includeAllProjectMembers
  boolean includeSubWorkflows
  varchar_36_ projectId FK
  varchar_16_ scope
  timestamp_3__with_time_zone updatedAt
}
"public.project" {
  timestamp_3__with_time_zone createdAt
  uuid creatorId FK
  json customTelemetryTags
  varchar_512_ description
  json icon
  varchar_36_ id
  varchar_255_ name
  varchar_36_ type
  timestamp_3__with_time_zone updatedAt
}
"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.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
}

由 tbls 生成

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n