Update erd-dsl.md

This commit is contained in:
Glenn Y. Rolland 2020-05-18 11:24:02 +02:00 committed by GitHub
parent 7c7a9fc5d6
commit 706bbd09ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,42 +11,47 @@
```yaml ```yaml
entities: entities:
user: user:
- name: id name: "Utilisateur"
type: integer properties:
key: true - name: id
options: ['autoincrement'] type: integer
- name: password_hash key: true
type: varchar options: ['autoincrement']
limit: 250 - name: password_hash
- name: role type: varchar
type: varchar limit: 250
limit: 10 - name: role
- name: created_at type: varchar
type: datetime limit: 10
- name: updated_at - name: created_at
type: datetime type: datetime
- name: updated_at
type: datetime
url: url:
- name: id name: "Adresses"
type: varchar properties:
limit: 250 - name: id
key: true type: varchar
- name: custom_id limit: 250
type: varchar key: true
limit: 250 - name: custom_id
- name: source_url type: varchar
type: text limit: 250
- name: short_url - name: source_url
type: varchar type: text
limit: 250 - name: short_url
- name: created_at type: varchar
type: datetime limit: 250
- name: updated_at - name: created_at
type: datetime type: datetime
- name: expires_at - name: updated_at
type: datetime type: datetime
- name: expires_at
type: datetime
relationships: relationships:
manages_urls: manages_urls:
name: "GereAdresse"
links: links:
- name: user: - name: user:
equals: 1 equals: 1