-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe-chargers.puml
86 lines (71 loc) · 1.05 KB
/
e-chargers.puml
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
@startuml
title Class Diagram
class Adress {
+string Street
+string City
+string Country
+int PostalCode
}
class Plug {
+string Price
+string Type
+string ChargingSpeed
+string Image
}
class Charger {
+Adress Adress
+string Name
+string WorkTime
+string Description
+int Capacity
+string Image
+int Rating
+Plug[] Plugs
}
class User {
+string Username
+string Password
+string Email
+string Fristname
+string Lastname
}
enum VehicleType {
CAR
BIKE
SCOOTER
}
class Vehicle {
+string Name
+VehicleType type
}
class RegisteredUser {
+Vehicle[] vehicles
+Bonus BonusCategory
+boolean Banned
}
User <|-- RegisteredUser
User <|-- UnregisteredUser
User <|-- Administrator
class Charging {
+user RegisteredUser
+string startTime
}
class Review {
+user RegisteredUser
+string Content
}
class Rate {
+user RegisteredUser
+charger Charger
+int Rate
}
enum Bonus {
BRONZE
SILVER
GOLD
PLATINUM
}
class Report {
+string Content
}
@enduml