Update erd-dsl.md
This commit is contained in:
parent
7096a014fb
commit
f46f08de6c
1 changed files with 37 additions and 18 deletions
|
@ -11,27 +11,46 @@
|
||||||
```
|
```
|
||||||
entities:
|
entities:
|
||||||
user:
|
user:
|
||||||
id: UUID
|
- name: id
|
||||||
password_hash: VARCHAR(250)
|
type: uuid
|
||||||
role: VARCHAR(10)
|
key: true
|
||||||
created_at: DATETIME
|
- name: password_hash
|
||||||
updated_at: DATETIME
|
type: varchar
|
||||||
|
limit: 250
|
||||||
|
- name: role
|
||||||
|
type: varchar
|
||||||
|
limit: 10
|
||||||
|
- name: created_at
|
||||||
|
type: datetime
|
||||||
|
- name: updated_at
|
||||||
|
type: datetime
|
||||||
url:
|
url:
|
||||||
id: VARCHAR(250)
|
- name: id
|
||||||
custom_id: VARCHAR(250)
|
type: varchar
|
||||||
source_url: TEXT
|
limit: 250
|
||||||
short_url: VARCHAR(250)
|
key: true
|
||||||
created_at: DATETIME
|
- name: custom_id
|
||||||
updated_at: DATETIME
|
type: varchar
|
||||||
expires_at: DATETIME
|
limit: 250
|
||||||
|
- name: source_url
|
||||||
|
type: text
|
||||||
|
- name: short_url
|
||||||
|
type: varchar
|
||||||
|
limit: 250
|
||||||
|
- name: created_at
|
||||||
|
type: datetime
|
||||||
|
- name: updated_at
|
||||||
|
type: datetime
|
||||||
|
- name: expires_at
|
||||||
|
type: datetime
|
||||||
|
|
||||||
relationships:
|
relationships:
|
||||||
manages_urls:
|
manages_urls:
|
||||||
links:
|
links:
|
||||||
- user:
|
- name: user:
|
||||||
eq: 1
|
equals: 1
|
||||||
- url:
|
- name: url:
|
||||||
gte: 0
|
min: 0
|
||||||
lte: n
|
max: n
|
||||||
properties: {}
|
properties: []
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue