-
Notifications
You must be signed in to change notification settings - Fork 0
/
erd.dot
61 lines (61 loc) · 4.55 KB
/
erd.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
digraph CapstoneProject {
rankdir = "LR";
ranksep = "0.5";
nodesep = "0.4";
pad = "0.4,0.4";
margin = "0,0";
concentrate = "true";
labelloc = "t";
fontsize = "13";
fontname = "Arial Bold";
node[ shape = "Mrecord" , fontsize = "10" , fontname = "Arial" , margin = "0.07,0.05" , penwidth = "1.0"];
edge[ fontname = "Arial" , fontsize = "7" , dir = "both" , arrowsize = "0.9" , penwidth = "1.0" , labelangle = "32" , labeldistance = "1.8"];
rankdir = "TB";
label = "CapstoneProject domain model\n\n";
m_Book [label = <<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="134">
<tr><td align="center" valign="bottom" width="130"><font face="Arial Bold" point-size="11">Book</font></td></tr>
</table>
|
<table border="0" align="left" cellspacing="2" cellpadding="0" width="134">
<tr><td align="left" width="130" port="author">author <font face="Arial Italic" color="grey60">string ∗</font></td></tr>
<tr><td align="left" width="130" port="availability">availability <font face="Arial Italic" color="grey60">integer</font></td></tr>
<tr><td align="left" width="130" port="dewey_id">dewey_id <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="publisher">publisher <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="quantity">quantity <font face="Arial Italic" color="grey60">integer ∗</font></td></tr>
<tr><td align="left" width="130" port="title">title <font face="Arial Italic" color="grey60">string ∗</font></td></tr>
<tr><td align="left" width="130" port="year">year <font face="Arial Italic" color="grey60">integer ∗</font></td></tr>
</table>
>];
m_Borrowing [label = <<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="134">
<tr><td align="center" valign="bottom" width="130"><font face="Arial Bold" point-size="11">Borrowing</font></td></tr>
</table>
|
<table border="0" align="left" cellspacing="2" cellpadding="0" width="134">
<tr><td align="left" width="130" port="due_date">due_date <font face="Arial Italic" color="grey60">datetime</font></td></tr>
<tr><td align="left" width="130" port="request">request <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="time_extend">time_extend <font face="Arial Italic" color="grey60">integer</font></td></tr>
<tr><td align="left" width="130" port="times_extended">times_extended <font face="Arial Italic" color="grey60">integer</font></td></tr>
<tr><td align="left" width="130" port="verified">verified <font face="Arial Italic" color="grey60">boolean</font></td></tr>
</table>
>];
m_User [label = <<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="134">
<tr><td align="center" valign="bottom" width="130"><font face="Arial Bold" point-size="11">User</font></td></tr>
</table>
|
<table border="0" align="left" cellspacing="2" cellpadding="0" width="134">
<tr><td align="left" width="130" port="activated">activated <font face="Arial Italic" color="grey60">boolean</font></td></tr>
<tr><td align="left" width="130" port="activated_at">activated_at <font face="Arial Italic" color="grey60">datetime</font></td></tr>
<tr><td align="left" width="130" port="activation_digest">activation_digest <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="admin">admin <font face="Arial Italic" color="grey60">boolean</font></td></tr>
<tr><td align="left" width="130" port="email">email <font face="Arial Italic" color="grey60">string ∗ U</font></td></tr>
<tr><td align="left" width="130" port="name">name <font face="Arial Italic" color="grey60">string ∗</font></td></tr>
<tr><td align="left" width="130" port="number_borrowed_books">number_borrowed_books <font face="Arial Italic" color="grey60">integer ∗</font></td></tr>
<tr><td align="left" width="130" port="password_digest">password_digest <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="remember_digest">remember_digest <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="reset_digest">reset_digest <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="reset_sent_at">reset_sent_at <font face="Arial Italic" color="grey60">datetime</font></td></tr>
</table>
>];
m_Book -> m_Borrowing [arrowhead = "normal", arrowtail = "none", weight = "2"];
m_User -> m_Borrowing [arrowhead = "normal", arrowtail = "none", weight = "2"];
}