-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_music_ecto_book.uml
48 lines (36 loc) · 1012 Bytes
/
data_music_ecto_book.uml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@startuml
'-----------------------------------------------------------------------
' Style
!include default_style.iuml
skinparam backgroundColor transparent
hide methods
'-----------------------------------------------------------------------
' title E/R model for data model in the Ecto Book
entity Albums {
id : uuid {id}
title : string
released : date
}
entity Artists {
id : uuid {id}
name : string {unique}
}
entity Tracks {
id : uuid {id}
title : string
}
entity Genres {
id : uuid {id}
name : string {unique}
}
Albums "1" -- "*\r{ordered}" Tracks: contained <
note bottom on link: N:1\nordered
Albums "*" -- "*" Genres: covered <
note bottom on link: N:N
Albums "*" -left- "1" Artists: released <
note top on link: N:1
Artists "*" -- "*" Tracks: performed_by <
note bottom on link: Derived from\nreleased and\ncontained\n(through)
Artists "*" -- "*" Tracks: featuring <
note bottom on link: Just a\nparticipation
@enduml