跳转至

public.workflow_review_activity_comment

列

名称 类型 默认值 可空 子表 父表 备注
activityId integer false public.workflow_review_activity 此消息所属的讨论串;activity 行作为其标题
body text true 动态流中唯一可由用户编辑的文本;删除时置为 NULL
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
createdById uuid true public.user
deletedAt timestamp(3) with time zone true 评论被删除时设置
history json true 评论修订历史。
id integer false
updatedAt timestamp(3) with time zone true 正文被编辑时设置

约束

名称 类型 定义
FK_3cd755e8ce44ee49bdf7e9222ec FOREIGN KEY FOREIGN KEY ("activityId") REFERENCES workflow_review_activity(id) ON DELETE CASCADE
FK_9cfac4b106553d0930a1962bea0 FOREIGN KEY FOREIGN KEY ("createdById") REFERENCES "user"(id) ON DELETE SET NULL
PK_5a2a7dea8b7e6afa1001129da27 PRIMARY KEY PRIMARY KEY (id)
workflow_review_activity_comment_activityId_not_null n NOT NULL "activityId"
workflow_review_activity_comment_createdAt_not_null n NOT NULL "createdAt"
workflow_review_activity_comment_id_not_null n NOT NULL id

索引

名称 定义
IDX_workflow_review_activity_comment_activity CREATE INDEX "IDX_workflow_review_activity_comment_activity" ON public.workflow_review_activity_comment USING btree ("activityId", id)
PK_5a2a7dea8b7e6afa1001129da27 CREATE UNIQUE INDEX "PK_5a2a7dea8b7e6afa1001129da27" ON public.workflow_review_activity_comment USING btree (id)

关系

erDiagram

"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_comment" }o--o| "public.user" : "FOREIGN KEY (#quot;createdById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"

"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_review_activity" {
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  json data
  integer id
  varchar_64_ type
  integer typeVersion
  varchar_36_ workflowReviewRequestId 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
}

由 tbls 生成

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