# public.folder ## Columns | Name | Type | Default | Nullable | Children | Parents | Comment | | ---- | ---- | ------- | -------- | -------- | ------- | ------- | | createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | | | id | varchar(36) | | false | [public.folder](public.folder.md) [public.folder_tag](public.folder_tag.md) [public.workflow_entity](public.workflow_entity.md) | | | | name | varchar(128) | | false | | | | | parentFolderId | varchar(36) | | true | | [public.folder](public.folder.md) | | | projectId | varchar(36) | | false | | [public.project](public.project.md) | | | updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | | ## Constraints | Name | Type | Definition | | ---- | ---- | ---------- | | FK_804ea52f6729e3940498bd54d78 | FOREIGN KEY | FOREIGN KEY ("parentFolderId") REFERENCES folder(id) ON DELETE CASCADE | | FK_a8260b0b36939c6247f385b8221 | FOREIGN KEY | FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE | | PK_6278a41a706740c94c02e288df8 | PRIMARY KEY | PRIMARY KEY (id) | | folder_createdAt_not_null | n | NOT NULL "createdAt" | | folder_id_not_null | n | NOT NULL id | | folder_name_not_null | n | NOT NULL name | | folder_projectId_not_null | n | NOT NULL "projectId" | | folder_updatedAt_not_null | n | NOT NULL "updatedAt" | ## Indexes | Name | Definition | | ---- | ---------- | | IDX_14f68deffaf858465715995508 | CREATE UNIQUE INDEX "IDX_14f68deffaf858465715995508" ON public.folder USING btree ("projectId", id) | | PK_6278a41a706740c94c02e288df8 | CREATE UNIQUE INDEX "PK_6278a41a706740c94c02e288df8" ON public.folder USING btree (id) | ## Relations ```mermaid erDiagram "public.folder" }o--o| "public.folder" : "FOREIGN KEY (#quot;parentFolderId#quot;) REFERENCES folder(id) ON DELETE CASCADE" "public.folder_tag" }o--|| "public.folder" : "FOREIGN KEY (#quot;folderId#quot;) REFERENCES folder(id) ON DELETE CASCADE" "public.workflow_entity" }o--o| "public.folder" : "FOREIGN KEY (#quot;parentFolderId#quot;) REFERENCES folder(id) ON DELETE CASCADE" "public.folder" }o--|| "public.project" : "FOREIGN KEY (#quot;projectId#quot;) REFERENCES project(id) ON DELETE CASCADE" "public.folder" { timestamp_3__with_time_zone createdAt varchar_36_ id varchar_128_ name varchar_36_ parentFolderId FK varchar_36_ projectId FK timestamp_3__with_time_zone updatedAt } "public.folder_tag" { varchar_36_ folderId FK varchar_36_ tagId FK } "public.workflow_entity" { boolean active varchar_36_ activeVersionId FK json connections timestamp_3__with_time_zone createdAt text description varchar_36_ id boolean isArchived json meta varchar_128_ name json nodeGroups json nodes varchar_36_ parentFolderId FK json pinData json settings varchar sourceWorkflowId json staticData integer triggerCount timestamp_3__with_time_zone updatedAt integer versionCounter character_36_ versionId } "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)