Attempt at mermaid for model description
This commit is contained in:
50
model/model.md
Normal file
50
model/model.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# PairGoth model
|
||||
|
||||
## Entity Relationship Diagram
|
||||
|
||||
```mermaid
|
||||
erDiagram
|
||||
|
||||
%% entities
|
||||
|
||||
Tournament {
|
||||
name
|
||||
shortName
|
||||
startDate
|
||||
endDate
|
||||
location
|
||||
isOnline
|
||||
}
|
||||
|
||||
Round {
|
||||
number
|
||||
}
|
||||
|
||||
Game {
|
||||
black
|
||||
white
|
||||
result
|
||||
}
|
||||
|
||||
Player {
|
||||
lastname
|
||||
firstname
|
||||
country
|
||||
club
|
||||
}
|
||||
|
||||
Ladder {
|
||||
name
|
||||
lastUpdated
|
||||
}
|
||||
|
||||
%% relationships
|
||||
|
||||
Tournament ||--|{ Round
|
||||
Round ||--|{ Game
|
||||
Game |}--|| Player : black
|
||||
Game |}--|| Player : white
|
||||
Player }o--o{ Ladder : rating
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user