public.poller_state¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| backoffUntil | timestamp(3) with time zone | true | 在此时刻之前不尝试轮询;未在退避时为 NULL。 | |||
| consecutiveErrors | integer | 0 | false | 自上次成功轮询以来失败的轮询次数。 | ||
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| cursor | json | '{}'::json | false | 轮询节点对其源的消费进度,使用该节点自身采用的形式。 | ||
| nodeId | varchar(64) | false | ||||
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| workflowId | varchar(36) | false | public.workflow_entity |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| FK_poller_state_workflowId | FOREIGN KEY | FOREIGN KEY ("workflowId") REFERENCES workflow_entity(id) ON DELETE CASCADE |
| PK_eda59336a5dd1e6a12f4d4b7287 | PRIMARY KEY | PRIMARY KEY ("workflowId", "nodeId") |
| poller_state_consecutiveErrors_not_null | n | NOT NULL "consecutiveErrors" |
| poller_state_createdAt_not_null | n | NOT NULL "createdAt" |
| poller_state_cursor_not_null | n | NOT NULL cursor |
| poller_state_nodeId_not_null | n | NOT NULL "nodeId" |
| poller_state_updatedAt_not_null | n | NOT NULL "updatedAt" |
| poller_state_workflowId_not_null | n | NOT NULL "workflowId" |
索引¶
| 名称 | 定义 |
|---|---|
| PK_eda59336a5dd1e6a12f4d4b7287 | CREATE UNIQUE INDEX "PK_eda59336a5dd1e6a12f4d4b7287" ON public.poller_state USING btree ("workflowId", "nodeId") |
关系¶
erDiagram
"public.poller_state" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.poller_state" {
timestamp_3__with_time_zone backoffUntil
integer consecutiveErrors
timestamp_3__with_time_zone createdAt
json cursor
varchar_64_ nodeId
timestamp_3__with_time_zone updatedAt
varchar_36_ workflowId FK
}
"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