-
Notifications
You must be signed in to change notification settings - Fork 0
/
UML-1.0.puml
185 lines (163 loc) · 3.52 KB
/
UML-1.0.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
@startuml
hide empty members
entity Roles {
* id : SERIAL [PK]
---
role_name : VARCHAR(100)
}
entity Centers {
* id : SERIAL [PK]
---
center_name : VARCHAR(100)
center_address : VARCHAR(255)
center_telephone : VARCHAR(15)
}
abstract class Person {
* id : SERIAL [PK]
---
first_name : VARCHAR(100)
last_name : VARCHAR(100)
email : VARCHAR(100) [unique]
telephone : VARCHAR(15)
password : VARCHAR(255)
role_id : INTEGER [FK]
}
entity Candidates {
birth_date : DATE
ft_number : VARCHAR(100)
ft_agency : VARCHAR(100)
ft_ref_name : VARCHAR(100)
ft_ref_phone : VARCHAR(15)
ft_ref_email : VARCHAR(100)
}
entity Formers {}
entity Administrators {}
entity FranceTravailAdvisors {
agency : VARCHAR(100)
}
entity Paths {
* id : SERIAL [PK]
---
candidate_id : INTEGER [FK]
center_id : INTEGER [FK]
former_id : INTEGER [FK]
ft_advisor_id : INTEGER [FK]
start_date : DATE
end_date : DATE
adherence : BOOLEAN
non_adherence_reason : TEXT
}
entity Phases {
* id : SERIAL [PK]
---
path_id : INTEGER [FK]
phase_name : VARCHAR(100)
start_date : DATE
end_date : DATE
}
entity Workshop {
* id : SERIAL [PK]
---
name : VARCHAR(100)
description : TEXT
objectives : TEXT
duration : INTEGER
prerequisites : TEXT
}
entity WorkshopSession {
* id : SERIAL [PK]
---
workshop_id : INTEGER [FK]
phase_id : INTEGER [FK]
center_id : INTEGER [FK]
former_id : INTEGER [FK]
start_date : DATE
end_date : DATE
}
entity WorkshopAttendance {
* id : SERIAL [PK]
---
workshop_session_id : INTEGER [FK]
candidate_id : INTEGER [FK]
present : BOOLEAN
candidate_comments : TEXT
}
entity Assessments {
* id : SERIAL [PK]
---
workshop_attendance_id : INTEGER [FK]
former_comments : TEXT
}
entity ExitAssessment {
* id : SERIAL [PK]
---
path_id : INTEGER [FK]
candidate_comments : TEXT
former_comments : TEXT
signature_date : DATE
}
entity Notifications {
* id : SERIAL [PK]
---
person_id : INTEGER [FK]
message : TEXT
date_sent : TIMESTAMP
is_read : BOOLEAN
}
entity Documents {
* id : SERIAL [PK]
---
path_id : INTEGER [FK]
document_type : VARCHAR(50)
content : BYTEA
generation_date : DATE
}
entity Competences {
* id : SERIAL [PK]
---
name : VARCHAR(100)
description : TEXT
}
entity CandidateCompetences {
* id : SERIAL [PK]
---
candidate_id : INTEGER [FK]
competence_id : INTEGER [FK]
level : INTEGER
acquisition_date : DATE
}
entity Feedback {
* id : SERIAL [PK]
---
workshop_session_id : INTEGER [FK]
candidate_id : INTEGER [FK]
rating : INTEGER
comments : TEXT
submission_date : DATE
}
Person <|-- Candidates
Person <|-- Formers
Person <|-- Administrators
Person <|-- FranceTravailAdvisors
Roles ||--o{ Person
Centers ||--o{ Paths
Centers ||--o{ WorkshopSession
Candidates ||--o{ Paths
Candidates ||--o{ WorkshopAttendance
Candidates ||--o{ CandidateCompetences
Candidates ||--o{ Feedback
Formers ||--o{ Paths
Formers ||--o{ WorkshopSession
Formers ||--o{ Assessments
FranceTravailAdvisors ||--o{ Paths
Paths ||--o{ Phases
Paths ||--o{ ExitAssessment
Paths ||--o{ Documents
Phases ||--o{ WorkshopSession
Workshop ||--o{ WorkshopSession
WorkshopAttendance }o--|| WorkshopSession
WorkshopAttendance ||--o{ Assessments
ExitAssessment ||--o{ Documents
Competences ||--o{ CandidateCompetences
WorkshopSession ||--o{ Feedback
@enduml