跳转至

public.AI实例工作流快照

# public.instance_ai_workflow_snapshots

## 列 {#columns}

| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false |  |  |  |
| resourceId | varchar(255) |  | true |  |  |  |
| runId | varchar(36) |  | false |  |  |  |
| snapshot | text |  | false |  |  |  |
| status | varchar |  | true |  |  |  |
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false |  |  |  |
| workflowName | varchar(255) |  | false |  |  |  |

## 约束 {#constraints}

| 名称 | 类型 | 定义 |
| ---- | ---- | ---------- |
| PK_93f2696eb321dfe1d7defe7073f | PRIMARY KEY | PRIMARY KEY ("runId", "workflowName") |
| instance_ai_workflow_snapshots_createdAt_not_null | n | NOT NULL "createdAt" |
| instance_ai_workflow_snapshots_runId_not_null | n | NOT NULL "runId" |
| instance_ai_workflow_snapshots_snapshot_not_null | n | NOT NULL snapshot |
| instance_ai_workflow_snapshots_updatedAt_not_null | n | NOT NULL "updatedAt" |
| instance_ai_workflow_snapshots_workflowName_not_null | n | NOT NULL "workflowName" |

## 索引 {#indexes}

| 名称 | 定义 |
| ---- | ---------- |
| IDX_a371ee6b8e0ebb5635f8baa46d | CREATE INDEX "IDX_a371ee6b8e0ebb5635f8baa46d" ON public.instance_ai_workflow_snapshots USING btree ("workflowName", status) |
| PK_93f2696eb321dfe1d7defe7073f | CREATE UNIQUE INDEX "PK_93f2696eb321dfe1d7defe7073f" ON public.instance_ai_workflow_snapshots USING btree ("runId", "workflowName") |

## 关系 {#relations}

```mermaid
erDiagram


"public.instance_ai_workflow_snapshots" {
  timestamp_3__with_time_zone createdAt
  varchar_255_ resourceId
  varchar_36_ runId
  text snapshot
  varchar status
  timestamp_3__with_time_zone updatedAt
  varchar_255_ workflowName
}

由 tbls 生成 ```

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