n8n/docs/generated/postgres-schema/public.webhook_entity.md

74 lines
2.2 KiB
Markdown

# public.webhook_entity
## Columns
| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| method | varchar | | false | | | |
| node | varchar | | false | | | |
| pathLength | integer | | true | | | |
| webhookId | varchar | | true | | | |
| webhookPath | varchar | | false | | | |
| workflowId | varchar(36) | | false | | [public.workflow_entity](public.workflow_entity.md) | |
## Constraints
| Name | Type | Definition |
| ---- | ---- | ---------- |
| PK_b21ace2e13596ccd87dc9bf4ea6 | PRIMARY KEY | PRIMARY KEY ("webhookPath", method) |
| fk_webhook_entity_workflow_id | FOREIGN KEY | FOREIGN KEY ("workflowId") REFERENCES workflow_entity(id) ON DELETE CASCADE |
| webhook_entity_method_not_null | n | NOT NULL method |
| webhook_entity_node_not_null | n | NOT NULL node |
| webhook_entity_webhookPath_not_null | n | NOT NULL "webhookPath" |
| webhook_entity_workflowId_not_null1 | n | NOT NULL "workflowId" |
## Indexes
| Name | Definition |
| ---- | ---------- |
| PK_b21ace2e13596ccd87dc9bf4ea6 | CREATE UNIQUE INDEX "PK_b21ace2e13596ccd87dc9bf4ea6" ON public.webhook_entity USING btree ("webhookPath", method) |
| idx_16f4436789e804e3e1c9eeb240 | CREATE INDEX idx_16f4436789e804e3e1c9eeb240 ON public.webhook_entity USING btree ("webhookId", method, "pathLength") |
## Relations
```mermaid
erDiagram
"public.webhook_entity" }o--|| "public.workflow_entity" : "FOREIGN KEY (#quot;workflowId#quot;) REFERENCES workflow_entity(id) ON DELETE CASCADE"
"public.webhook_entity" {
varchar method
varchar node
integer pathLength
varchar webhookId
varchar webhookPath
varchar_36_ workflowId 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
}
```
---
> Generated by [tbls](https://github.com/k1LoW/tbls)