forked from UdL-EPS-SoftArch/spring-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntitiesModel.puml
60 lines (47 loc) · 1.18 KB
/
EntitiesModel.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
@startuml
class Announcement {
name: String
description: String
price: Decimal
}
class Transaction {
status: Enum
when: DateTime
price: Decimal
}
Transaction "0..1" --up-- "1" Announcement : about >
Transaction "*" --down-- "1" User : seller >
Transaction "*" --down-- "1" User : buyer >
class Admin extends User {}
class Message {
when: DateTime
text: String
}
Message "*" --up-- "1" Announcement : for >
Message "*" --down-- "1" User : author >
class User {
username : String
password : String
email : String
tokens: Decimal
}
class Offer extends Announcement
Offer "*" --right-- "1" User : offerer >
class CounterOffer extends Offer
CounterOffer "*" --up-- "1" Offer : counters >
class ProductOffer extends Offer {}
class ServiceOffer extends Offer {}
class Request extends Announcement
Request "*" --left-- "1" User : requester >
class ProductRequest extends Request {}
class ServiceRequest extends Request {}
class CounterRequest extends Request
CounterRequest "*" --up-- "1" Request : counters >
class Review {
when: DateTime
stars: Integer
message: String
}
Review "*" --up-- "1" User : author >
Review "*" --up-- "1" User : about >
@enduml