Update erd-dsl.md

This commit is contained in:
Glenn Y. Rolland 2020-05-17 21:34:14 +02:00 committed by GitHub
parent 7096a014fb
commit f46f08de6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: []
``` ```