-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.png
152 lines (152 loc) · 14.7 KB
/
models.png
File metadata and controls
152 lines (152 loc) · 14.7 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.36.0 (20140111.2315)
-->
<!-- Title: models_diagram Pages: 1 -->
<svg width="422pt" height="922pt"
viewBox="0.00 0.00 422.00 922.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 918)">
<title>models_diagram</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-918 418,-918 418,4 -4,4"/>
<!-- Asset -->
<g id="node1" class="node"><title>Asset</title>
<path fill="none" stroke="black" d="M11.4946,-1C11.4946,-1 120.505,-1 120.505,-1 126.505,-1 132.505,-7 132.505,-13 132.505,-13 132.505,-187 132.505,-187 132.505,-193 126.505,-199 120.505,-199 120.505,-199 11.4946,-199 11.4946,-199 5.49463,-199 -0.505371,-193 -0.505371,-187 -0.505371,-187 -0.505371,-13 -0.505371,-13 -0.505371,-7 5.49463,-1 11.4946,-1"/>
<text text-anchor="middle" x="66" y="-183.8" font-family="Times,serif" font-size="14.00">Asset</text>
<polyline fill="none" stroke="black" points="-0.505371,-177 132.505,-177 "/>
<text text-anchor="start" x="7.49463" y="-161.8" font-family="Times,serif" font-size="14.00">id :integer</text>
<text text-anchor="start" x="7.49463" y="-147.8" font-family="Times,serif" font-size="14.00">name :string</text>
<text text-anchor="start" x="7.49463" y="-133.8" font-family="Times,serif" font-size="14.00">folder_id :integer</text>
<text text-anchor="start" x="7.49463" y="-119.8" font-family="Times,serif" font-size="14.00">user_id :integer</text>
<text text-anchor="start" x="7.49463" y="-105.8" font-family="Times,serif" font-size="14.00">asset :string</text>
<text text-anchor="start" x="7.49463" y="-91.8" font-family="Times,serif" font-size="14.00">key :string</text>
<text text-anchor="start" x="7.49463" y="-77.8" font-family="Times,serif" font-size="14.00">size :float</text>
<text text-anchor="start" x="7.49463" y="-63.8" font-family="Times,serif" font-size="14.00">content_type :string</text>
<text text-anchor="start" x="7.49463" y="-49.8" font-family="Times,serif" font-size="14.00">etag :string</text>
<text text-anchor="start" x="7.49463" y="-35.8" font-family="Times,serif" font-size="14.00">processed :boolean</text>
<text text-anchor="start" x="7.49463" y="-21.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="7.49463" y="-7.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- Email -->
<g id="node2" class="node"><title>Email</title>
<path fill="none" stroke="black" d="M287.767,-50C287.767,-50 402.233,-50 402.233,-50 408.233,-50 414.233,-56 414.233,-62 414.233,-62 414.233,-138 414.233,-138 414.233,-144 408.233,-150 402.233,-150 402.233,-150 287.767,-150 287.767,-150 281.767,-150 275.767,-144 275.767,-138 275.767,-138 275.767,-62 275.767,-62 275.767,-56 281.767,-50 287.767,-50"/>
<text text-anchor="middle" x="345" y="-134.8" font-family="Times,serif" font-size="14.00">Email</text>
<polyline fill="none" stroke="black" points="275.767,-128 414.233,-128 "/>
<text text-anchor="start" x="283.767" y="-112.8" font-family="Times,serif" font-size="14.00">id :integer</text>
<text text-anchor="start" x="283.767" y="-98.8" font-family="Times,serif" font-size="14.00">body :string</text>
<text text-anchor="start" x="283.767" y="-84.8" font-family="Times,serif" font-size="14.00">share_link_id :integer</text>
<text text-anchor="start" x="283.767" y="-70.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="283.767" y="-56.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- Folder -->
<g id="node3" class="node"><title>Folder</title>
<path fill="none" stroke="black" d="M76.4946,-239C76.4946,-239 185.505,-239 185.505,-239 191.505,-239 197.505,-245 197.505,-251 197.505,-251 197.505,-383 197.505,-383 197.505,-389 191.505,-395 185.505,-395 185.505,-395 76.4946,-395 76.4946,-395 70.4946,-395 64.4946,-389 64.4946,-383 64.4946,-383 64.4946,-251 64.4946,-251 64.4946,-245 70.4946,-239 76.4946,-239"/>
<text text-anchor="middle" x="131" y="-379.8" font-family="Times,serif" font-size="14.00">Folder</text>
<polyline fill="none" stroke="black" points="64.4946,-373 197.505,-373 "/>
<text text-anchor="start" x="72.4946" y="-357.8" font-family="Times,serif" font-size="14.00">id :integer</text>
<text text-anchor="start" x="72.4946" y="-343.8" font-family="Times,serif" font-size="14.00">name :string</text>
<text text-anchor="start" x="72.4946" y="-329.8" font-family="Times,serif" font-size="14.00">user_id :integer</text>
<text text-anchor="start" x="72.4946" y="-315.8" font-family="Times,serif" font-size="14.00">parent_id :integer</text>
<text text-anchor="start" x="72.4946" y="-301.8" font-family="Times,serif" font-size="14.00">lft :integer</text>
<text text-anchor="start" x="72.4946" y="-287.8" font-family="Times,serif" font-size="14.00">rgt :integer</text>
<text text-anchor="start" x="72.4946" y="-273.8" font-family="Times,serif" font-size="14.00">depth :integer</text>
<text text-anchor="start" x="72.4946" y="-259.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="72.4946" y="-245.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- Folder->Asset -->
<g id="edge2" class="edge"><title>Folder->Asset</title>
<path fill="none" stroke="#9d1332" d="M105.32,-231.059C103.147,-223.872 100.932,-216.545 98.7157,-209.213"/>
<ellipse fill="none" stroke="#9d1332" cx="106.56" cy="-235.158" rx="4.00001" ry="4.00001"/>
<polygon fill="#9d1332" stroke="#9d1332" points="98.5901,-208.798 100.004,-197.923 97.1431,-204.012 95.6961,-199.226 95.6961,-199.226 95.6961,-199.226 97.1431,-204.012 91.3887,-200.528 98.5901,-208.798 98.5901,-208.798"/>
</g>
<!-- Folder->Folder -->
<g id="edge1" class="edge"><title>Folder->Folder</title>
<path fill="none" stroke="#5fd8c5" d="M205.434,-330.981C211.345,-327.92 215,-323.26 215,-317 215,-311.285 211.953,-306.903 206.924,-303.854"/>
<ellipse fill="none" stroke="#5fd8c5" cx="201.306" cy="-332.477" rx="4.00001" ry="4.00001"/>
<polygon fill="#5fd8c5" stroke="#5fd8c5" points="206.849,-303.825 199.194,-295.973 202.197,-301.992 197.545,-300.16 197.545,-300.16 197.545,-300.16 202.197,-301.992 195.896,-304.347 206.849,-303.825 206.849,-303.825"/>
<text text-anchor="middle" x="237.935" y="-312.8" font-family="Times,serif" font-size="14.00">children</text>
</g>
<!-- Plan -->
<g id="node4" class="node"><title>Plan</title>
<path fill="none" stroke="black" d="M39.9395,-757C39.9395,-757 222.061,-757 222.061,-757 228.061,-757 234.061,-763 234.061,-769 234.061,-769 234.061,-901 234.061,-901 234.061,-907 228.061,-913 222.061,-913 222.061,-913 39.9395,-913 39.9395,-913 33.9395,-913 27.9395,-907 27.9395,-901 27.9395,-901 27.9395,-769 27.9395,-769 27.9395,-763 33.9395,-757 39.9395,-757"/>
<text text-anchor="middle" x="131" y="-897.8" font-family="Times,serif" font-size="14.00">Plan</text>
<polyline fill="none" stroke="black" points="27.9395,-891 234.061,-891 "/>
<text text-anchor="start" x="35.9395" y="-875.8" font-family="Times,serif" font-size="14.00">id :integer</text>
<text text-anchor="start" x="35.9395" y="-861.8" font-family="Times,serif" font-size="14.00">name :string</text>
<text text-anchor="start" x="35.9395" y="-847.8" font-family="Times,serif" font-size="14.00">price :float</text>
<text text-anchor="start" x="35.9395" y="-833.8" font-family="Times,serif" font-size="14.00">max_storage_space :integer</text>
<text text-anchor="start" x="35.9395" y="-819.8" font-family="Times,serif" font-size="14.00">max_bandwidth_up :integer</text>
<text text-anchor="start" x="35.9395" y="-805.8" font-family="Times,serif" font-size="14.00">max_bandwidth_down :integer</text>
<text text-anchor="start" x="35.9395" y="-791.8" font-family="Times,serif" font-size="14.00">daily_shared_links_quota :integer</text>
<text text-anchor="start" x="35.9395" y="-777.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="35.9395" y="-763.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- User -->
<g id="node6" class="node"><title>User</title>
<path fill="none" stroke="black" d="M40.7222,-435C40.7222,-435 221.278,-435 221.278,-435 227.278,-435 233.278,-441 233.278,-447 233.278,-447 233.278,-705 233.278,-705 233.278,-711 227.278,-717 221.278,-717 221.278,-717 40.7222,-717 40.7222,-717 34.7222,-717 28.7222,-711 28.7222,-705 28.7222,-705 28.7222,-447 28.7222,-447 28.7222,-441 34.7222,-435 40.7222,-435"/>
<text text-anchor="middle" x="131" y="-701.8" font-family="Times,serif" font-size="14.00">User</text>
<polyline fill="none" stroke="black" points="28.7222,-695 233.278,-695 "/>
<text text-anchor="start" x="36.7222" y="-679.8" font-family="Times,serif" font-size="14.00">id :integer</text>
<text text-anchor="start" x="36.7222" y="-665.8" font-family="Times,serif" font-size="14.00">email :string</text>
<text text-anchor="start" x="36.7222" y="-651.8" font-family="Times,serif" font-size="14.00">encrypted_password :string</text>
<text text-anchor="start" x="36.7222" y="-637.8" font-family="Times,serif" font-size="14.00">reset_password_token :string</text>
<text text-anchor="start" x="36.7222" y="-623.8" font-family="Times,serif" font-size="14.00">reset_password_sent_at :datetime</text>
<text text-anchor="start" x="36.7222" y="-609.8" font-family="Times,serif" font-size="14.00">remember_created_at :datetime</text>
<text text-anchor="start" x="36.7222" y="-595.8" font-family="Times,serif" font-size="14.00">sign_in_count :integer</text>
<text text-anchor="start" x="36.7222" y="-581.8" font-family="Times,serif" font-size="14.00">current_sign_in_at :datetime</text>
<text text-anchor="start" x="36.7222" y="-567.8" font-family="Times,serif" font-size="14.00">last_sign_in_at :datetime</text>
<text text-anchor="start" x="36.7222" y="-553.8" font-family="Times,serif" font-size="14.00">current_sign_in_ip :string</text>
<text text-anchor="start" x="36.7222" y="-539.8" font-family="Times,serif" font-size="14.00">last_sign_in_ip :string</text>
<text text-anchor="start" x="36.7222" y="-525.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="36.7222" y="-511.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="36.7222" y="-497.8" font-family="Times,serif" font-size="14.00">username :string</text>
<text text-anchor="start" x="36.7222" y="-483.8" font-family="Times,serif" font-size="14.00">plan_id :integer</text>
<text text-anchor="start" x="36.7222" y="-469.8" font-family="Times,serif" font-size="14.00">admin :boolean</text>
<text text-anchor="start" x="36.7222" y="-455.8" font-family="Times,serif" font-size="14.00">avatar :string</text>
<text text-anchor="start" x="36.7222" y="-441.8" font-family="Times,serif" font-size="14.00">country_code :string</text>
</g>
<!-- Plan->User -->
<g id="edge3" class="edge"><title>Plan->User</title>
<path fill="none" stroke="#133283" d="M131,-748.84C131,-742.016 131,-735.007 131,-727.904"/>
<ellipse fill="none" stroke="#133283" cx="131" cy="-752.892" rx="4" ry="4"/>
<polygon fill="#133283" stroke="#133283" points="131,-727.44 135.5,-717.44 131,-722.44 131,-717.44 131,-717.44 131,-717.44 131,-722.44 126.5,-717.44 131,-727.44 131,-727.44"/>
</g>
<!-- ShareLink -->
<g id="node5" class="node"><title>ShareLink</title>
<path fill="none" stroke="black" d="M290.495,-253C290.495,-253 399.505,-253 399.505,-253 405.505,-253 411.505,-259 411.505,-265 411.505,-265 411.505,-369 411.505,-369 411.505,-375 405.505,-381 399.505,-381 399.505,-381 290.495,-381 290.495,-381 284.495,-381 278.495,-375 278.495,-369 278.495,-369 278.495,-265 278.495,-265 278.495,-259 284.495,-253 290.495,-253"/>
<text text-anchor="middle" x="345" y="-365.8" font-family="Times,serif" font-size="14.00">ShareLink</text>
<polyline fill="none" stroke="black" points="278.495,-359 411.505,-359 "/>
<text text-anchor="start" x="286.495" y="-343.8" font-family="Times,serif" font-size="14.00">id :integer</text>
<text text-anchor="start" x="286.495" y="-329.8" font-family="Times,serif" font-size="14.00">token :string</text>
<text text-anchor="start" x="286.495" y="-315.8" font-family="Times,serif" font-size="14.00">expires_at :datetime</text>
<text text-anchor="start" x="286.495" y="-301.8" font-family="Times,serif" font-size="14.00">asset_id :integer</text>
<text text-anchor="start" x="286.495" y="-287.8" font-family="Times,serif" font-size="14.00">sender_id :integer</text>
<text text-anchor="start" x="286.495" y="-273.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="286.495" y="-259.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- ShareLink->Email -->
<g id="edge4" class="edge"><title>ShareLink->Email</title>
<path fill="none" stroke="#57d7c0" d="M345,-244.738C345,-217.322 345,-186.344 345,-160.185"/>
<ellipse fill="none" stroke="#57d7c0" cx="345" cy="-248.946" rx="4" ry="4"/>
<polygon fill="#57d7c0" stroke="#57d7c0" points="345,-160.043 349.5,-150.043 345,-155.043 345,-150.043 345,-150.043 345,-150.043 345,-155.043 340.5,-150.043 345,-160.043 345,-160.043"/>
</g>
<!-- User->Asset -->
<g id="edge6" class="edge"><title>User->Asset</title>
<path fill="none" stroke="#0917f4" d="M62.8132,-426.685C59.7274,-416.438 57.0655,-406.15 55,-396 42.587,-335.002 44.4286,-265.481 49.7929,-209.254"/>
<ellipse fill="none" stroke="#0917f4" cx="64.0622" cy="-430.691" rx="4.00001" ry="4.00001"/>
<polygon fill="#0917f4" stroke="#0917f4" points="49.7958,-209.225 55.2724,-199.725 50.2953,-204.25 50.7949,-199.275 50.7949,-199.275 50.7949,-199.275 50.2953,-204.25 46.3174,-198.825 49.7958,-209.225 49.7958,-209.225"/>
</g>
<!-- User->Folder -->
<g id="edge5" class="edge"><title>User->Folder</title>
<path fill="none" stroke="#1f7ce4" d="M131,-426.568C131,-419.325 131,-412.169 131,-405.194"/>
<ellipse fill="none" stroke="#1f7ce4" cx="131" cy="-430.844" rx="4" ry="4"/>
<polygon fill="#1f7ce4" stroke="#1f7ce4" points="131,-405.117 135.5,-395.117 131,-400.117 131,-395.117 131,-395.117 131,-395.117 131,-400.117 126.5,-395.117 131,-405.117 131,-405.117"/>
</g>
<!-- User->ShareLink -->
<g id="edge7" class="edge"><title>User->ShareLink</title>
<path fill="none" stroke="#684608" d="M238.594,-445.787C254.877,-426.232 271.142,-406.698 285.88,-388.999"/>
<ellipse fill="none" stroke="#684608" cx="235.859" cy="-449.071" rx="4.00002" ry="4.00002"/>
<polygon fill="#684608" stroke="#684608" points="286.14,-388.687 295.997,-383.882 289.339,-384.845 292.539,-381.002 292.539,-381.002 292.539,-381.002 289.339,-384.845 289.081,-378.123 286.14,-388.687 286.14,-388.687"/>
</g>
</g>
</svg>