跳转至

public.migration_workflow_owner

列

名称 类型 默认值 可空 子表 父表 注释
assignedAt timestamp(3) with time zone true 分配所有者的时间。若为建议,则为 NULL。
assignedById uuid true public.user 谁分配的所有者。若为建议,或该用户已被删除,则为 NULL。
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
source varchar(16) false MigrationOwnerSource 枚举:启发式规则的 "suggested",或人工指定的 "assigned"。
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
userId uuid true public.user 所有者。用户被删除后为 NULL。
workflowId varchar(36) false public.workflow_entity

约束

名称 类型 定义
CHK_migration_workflow_owner_source CHECK CHECK (((source)::text = ANY ((ARRAY['suggested'::character varying, 'assigned'::character varying])::text[])))
FK_59cde25bbb0edbb82286e4806d2 FOREIGN KEY FOREIGN KEY ("workflowId") REFERENCES workflow_entity(id) ON DELETE CASCADE
FK_ca859918be95d42fa6f698791c FOREIGN KEY FOREIGN KEY ("userId") REFERENCES "user"(id) ON DELETE SET NULL
FK_e6e5e4cab49ec23a544ffc9337a FOREIGN KEY FOREIGN KEY ("assignedById") REFERENCES "user"(id) ON DELETE SET NULL
PK_59cde25bbb0edbb82286e4806d2 PRIMARY KEY PRIMARY KEY ("workflowId")
migration_workflow_owner_createdAt_not_null n NOT NULL "createdAt"
migration_workflow_owner_source_not_null n NOT NULL source
migration_workflow_owner_updatedAt_not_null n NOT NULL "updatedAt"
migration_workflow_owner_workflowId_not_null n NOT NULL "workflowId"

索引

名称 定义
IDX_ca859918be95d42fa6f698791c CREATE INDEX "IDX_ca859918be95d42fa6f698791c" ON public.migration_workflow_owner USING btree ("userId")
PK_59cde25bbb0edbb82286e4806d2 CREATE UNIQUE INDEX "PK_59cde25bbb0edbb82286e4806d2" ON public.migration_workflow_owner USING btree ("workflowId")

关系

erDiagram

"public.migration_workflow_owner" }o--o| "public.user" : "FOREIGN KEY (#quot;assignedById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.migration_workflow_owner" }o--o| "public.user" : "FOREIGN KEY (#quot;userId#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.migration_workflow_owner" |o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"

"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.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.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