跳转至

public.self_healing_result

列

名称 类型 默认值 可空 子表 父表 注释
backgroundUserId uuid false public.user 启用调查的用户
completedAt timestamp(3) with time zone false
configurationId integer false public.self_healing_configuration
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
executionId varchar(36) false 执行引用在清理后保留;同时支持外部 v2 数据平面
id varchar(36) false public.self_healing_investigation public.workflow_suggestion
outcome varchar(16) false 已接受的调查结果,与审核关闭相互独立
projectId varchar(36) false public.project 原始工作流所属项目
report text false 保存的报告,独立于执行和聊天数据
reviewState varchar(16) 'open'::character varying false 结果及其建议的审核状态
summary text false
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
usage json false 记录运行时和计费使用情况;null 测量值表示未知
workflowId varchar(36) false public.workflow_entity 被调查的工作流

约束

名称 类型 定义
CHK_self_healing_result_outcome CHECK CHECK (((outcome)::text = ANY ((ARRAY['fix_ready'::character varying, 'needs_you'::character varying, 'could_not_fix'::character varying])::text[])))
CHK_self_healing_result_reviewState CHECK CHECK ((("reviewState")::text = ANY ((ARRAY['open'::character varying, 'applied'::character varying, 'outdated'::character varying, 'dismissed'::character varying, 'closed'::character varying])::text[])))
FK_3cb48b62bf261b7a6da666fee2 FOREIGN KEY FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE
FK_8366669b58b0f63a07cf2bbffcc FOREIGN KEY FOREIGN KEY ("backgroundUserId") REFERENCES "user"(id) ON DELETE CASCADE
FK_9a3fe8a8f872917949d8de1bb4 FOREIGN KEY FOREIGN KEY ("workflowId") REFERENCES workflow_entity(id) ON DELETE CASCADE
FK_self_healing_result_configuration FOREIGN KEY FOREIGN KEY ("configurationId") REFERENCES self_healing_configuration(id) ON DELETE CASCADE
PK_0a772d117fddff1eaf6a759e1b6 PRIMARY KEY PRIMARY KEY (id)
self_healing_result_backgroundUserId_not_null n NOT NULL "backgroundUserId"
self_healing_result_completedAt_not_null n NOT NULL "completedAt"
self_healing_result_configurationId_not_null n NOT NULL "configurationId"
self_healing_result_createdAt_not_null n NOT NULL "createdAt"
self_healing_result_executionId_not_null n NOT NULL "executionId"
self_healing_result_id_not_null n NOT NULL id
self_healing_result_outcome_not_null n NOT NULL outcome
self_healing_result_projectId_not_null n NOT NULL "projectId"
self_healing_result_report_not_null n NOT NULL report
self_healing_result_reviewState_not_null n NOT NULL "reviewState"
self_healing_result_summary_not_null n NOT NULL summary
self_healing_result_updatedAt_not_null n NOT NULL "updatedAt"
self_healing_result_usage_not_null n NOT NULL usage
self_healing_result_workflowId_not_null n NOT NULL "workflowId"

索引

名称 定义
IDX_3cb48b62bf261b7a6da666fee2 CREATE INDEX "IDX_3cb48b62bf261b7a6da666fee2" ON public.self_healing_result USING btree ("projectId")
IDX_8366669b58b0f63a07cf2bbffc CREATE INDEX "IDX_8366669b58b0f63a07cf2bbffc" ON public.self_healing_result USING btree ("backgroundUserId")
IDX_9a3fe8a8f872917949d8de1bb4 CREATE INDEX "IDX_9a3fe8a8f872917949d8de1bb4" ON public.self_healing_result USING btree ("workflowId")
IDX_self_healing_result_configurationId CREATE INDEX "IDX_self_healing_result_configurationId" ON public.self_healing_result USING btree ("configurationId")
PK_0a772d117fddff1eaf6a759e1b6 CREATE UNIQUE INDEX "PK_0a772d117fddff1eaf6a759e1b6" ON public.self_healing_result USING btree (id)

关系

erDiagram

"public.self_healing_result" }o--|| "public.user" : "FOREIGN KEY (#quot;backgroundUserId#quot;) REFERENCES #quot;user#quot;(id) ON DELETE CASCADE"
"public.self_healing_result" }o--|| "public.self_healing_configuration" : "FOREIGN KEY (#quot;configurationId#quot;) REFERENCES self_healing_configuration(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.workflow_suggestion" }o--|| "public.self_healing_result" : "FOREIGN KEY (#quot;selfHealingResultId#quot;) REFERENCES self_healing_result(id) ON DELETE CASCADE"
"public.self_healing_result" }o--|| "public.project" : "FOREIGN KEY (#quot;projectId#quot;) REFERENCES project(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.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.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.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.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.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.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