public.migration_workflow_owner
Columns
| Name |
Type |
Default |
Nullable |
Children |
Parents |
Comment |
| assignedAt |
timestamp(3) with time zone |
|
true |
|
|
When a person assigned the owner. NULL for a suggestion. |
| assignedById |
uuid |
|
true |
|
public.user |
Who assigned the owner. NULL for a suggestion, or after that user was deleted. |
| createdAt |
timestamp(3) with time zone |
CURRENT_TIMESTAMP(3) |
false |
|
|
|
| source |
varchar(16) |
|
false |
|
|
MigrationOwnerSource enum: "suggested" by the heuristic, or "assigned" by a person. |
| updatedAt |
timestamp(3) with time zone |
CURRENT_TIMESTAMP(3) |
false |
|
|
|
| userId |
uuid |
|
true |
|
public.user |
The owner. NULL after the user was deleted. |
| workflowId |
varchar(36) |
|
false |
|
public.workflow_entity |
|
Constraints
| Name |
Type |
Definition |
| 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_ca859918be95d42fa6f698791c3 |
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" |
Indexes
| Name |
Definition |
| 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") |
Relations
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
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
}
Generated by tbls