mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-27 19:15:01 +02:00
Co-authored-by: Danny Martini <danny@n8n.io> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
77 lines
2.6 KiB
Markdown
77 lines
2.6 KiB
Markdown
# public.shared_credentials
|
|
|
|
## Columns
|
|
|
|
| Name | Type | Default | Nullable | Children | Parents | Comment |
|
|
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
|
|
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | |
|
|
| credentialsId | varchar(36) | | false | | [public.credentials_entity](public.credentials_entity.md) | |
|
|
| projectId | varchar(36) | | false | | [public.project](public.project.md) | |
|
|
| role | text | | false | | | |
|
|
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | |
|
|
|
|
## Constraints
|
|
|
|
| Name | Type | Definition |
|
|
| ---- | ---- | ---------- |
|
|
| FK_416f66fc846c7c442970c094ccf | FOREIGN KEY | FOREIGN KEY ("credentialsId") REFERENCES credentials_entity(id) ON DELETE CASCADE |
|
|
| FK_812c2852270da1247756e77f5a4 | FOREIGN KEY | FOREIGN KEY ("projectId") REFERENCES project(id) ON DELETE CASCADE |
|
|
| PK_8ef3a59796a228913f251779cff | PRIMARY KEY | PRIMARY KEY ("credentialsId", "projectId") |
|
|
| shared_credentials_2_createdAt_not_null | n | NOT NULL "createdAt" |
|
|
| shared_credentials_2_credentialsId_not_null | n | NOT NULL "credentialsId" |
|
|
| shared_credentials_2_projectId_not_null | n | NOT NULL "projectId" |
|
|
| shared_credentials_2_role_not_null | n | NOT NULL role |
|
|
| shared_credentials_2_updatedAt_not_null | n | NOT NULL "updatedAt" |
|
|
|
|
## Indexes
|
|
|
|
| Name | Definition |
|
|
| ---- | ---------- |
|
|
| PK_8ef3a59796a228913f251779cff | CREATE UNIQUE INDEX "PK_8ef3a59796a228913f251779cff" ON public.shared_credentials USING btree ("credentialsId", "projectId") |
|
|
|
|
## Relations
|
|
|
|
```mermaid
|
|
erDiagram
|
|
|
|
"public.shared_credentials" }o--|| "public.credentials_entity" : "FOREIGN KEY (#quot;credentialsId#quot;) REFERENCES credentials_entity(id) ON DELETE CASCADE"
|
|
"public.shared_credentials" }o--|| "public.project" : "FOREIGN KEY (#quot;projectId#quot;) REFERENCES project(id) ON DELETE CASCADE"
|
|
|
|
"public.shared_credentials" {
|
|
timestamp_3__with_time_zone createdAt
|
|
varchar_36_ credentialsId FK
|
|
varchar_36_ projectId FK
|
|
text role
|
|
timestamp_3__with_time_zone updatedAt
|
|
}
|
|
"public.credentials_entity" {
|
|
timestamp_3__with_time_zone createdAt
|
|
text data
|
|
varchar_36_ id
|
|
boolean isGlobal
|
|
boolean isManaged
|
|
boolean isResolvable
|
|
varchar_128_ name
|
|
boolean resolvableAllowFallback
|
|
varchar_16_ resolverId FK
|
|
varchar_128_ type
|
|
timestamp_3__with_time_zone updatedAt
|
|
varchar_16_ usageScope
|
|
}
|
|
"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)
|