forked from kartevonmorgen/openfairdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclasses.puml
83 lines (58 loc) · 1.25 KB
/
classes.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
@startuml
class Address {
city: String
country: String
state: String
street: String
zip: String
}
class Bbox
Bbox *--> "south_west 1" Coordinate
Bbox *--> "north_east 1" Coordinate
class BboxSubscription <<entity>>
BboxSubscription "*" --> "1" User : subscribes to <
BboxSubscription *--> "1" Bbox
class Category <<entity>>
class Comment <<entity>>
Comment "1" --> "1" Rating : comments >
class Contact {
email: String
homepage: String
telephone: String
}
class Coordinate {
lat: Latitude
lng: Longitude
}
class Entry <<entity>> {
license: String
}
Entry "*" -- "*" Category : categorizes <
Entry "*" -- "*" Tag : tags <
Entry *--> "1" Contact
Entry *--> "1" Location
class Event <<entity>>
Event "1" --> "1" User : creates <
Event "*" -- "*" Tag : tags <
Event *--> "1" Contact
Event *--> "1" Location
class Location
Location *--> "0..1" Address
Location *--> "position 1" Coordinate
class Organization <<entity>> {
api_token: String
}
Organization "*" -- "*" Tag : moderates >
class Rating <<entity>> {
context: String
rating: Integer
source: String
}
Entry "1" --> "1" Rating : rates <
class Role <<enum>>
class Tag <<entity>>
class User <<entity>> {
email: String
}
User *--> "1" Role
@enduml