跳转至

public.app_artifact

列

名称 类型 默认值 可空 子表 父表 注释
appId uuid false 没有外键,因此在应用删除后,所属应用的 ID 仍可用于清理。
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
id integer false public.app_version
sizeBytes integer false
storageKey text false 对存储后端中对象的引用
storedAt varchar(2) false 存储后端:数据库、文件系统、S3 或 Azure
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
uploadStatus varchar(16) 'pending'::character varying false 上传状态:pending 或 completed

约束

名称 类型 定义
CHK_app_artifact_storedAt CHECK CHECK ((("storedAt")::text = ANY ((ARRAY['db'::character varying, 'fs'::character varying, 's3'::character varying, 'az'::character varying])::text[])))
CHK_app_artifact_uploadStatus CHECK CHECK ((("uploadStatus")::text = ANY ((ARRAY['pending'::character varying, 'completed'::character varying])::text[])))
PK_307f7470d2b759f7c4bc056d3a5 PRIMARY KEY PRIMARY KEY (id)
app_artifact_appId_not_null n NOT NULL "appId"
app_artifact_createdAt_not_null n NOT NULL "createdAt"
app_artifact_id_not_null n NOT NULL id
app_artifact_sizeBytes_not_null n NOT NULL "sizeBytes"
app_artifact_storageKey_not_null n NOT NULL "storageKey"
app_artifact_storedAt_not_null n NOT NULL "storedAt"
app_artifact_updatedAt_not_null n NOT NULL "updatedAt"
app_artifact_uploadStatus_not_null n NOT NULL "uploadStatus"

索引

名称 定义
PK_307f7470d2b759f7c4bc056d3a5 CREATE UNIQUE INDEX "PK_307f7470d2b759f7c4bc056d3a5" ON public.app_artifact USING btree (id)

关系

erDiagram

"public.app_version" }o--o| "public.app_artifact" : "FOREIGN KEY (#quot;bundleArtifactId#quot;) REFERENCES app_artifact(id) ON DELETE SET NULL"
"public.app_version" }o--|| "public.app_artifact" : "FOREIGN KEY (#quot;sourceArtifactId#quot;) REFERENCES app_artifact(id) ON DELETE RESTRICT"

"public.app_artifact" {
  uuid appId
  timestamp_3__with_time_zone createdAt
  integer id
  integer sizeBytes
  text storageKey
  varchar_2_ storedAt
  timestamp_3__with_time_zone updatedAt
  varchar_16_ uploadStatus
}
"public.app_version" {
  uuid appId FK
  json bindings
  integer buildAttempts
  varchar_16_ buildStatus
  timestamp_3__with_time_zone buildStatusUpdatedAt
  integer bundleArtifactId FK
  timestamp_3__with_time_zone createdAt
  text description
  uuid id
  boolean isScaffold
  varchar_255_ label
  integer sourceArtifactId FK
  timestamp_3__with_time_zone updatedAt
}

由 tbls 生成

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