rakenne/doc/erd-dsl.md

34 lines
576 B
Markdown
Raw Normal View History

2020-05-17 19:10:41 +00:00
# Entity-Relationship Diagrams - Domain Specific Language
## Goals
## Example
```
2020-05-17 19:18:29 +00:00
entities:
user:
id: UUID
password_hash: VARCHAR(250)
role: VARCHAR(10)
created_at: DATETIME
updated_at: DATETIME
url:
id: VARCHAR(250)
custom_id: VARCHAR(250)
source_url: TEXT
short_url: VARCHAR(250)
created_at: DATETIME
2020-05-17 19:12:29 +00:00
updated_at: DATETIME
expires_at: DATETIME
2020-05-17 19:10:41 +00:00
2020-05-17 19:18:29 +00:00
relationships:
manages_urls:
links:
2020-05-17 19:20:09 +00:00
- user:
eq: 1
- url
gte: 0
lte: n
2020-05-17 19:18:29 +00:00
properties: {}
2020-05-17 19:10:41 +00:00
```