forked from NZOI/nztrain
-
Notifications
You must be signed in to change notification settings - Fork 1
/
g.dot
21 lines (21 loc) · 2 KB
/
g.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
digraph models_diagram {
graph[overlap=false, splines=true]
"User" [shape=Mrecord, label="{User|email :string\lencrypted_password :string\lreset_password_token :string\lreset_password_sent_at :datetime\lremember_created_at :datetime\lcurrent_sign_in_at :datetime\llast_sign_in_at :datetime\lcurrent_sign_in_ip :string\llast_sign_in_ip :string\lis_admin :boolean\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Group" [shape=Mrecord, label="{Group|name :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"ContestRelation" [shape=Mrecord, label="{ContestRelation|started_at :datetime\lcreated_at :datetime\lupdated_at :datetime\l}"]
"TestCase" [shape=Mrecord, label="{TestCase|input :text\loutput :text\lpoints :integer\ldescription :string\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Contest" [shape=Mrecord, label="{Contest|title :string\lstart_time :datetime\lend_time :datetime\lduration :decimal\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Submission" [shape=Mrecord, label="{Submission|source :text\llanguage :string\lscore :integer\lcreated_at :datetime\lupdated_at :datetime\l}"]
"Problem" [shape=Mrecord, label="{Problem|title :string\lstatement :text\linput :string\loutput :string\lmemory_limit :integer\ltime_limit :decimal\lcreated_at :datetime\lupdated_at :datetime\l}"]
"User" -> "Problem" [arrowtail=crow, arrowhead=dot, dir=both]
"User" -> "Submission" [arrowtail=crow, arrowhead=dot, dir=both]
"User" -> "ContestRelation" [arrowtail=crow, arrowhead=dot, dir=both]
"User" -> "Contest" [arrowtail=crow, arrowhead=crow, dir=both]
"Group" -> "User" [arrowtail=crow, arrowhead=crow, dir=both]
"Group" -> "Problem" [arrowtail=crow, arrowhead=crow, dir=both]
"Group" -> "Contest" [arrowtail=crow, arrowhead=crow, dir=both]
"Contest" -> "Problem" [arrowtail=crow, arrowhead=crow, dir=both]
"Contest" -> "ContestRelation" [arrowtail=crow, arrowhead=dot, dir=both]
"Problem" -> "TestCase" [arrowtail=crow, arrowhead=dot, dir=both]
"Problem" -> "Submission" [arrowtail=crow, arrowhead=dot, dir=both]
}