-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogical-db.puml
145 lines (122 loc) · 2.48 KB
/
logical-db.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
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
@startuml
skinparam nodesep 100
skinparam ranksep 250
skinparam defaultFontSize 18
skinparam linetype ortho
hide circle
hide empty members
!theme blueprint
entity system_info {
system_id <<PK>>
db_version
current_plot_version
last_update
description
}
entity build_team {
build_team_id <<PK>>
name
api_key
api_create_date
}
entity server {
build_team_id <<PK>>
server_name <<FK>>
}
entity country {
country_code <<PK>>
continent
material
custom_model_data
}
entity city_project {
city_project_id <<PK>>
country_code <<FK>>
server_name <<FK>>
is_visible
}
entity builder {
uuid <<PK>>
name
score
first_slot
second_slot
third_slot
plot_type
}
entity plot_difficulty {
difficulty_id <<PK>>
multiplier
score_requirement
}
entity plot {
plot_id <<PK>>
city_project_id <<FK>>
difficulty_id <<FK>>
status
score
outline_bounds
initial_schematic
complete_schematic
last_activity_date
is_pasted
mc_version
plot_version
created_by
create_date
}
entity tutorial {
tutorial_id <<PK>>
uuid <<PK>>
stage_id
is_complete
first_stage_start_date
last_stage_complete_date
}
entity plot_review {
review_id <<PK>>
plot_id <<FK>>
rating
feedback
reviewed_by
review_date
}
entity build_team_has_country {
build_team_id <<PK>>
country_code <<PK>>
}
entity build_team_has_city_project {
build_team_id <<PK>>
city_project_id <<PK>>
}
entity build_team_has_reviewer {
build_team_id <<PK>>
uuid <<PK>>
}
entity builder_has_review_notification {
review_id <<PK>>
uuid <<PK>>
}
entity builder_has_plot {
plot_id <<PK>>
uuid <<PK>>
is_owner
}
build_team "1" <-- "0..*" build_team_has_city_project
build_team "1" <-- "0..*" build_team_has_country
build_team "1" <-- "0..*" build_team_has_reviewer
build_team "1" <-- "0..*" server
country "1" <--- "0..*" city_project
country "1" <--- "0..*" build_team_has_country
city_project "1" <-- "0..*" build_team_has_city_project
city_project "0..*" --> "1" server
plot_review "1" <-- "0..*" builder_has_review_notification
plot_review "0..*" --> "1" plot
builder "1" <-- "0..*" build_team_has_reviewer
builder "1" <--- "1" tutorial
builder "1" <-- "0..*" builder_has_review_notification
builder "1" <-- "0..*" builder_has_plot
plot "0..*" --> "1" city_project
plot "0..*" ---> "1" plot_difficulty
plot "1" <-- "0..*" builder_has_plot
@enduml