-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentity-relation.puml
156 lines (146 loc) · 2.48 KB
/
entity-relation.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
146
147
148
149
150
151
152
153
154
155
156
@startuml
entity "User" as e01 {
*id : varchar <<PK>>
}
entity "Contest" as e02 {
*id : varchar <<PK>>
--
*author_id : varchar <<FK>>
}
entity "Clarification" as e03 {
*id : varchar <<PK>>
--
*author_id : varchar <<FK>>
--
*contest_id : varchar <<FK>>
}
entity "Tag" as e04 {
*id : varchar <<PK>>
}
entity "Problem" as e05 {
*id : varchar <<PK>>
--
*author_id : varchar <<FK>>
}
entity "ProblemTagList" as e06 {
*id : varchar <<PK>>
--
*tag_id : varchar <<FK>>
--
*problem_id: varchar <<FK>>
}
entity "ContestProblem" as e07 {
*id : varchar <<PK>>
--
*contest_id : varchar <<FK>>
--
*problem_id : varchar <<FK>>
--
*first_submission_id : varchar <<FK>>
}
entity "Group" as e08 {
*id : varchar <<PK>>
}
entity "UserTagStat" as e09 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*tag_id : varchar <<FK>>
}
entity "AuthLog" as e10 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
}
entity "Authority" as e11 {
*id : varchar <<PK>>
}
entity "UserAuthorities" as e12 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*authority_id : varchar <<FK>>
}
entity "Announcement" as e13 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
}
entity "SecurityQuestion" as e14 {
*id : varchar <<PK>>
}
entity "UserSecurityQuestion" as e15 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*security_question_id : varchar <<FK>>
}
entity "UserProblemStat" as e16 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*problem_id : varchar <<FK>>
}
entity "Submission" as e17 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*problem_id : varchar <<FK>>
--
*contest_id : varchar <<FK>>
}
entity "RankingUser" as e18 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*contest_id : varchar <<FK>>
}
entity "Timecost" as e19 {
*id : varchar <<PK>>
--
*ranking_user_id : varchar <<FK>>
--
*contest_problem_id : varchar <<FK>>
}
entity "UserGroupList" as e20 {
*id : varchar <<PK>>
--
*user_id : varchar <<FK>>
--
*group_id : varchar <<FK>>
}
e01 |o--o{ e02
e01 |o--o{ e10
e01 |o--o{ e20
e08 |o--o{ e20
e01 |o--o{ e05
e01 ||--o{ e03
e02 ||--o{ e03
e04 |o--o{ e06
e05 |o--o{ e06
e01 |o--o{ e09
e04 |o--o{ e09
e01 |o--o{ e12
e11 |o--o{ e12
e01 |o--o{ e13
e01 }o--o{ e15
e14 |o--o{ e15
e01 |o--o{ e16
e05 |o--o{ e16
e02 |o--o{ e17
e01 |o--o{ e17
e05 |o--o{ e17
e05 |o--o{ e07
e02 |o--o{ e07
e07 |o--o| e17
e02 |o--o{ e18
e01 |o--o{ e18
e18 |o--o{ e19
e07 |o--o{ e19
@enduml