mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-27 19:15:01 +02:00
56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
# scope
|
|
|
|
## Description
|
|
|
|
<details>
|
|
<summary><strong>Table Definition</strong></summary>
|
|
|
|
```sql
|
|
CREATE TABLE "scope" ("slug" varchar(128) PRIMARY KEY NOT NULL, "displayName" text, "description" text)
|
|
```
|
|
|
|
</details>
|
|
|
|
## Columns
|
|
|
|
| Name | Type | Default | Nullable | Children | Parents | Comment |
|
|
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
|
|
| description | TEXT | | true | | | |
|
|
| displayName | TEXT | | true | | | |
|
|
| slug | varchar(128) | | false | [role_scope](role_scope.md) | | |
|
|
|
|
## Constraints
|
|
|
|
| Name | Type | Definition |
|
|
| ---- | ---- | ---------- |
|
|
| slug | PRIMARY KEY | PRIMARY KEY (slug) |
|
|
| sqlite_autoindex_scope_1 | PRIMARY KEY | PRIMARY KEY (slug) |
|
|
|
|
## Indexes
|
|
|
|
| Name | Definition |
|
|
| ---- | ---------- |
|
|
| sqlite_autoindex_scope_1 | PRIMARY KEY (slug) |
|
|
|
|
## Relations
|
|
|
|
```mermaid
|
|
erDiagram
|
|
|
|
"role_scope" |o--|| "scope" : "FOREIGN KEY (scopeSlug) REFERENCES scope (slug) ON UPDATE CASCADE ON DELETE CASCADE MATCH NONE"
|
|
|
|
"scope" {
|
|
TEXT description
|
|
TEXT displayName
|
|
varchar_128_ slug PK
|
|
}
|
|
"role_scope" {
|
|
VARCHAR_128_ roleSlug PK
|
|
VARCHAR_128_ scopeSlug PK
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
> Generated by [tbls](https://github.com/k1LoW/tbls)
|