-
Notifications
You must be signed in to change notification settings - Fork 168
/
dot_test_viewpoint_0.dot.golden
21 lines (19 loc) · 1.33 KB
/
dot_test_viewpoint_0.dot.golden
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
digraph "table a b" {
// Config
graph [rankdir=TB, layout=dot, fontname="Arial"];
node [shape=record, fontsize=14, margin=0.6, fontname="Arial"];
edge [fontsize=10, labelfloat=false, splines=none, fontname="Arial"];
// Tables
"a" [shape=none, label=<<table border="0" cellborder="1" cellspacing="0" cellpadding="6">
<tr><td bgcolor="#EFEFEF"><font face="Arial Bold" point-size="18">a</font> <font color="#666666">[]</font></td></tr>
<tr><td port="a" align="left">a <font color="#666666">[INTEGER]</font></td></tr>
<tr><td port="a2" align="left">a2 <font color="#666666">[TEXT]</font></td></tr>
</table>>];
"b" [shape=none, label=<<table border="0" cellborder="1" cellspacing="0" cellpadding="6">
<tr><td bgcolor="#EFEFEF"><font face="Arial Bold" point-size="18">b</font> <font color="#666666">[]</font></td></tr>
<tr><td port="b" align="left">b <font color="#666666">[INTEGER]</font></td></tr>
<tr><td port="b2" align="left">b2 <font color="#666666">[TEXT]</font></td></tr>
</table>>];
// Relations
"b":"b" -> "a":"a" [dir=back, arrowtail=crow, taillabel=<<table cellpadding="5" border="0" cellborder="0"><tr><td>FOREIGN KEY (b) REFERENCES a(a)</td></tr></table>>];
}