# public.app ## Columns | Name | Type | Default | Nullable | Children | Parents | Comment | | ---- | ---- | ------- | -------- | -------- | ------- | ------- | | createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | | | id | varchar(36) | | false | [public.page](public.page.md) | | | | name | varchar(128) | | false | | | | | namespace | varchar(128) | | false | | | URL path segment under /apps/; unique per project | | projectId | varchar(36) | | false | | [public.project](public.project.md) | | | 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 | | ---- | ---- | ---------- | | FK_f84dd7eb539e46e0c233fa09b20 | FOREIGN KEY | FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE | | PK_9478629fc093d229df09e560aea | PRIMARY KEY | PRIMARY KEY (id) | | 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 ```mermaid erDiagram "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" { 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.page" { varchar_36_ appId FK json content timestamp_3__with_time_zone createdAt varchar_36_ id varchar_36_ parentPageId FK varchar_255_ route 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](https://github.com/k1LoW/tbls)