n8n/docs/generated/postgres-schema/public.app.md
2026-09-11 12:17:55 +02:00

3.8 KiB
Generated

public.app

Columns

Name Type Default Nullable Children Parents Comment
activeVersionId varchar(36) true public.app_version app_version served at /apps/<namespace>; null means unpublished
auth varchar(16) 'public'::character varying false Who may open the App: anyone (public) or a signed-in user of this instance (n8n)
components text true TSX source of the shared components that code blocks import from app/components; null when the App has none
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
id varchar(36) false public.app_version public.page
name varchar(128) false
namespace varchar(128) false URL path segment under /apps/; unique per project
projectId varchar(36) false public.project
theme json true Shared colors/spacing for the App, app-defined shape
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

Constraints

Name Type Definition
CHK_app_auth CHECK CHECK (((auth)::text = ANY ((ARRAY['public'::character varying, 'n8n'::character varying])::text[])))
FK_f84dd7eb539e46e0c233fa09b20 FOREIGN KEY FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE
PK_9478629fc093d229df09e560aea PRIMARY KEY PRIMARY KEY (id)
app_activeVersionId_foreign FOREIGN KEY FOREIGN KEY ("activeVersionId") REFERENCES app_version(id) ON DELETE SET NULL
app_auth_not_null n NOT NULL auth
app_createdAt_not_null n NOT NULL "createdAt"
app_id_not_null n NOT NULL id
app_name_not_null n NOT NULL name
app_namespace_not_null n NOT NULL namespace
app_projectId_not_null n NOT NULL "projectId"
app_updatedAt_not_null n NOT NULL "updatedAt"

Indexes

Name Definition
IDX_app_namespace CREATE UNIQUE INDEX "IDX_app_namespace" ON public.app USING btree (namespace)
PK_9478629fc093d229df09e560aea CREATE UNIQUE INDEX "PK_9478629fc093d229df09e560aea" ON public.app USING btree (id)

Relations

erDiagram

"public.app" }o--o| "public.app_version" : "FOREIGN KEY (#quot;activeVersionId#quot;) REFERENCES app_version(id) ON DELETE SET NULL"
"public.app_version" }o--|| "public.app" : "FOREIGN KEY (#quot;appId#quot;) REFERENCES app(id) ON DELETE CASCADE"
"public.page" }o--|| "public.app" : "FOREIGN KEY (#quot;appId#quot;) REFERENCES app(id) ON DELETE CASCADE"
"public.app" }o--|| "public.project" : "FOREIGN KEY (#quot;projectId#quot;) REFERENCES project(id) ON DELETE CASCADE"

"public.app" {
  varchar_36_ activeVersionId FK
  varchar_16_ auth
  text components
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  varchar_128_ name
  varchar_128_ namespace
  varchar_36_ projectId FK
  json theme
  timestamp_3__with_time_zone updatedAt
}
"public.app_version" {
  varchar_36_ appId FK
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  varchar_36_ id
  json snapshot
  timestamp_3__with_time_zone updatedAt
}
"public.page" {
  varchar_36_ appId FK
  json content
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  json layout
  varchar_36_ parentPageId FK
  varchar_255_ route
  varchar_255_ title
  timestamp_3__with_time_zone updatedAt
}
"public.project" {
  timestamp_3__with_time_zone createdAt
  uuid creatorId FK
  json customTelemetryTags
  varchar_512_ description
  json icon
  varchar_36_ id
  varchar_255_ name
  varchar_36_ type
  timestamp_3__with_time_zone updatedAt
}

Generated by tbls