-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMER.xml
149 lines (149 loc) · 11.7 KB
/
MER.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2024-06-24T03:50:30.425Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0" etag="ncfCtYSJq9oBgDeri1Dz" version="24.6.2">
<diagram name="MER" id="Ywk2IbH-ivmm798HwV4h">
<mxGraphModel dx="2026" dy="1145" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="YXjMSwPH0PeH2SJtIZfc-1" value="User" style="swimlane;horizontal=0;" vertex="1" parent="1">
<mxGeometry x="60" y="60" width="160" height="310" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-2" value="id: Integer (PK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="30" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-3" value="name: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="60" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-4" value="username: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="90" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-5" value="email: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="120" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-6" value="hashed_password: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="150" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-7" value="role: Enum" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="180" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-8" value="products_sold: 1:n Product" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="210" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-9" value="purchases: 1:n Sale" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-1">
<mxGeometry x="40" y="240" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-10" value="Category" style="swimlane;horizontal=0;" vertex="1" parent="1">
<mxGeometry x="345" y="910" width="160" height="140" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-11" value="id: Integer (PK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-10">
<mxGeometry x="40" y="30" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-12" value="description: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-10">
<mxGeometry x="40" y="60" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-13" value="products: 1:n Product" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-10">
<mxGeometry x="40" y="90" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-14" value="Product" style="swimlane;horizontal=0;" vertex="1" parent="1">
<mxGeometry x="50" y="610" width="200" height="360" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-15" value="id: Integer (PK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="30" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-16" value="description: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="60" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-17" value="price: Float" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="90" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-18" value="quantity: Integer" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="120" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-19" value="low_stock_alert: Integer" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="150" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-20" value="category_id: Integer (FK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="180" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-21" value="image_url: String" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="210" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-22" value="seller_id: Integer (FK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="240" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-23" value="category: n:1 Category" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="270" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-24" value="seller: n:1 User" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry x="40" y="300" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-25" value="Sale" style="swimlane;horizontal=0;" vertex="1" parent="1">
<mxGeometry x="390" y="310" width="160" height="180" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-26" value="id: Integer (PK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-25">
<mxGeometry x="35" y="30" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-27" value="user_id: Integer (FK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-25">
<mxGeometry x="35" y="60" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-28" value="timestamp: DateTime" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-25">
<mxGeometry x="35" y="90" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-29" value="note: Text" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-25">
<mxGeometry x="35" y="120" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-30" value="items: 1:n SaleItem" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-25">
<mxGeometry x="35" y="150" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-31" value="SaleItem" style="swimlane;horizontal=0;" vertex="1" parent="1">
<mxGeometry x="540" y="690" width="200" height="180" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-32" value="id: Integer (PK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-31">
<mxGeometry x="40" y="30" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-33" value="sale_id: Integer (FK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-31">
<mxGeometry x="40" y="60" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-34" value="product_id: Integer (FK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-31">
<mxGeometry x="40" y="90" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-35" value="quantity: Integer" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-31">
<mxGeometry x="40" y="120" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-36" value="CurrencyRate" style="swimlane;horizontal=0;" vertex="1" parent="1">
<mxGeometry x="600" y="60" width="200" height="220" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-37" value="id: Integer (PK)" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-36">
<mxGeometry x="40" y="30" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-38" value="rate: Float" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-36">
<mxGeometry x="40" y="60" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-39" value="timestamp: DateTime" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-36">
<mxGeometry x="40" y="90" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-40" value="from_currency: Enum" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-36">
<mxGeometry x="40" y="120" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-41" value="to_currency: Enum" style="text;strokeColor=none;fillColor=none;" vertex="1" parent="YXjMSwPH0PeH2SJtIZfc-36">
<mxGeometry x="40" y="150" width="190" height="30" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-42" edge="1" parent="1" source="YXjMSwPH0PeH2SJtIZfc-1" target="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-43" edge="1" parent="1" source="YXjMSwPH0PeH2SJtIZfc-10" target="YXjMSwPH0PeH2SJtIZfc-14">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-44" edge="1" parent="1" source="YXjMSwPH0PeH2SJtIZfc-1" target="YXjMSwPH0PeH2SJtIZfc-25">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-45" edge="1" parent="1" source="YXjMSwPH0PeH2SJtIZfc-25" target="YXjMSwPH0PeH2SJtIZfc-31">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="YXjMSwPH0PeH2SJtIZfc-46" edge="1" parent="1" source="YXjMSwPH0PeH2SJtIZfc-14" target="YXjMSwPH0PeH2SJtIZfc-31">
<mxGeometry relative="1" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>