-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagram.plantuml
104 lines (87 loc) · 1.34 KB
/
diagram.plantuml
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
@startuml
skinparam linetype ortho
entity User {
* email: String
* name: String
* lastName: String
}
entity AddressType {
* name: String
}
entity Address {
* street: String
* city: String
* province: String
* postalCode: String
* country: String
* phoneNumber: String
}
entity Image {
* url: String
}
entity Product {
* title: String
* description: String
}
entity Review {
* comment: String
* rating: Int
}
entity Category {
* name: String
}
entity Brand {
* name: String
}
entity Variant {
* price: Float
* quantity: Int
* stock: Int
* color: String
}
entity Size {
* name: String
}
entity OrderItem {
* price: Float
* quantity: Int
}
entity Status {
* name: String
}
entity Shipper {
* name: String
}
entity CartItem {
* quantity: Int
}
entity Cart {
}
entity Order {
* quantity: Int
* payment: String
* shippingRate: Float
* salesTaxRate: Float
* tax: Float
* discount: Float?
* total: Float
* date: DateTime
}
User |o..o{ Address
User ||..o{ Review
User ||..|| Cart
User ||..o{ Order
Cart ||..o{ CartItem
AddressType ||..o{ Address
Product }o..|| Category
Product }o..|| Brand
Product ||..o{ Variant
Product ||..o{ Image
Product ||..o{ Review
Variant }o..|| Size
Variant ||..|| OrderItem
Status ||..o{ Order
Shipper ||..o{ Order
Variant ||..|| CartItem
Order ||..o{ OrderItem
@enduml