mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-22 12:31:57 +02:00
2.4 KiB
Generated
2.4 KiB
Generated
app_artifact
Description
Table Definition
CREATE TABLE "app_artifact" ("id" integer PRIMARY KEY NOT NULL, "appId" varchar NOT NULL, "storedAt" varchar(2) NOT NULL, "storageKey" text NOT NULL, "sizeBytes" integer NOT NULL, "uploadStatus" varchar(16) NOT NULL DEFAULT ('pending'), "createdAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), "updatedAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), CONSTRAINT "CHK_app_artifact_storedAt" CHECK ("storedAt" IN ('db', 'fs', 's3', 'az')), CONSTRAINT "CHK_app_artifact_uploadStatus" CHECK ("uploadStatus" IN ('pending', 'completed')))
Columns
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| appId | varchar | false | ||||
| createdAt | datetime(3) | STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW') | false | |||
| id | INTEGER | false | app_version | |||
| sizeBytes | INTEGER | false | ||||
| storageKey | TEXT | false | ||||
| storedAt | varchar(2) | false | ||||
| updatedAt | datetime(3) | STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW') | false | |||
| uploadStatus | varchar(16) | 'pending' | false |
Constraints
| Name | Type | Definition |
|---|---|---|
| - | CHECK | CHECK ("storedAt" IN ('db', 'fs', 's3', 'az')) |
| - | CHECK | CHECK ("uploadStatus" IN ('pending', 'completed')) |
| id | PRIMARY KEY | PRIMARY KEY (id) |
Relations
erDiagram
"app_version" }o--o| "app_artifact" : "FOREIGN KEY (bundleArtifactId) REFERENCES app_artifact (id) ON UPDATE NO ACTION ON DELETE SET NULL MATCH NONE"
"app_version" }o--|| "app_artifact" : "FOREIGN KEY (sourceArtifactId) REFERENCES app_artifact (id) ON UPDATE NO ACTION ON DELETE RESTRICT MATCH NONE"
"app_artifact" {
varchar appId
datetime_3_ createdAt
INTEGER id
INTEGER sizeBytes
TEXT storageKey
varchar_2_ storedAt
datetime_3_ updatedAt
varchar_16_ uploadStatus
}
"app_version" {
varchar appId FK
INTEGER buildAttempts
varchar_16_ buildStatus
datetime_3_ buildStatusUpdatedAt
INTEGER bundleArtifactId FK
datetime_3_ createdAt
varchar id PK
varchar_255_ label
INTEGER sourceArtifactId FK
datetime_3_ updatedAt
}
Generated by tbls