-
Notifications
You must be signed in to change notification settings - Fork 0
/
theschema.dot
24 lines (24 loc) · 2.31 KB
/
theschema.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
digraph models_diagram {
graph[overlap=false, splines=true]
"Audio" [shape=Mrecord, label="{Audio|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lgenre :string\l}"]
"Book" [shape=Mrecord, label="{Book|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lauthor :string\l}"]
"BookComment" [shape=Mrecord, label="{BookComment|description :text\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Comment" [shape=Mrecord, label="{Comment|description :text\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Dictionary" [shape=Mrecord, label="{Dictionary|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lauthor :string\llf :string\llt :string\l}"]
"Media" [shape=Mrecord, label="{Media|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Mp3" [shape=Mrecord, label="{Mp3|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lgenre :string\l}"]
"Novel" [shape=Mrecord, label="{Novel|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lauthor :string\lsummary :string\l}"]
"PocketDictionary" [shape=Mrecord, label="{PocketDictionary|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lauthor :string\llf :string\llt :string\l}"]
"Unknown" [shape=Mrecord, label="{Unknown|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Video" [shape=Mrecord, label="{Video|name :string\lprice :integer\lcreated_at :datetime\lupdated_at :datetime\ltitle :string\lgenre :string\l}"]
"Media" -> "Audio" [label="", arrowhead="none", arrowtail="onormal"]
"Book" -> "BookComment" [arrowtail=crow, arrowhead=dot, dir=both]
"Media" -> "Book" [label="", arrowhead="none", arrowtail="onormal"]
"Book" -> "Dictionary" [label="", arrowhead="none", arrowtail="onormal"]
"Media" -> "Comment" [arrowtail=crow, arrowhead=dot, dir=both]
"Audio" -> "Mp3" [label="", arrowhead="none", arrowtail="onormal"]
"Book" -> "Novel" [label="", arrowhead="none", arrowtail="onormal"]
"Dictionary" -> "PocketDictionary" [label="", arrowhead="none", arrowtail="onormal"]
"Media" -> "Unknown" [label="", arrowhead="none", arrowtail="onormal"]
"Media" -> "Video" [label="", arrowhead="none", arrowtail="onormal"]
}