Files
n8n/docs/generated/postgres-schema/public.workflow_review_activity.md
T
2026-08-11 12:25:46 +00:00

5.0 KiB
Generated

public.workflow_review_activity

Columns

Name Type Default Nullable Children Parents Comment
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
createdById uuid true public.user
data json true Detail per activity type
id integer false public.workflow_review_activity_comment
type varchar(64) false Feed entry kind; see WorkflowReviewActivityType in @n8n/api-types
typeVersion integer 1 false Schema version of the data payload for this type
workflowId varchar(36) true public.workflow_entity Scopes the entry to one workflow; NULL for review-level entries like comments
workflowReviewRequestId varchar(36) false public.workflow_review_request

Constraints

Name Type Definition
CHK_workflow_review_activity_type CHECK CHECK (((type)::text = ANY ((ARRAY['review.opened'::character varying, 'comment.created'::character varying, 'review.changes_requested'::character varying, 'review.version_updated'::character varying, 'review.approved'::character varying, 'workflow.published'::character varying, 'review.closed'::character varying])::text[])))
FK_61048bf6220dd354c955a9d9379 FOREIGN KEY FOREIGN KEY ("workflowReviewRequestId") REFERENCES workflow_review_request(id) ON DELETE CASCADE
FK_d0162c063ffb699b0f1d1172508 FOREIGN KEY FOREIGN KEY ("workflowId") REFERENCES workflow_entity(id) ON DELETE CASCADE
FK_fcf78b037a72fc7aa01ab237e08 FOREIGN KEY FOREIGN KEY ("createdById") REFERENCES "user"(id) ON DELETE SET NULL
PK_f1e66ba0b645dec566057ad21e6 PRIMARY KEY PRIMARY KEY (id)
workflow_review_activity_createdAt_not_null n NOT NULL "createdAt"
workflow_review_activity_id_not_null n NOT NULL id
workflow_review_activity_typeVersion_not_null n NOT NULL "typeVersion"
workflow_review_activity_type_not_null n NOT NULL type
workflow_review_activity_workflowReviewRequestId_not_null n NOT NULL "workflowReviewRequestId"

Indexes

Name Definition
IDX_workflow_review_activity_request CREATE INDEX "IDX_workflow_review_activity_request" ON public.workflow_review_activity USING btree ("workflowReviewRequestId", id)
PK_f1e66ba0b645dec566057ad21e6 CREATE UNIQUE INDEX "PK_f1e66ba0b645dec566057ad21e6" ON public.workflow_review_activity USING btree (id)

Relations

erDiagram

"public.workflow_review_activity" }o--o| "public.user" : "FOREIGN KEY (#quot;createdById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.workflow_review_activity_comment" }o--|| "public.workflow_review_activity" : "FOREIGN KEY (#quot;activityId#quot;) REFERENCES workflow_review_activity(id) ON DELETE CASCADE"
"public.workflow_review_activity" }o--o| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.workflow_review_activity" }o--|| "public.workflow_review_request" : "FOREIGN KEY (#quot;workflowReviewRequestId#quot;) REFERENCES workflow_review_request(id) ON DELETE CASCADE"

"public.workflow_review_activity" {
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  json data
  integer id
  varchar_64_ type
  integer typeVersion
  varchar_36_ workflowId FK
  varchar_36_ workflowReviewRequestId 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_review_activity_comment" {
  integer activityId FK
  text body
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  timestamp_3__with_time_zone deletedAt
  json history
  integer id
  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
}
"public.workflow_review_request" {
  timestamp_3__with_time_zone approvedAt
  uuid closedById FK
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  varchar_50_ decision
  text description
  varchar_36_ id
  varchar_36_ projectId FK
  varchar_16_ state
  varchar_255_ title
  timestamp_3__with_time_zone updatedAt
  uuid updatedById FK
}

Generated by tbls