-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabase.drawio
More file actions
59 lines (59 loc) · 9.56 KB
/
Database.drawio
File metadata and controls
59 lines (59 loc) · 9.56 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
<mxfile host="app.diagrams.net" modified="2021-02-19T23:21:26.602Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Safari/537.36" etag="wCb5nF5TdfcHNgbkqg1q" version="14.4.2" type="github">
<diagram name="Page-1" id="a7904f86-f2b4-8e86-fa97-74104820619b">
<mxGraphModel dx="1185" dy="648" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="24794b860abc3c2d-1" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>User</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>UserID = INT(4)</u></p><p style="margin: 0px ; margin-left: 8px">Gender = VARCHAR(1)</p><p style="margin: 0px ; margin-left: 8px">Name = VARCHAR(40)</p><p style="margin: 0px ; margin-left: 8px">Nickname = VARCHAR(40)</p><p style="margin: 0px ; margin-left: 8px">Role = INT(4)</p><p style="margin: 0px ; margin-left: 8px">Team = INT(4)</p><p style="margin: 0px ; margin-left: 8px">Group = INT(4)</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" parent="1" vertex="1">
<mxGeometry x="280" y="447.5" width="160" height="135" as="geometry" />
</mxCell>
<mxCell id="FWuucCMc0svgSguMN8w9-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=-0.006;entryY=0.606;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.994;exitY=0.486;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="24794b860abc3c2d-16" target="24794b860abc3c2d-1" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="24794b860abc3c2d-16" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>UserTeam</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>TeamID = INT(4)</u><br>TeamName = VARCHAR(40)<br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" parent="1" vertex="1">
<mxGeometry x="60" y="485" width="170" height="70" as="geometry" />
</mxCell>
<mxCell id="FWuucCMc0svgSguMN8w9-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=-0.006;entryY=0.683;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="24794b860abc3c2d-17" target="24794b860abc3c2d-1" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="24794b860abc3c2d-17" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>UserGroup</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>GroupID = INT(4)</u><br>GroupName = VARCHAR(40)</p><p style="margin: 0px ; margin-left: 8px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" parent="1" vertex="1">
<mxGeometry x="60" y="575" width="170" height="70" as="geometry" />
</mxCell>
<mxCell id="FWuucCMc0svgSguMN8w9-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.75;entryDx=0;entryDy=0;exitX=0.005;exitY=0.276;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="24794b860abc3c2d-18" target="24794b860abc3c2d-29" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="24794b860abc3c2d-18" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>Item</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>ItemID = INT(8)</u><br>ItemName = VARCHAR(40)</p><p style="margin: 0px ; margin-left: 8px">ItemPrice = DECIMAL(6,2)</p><p style="margin: 0px ; margin-left: 8px">StartStock = INT(4)</p><p style="margin: 0px ; margin-left: 8px">SoldStock = INT(4)</p><p style="margin: 0px ; margin-left: 8px">CurrentStock = INT(4)</p><p style="margin: 0px ; margin-left: 8px">LostStock = INT(4)</p><p style="margin: 0px ; margin-left: 8px">Category = INT(4)<br><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" parent="1" vertex="1">
<mxGeometry x="680" y="445" width="170" height="145" as="geometry" />
</mxCell>
<mxCell id="FWuucCMc0svgSguMN8w9-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=-0.003;entryY=0.524;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="24794b860abc3c2d-22" target="24794b860abc3c2d-1" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="244" y="481" as="targetPoint" />
<Array as="points">
<mxPoint x="260" y="425" />
<mxPoint x="260" y="519" />
<mxPoint x="279" y="519" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="24794b860abc3c2d-22" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>UserRole</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>RoleID = INT(4)</u></p><p style="margin: 0px ; margin-left: 8px">RoleName = VARCHAR(40)</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" parent="1" vertex="1">
<mxGeometry x="60" y="400" width="170" height="70" as="geometry" />
</mxCell>
<mxCell id="FWuucCMc0svgSguMN8w9-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.002;entryY=0.567;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.995;exitY=0.278;exitDx=0;exitDy=0;exitPerimeter=0;" parent="1" source="24794b860abc3c2d-1" target="24794b860abc3c2d-29" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="24794b860abc3c2d-29" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>Transaction</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>TransID = INT(10)</u></p><p style="margin: 0px ; margin-left: 8px"><u>UserID = INT(4)</u></p><p style="margin: 0px ; margin-left: 8px">Item = INT(8)</p><p style="margin: 0px ; margin-left: 8px">Multiplier = INT(3)</p><p style="margin: 0px ; margin-left: 8px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" parent="1" vertex="1">
<mxGeometry x="490" y="470" width="140" height="90" as="geometry" />
</mxCell>
<mxCell id="mIbFw6u7k1w9V_V8A7LQ-2" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>Multipliers</b></p><hr><p style="margin: 0px ; margin-left: 8px"><u>MulID = INT(12)</u></p><p style="margin: 0px ; margin-left: 8px">MulValue = INT(3)</p><p style="margin: 0px ; margin-left: 8px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" vertex="1" parent="1">
<mxGeometry x="400" y="600" width="140" height="90" as="geometry" />
</mxCell>
<mxCell id="mIbFw6u7k1w9V_V8A7LQ-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.995;entryY=0.953;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="mIbFw6u7k1w9V_V8A7LQ-3" target="24794b860abc3c2d-18">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="mIbFw6u7k1w9V_V8A7LQ-3" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>Category</b></p><hr><p style="margin: 0px ; margin-left: 8px"><span><u>CategoryID = INT(4)</u></span></p><p style="margin: 0px ; margin-left: 8px"><span>CategoryName = VARCHAR(40)</span></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1" vertex="1" parent="1">
<mxGeometry x="850" y="645" width="190" height="70" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>