24
24
25
25
# Model:
26
26
27
+ ![ chart] ( ./chart.png )
28
+
27
29
28
30
29
31
## Class
38
40
| [ RoomUid] ( #ClassRoomUid-Field ) (FK) | * guid* | no | no |
39
41
| OfficialName | * string* | YES | no |
40
42
| EducationLevelYear | * int32* | YES | no |
41
- ##### Unique Keys
43
+ #### Unique Keys
42
44
* Uid ** (primary)**
43
- ##### Class.** Uid** (Field)
45
+
46
+ #### Class.** Uid** (Field)
44
47
* this field represents the identity (PK) of the record
45
- ##### Class.** PrimaryTeacherUid** (Field)
48
+
49
+ #### Class.** PrimaryTeacherUid** (Field)
46
50
* this field is optional, so that '* null* ' values are supported
47
51
* this field is used as foreign key to address the related 'PrimaryTeacher'
48
- ##### Class.** RoomUid** (Field)
52
+
53
+ #### Class.** RoomUid** (Field)
49
54
* this field is optional, so that '* null* ' values are supported
50
55
* this field is used as foreign key to address the related 'PrimaryRoom'
51
56
52
57
53
58
### Relations
54
59
55
60
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
56
- | --------------- | ----------- | ------------------- |
61
+ | --------------- | -----| ----- ------ | ------------------- |
57
62
| [ PrimaryTeacher] ( #PrimaryTeacher-lookup-from-this-Class ) | Lookup | [ Teacher] ( #Teacher ) | 1 (required) |
58
63
| [ PrimaryRoom] ( #PrimaryRoom-lookup-from-this-Class ) | Lookup | [ Room] ( #Room ) | 1 (required) |
59
64
| [ Students] ( #Students-childs-of-this-Class ) | Childs | [ Student] ( #Student ) | * (multiple) |
@@ -89,24 +94,29 @@ Target: [Lesson](#Lesson)
89
94
| DurationHours | * decimal* | YES | no |
90
95
| [ TeacherUid] ( #LessonTeacherUid-Field ) (FK) | * guid* | YES | no |
91
96
| [ SubjectOfficialName] ( #LessonSubjectOfficialName-Field ) (FK) | * string* | YES | no |
92
- ##### Unique Keys
97
+ #### Unique Keys
93
98
* Uid ** (primary)**
94
- ##### Lesson.** Uid** (Field)
99
+
100
+ #### Lesson.** Uid** (Field)
95
101
* this field represents the identity (PK) of the record
96
- ##### Lesson.** EducatedClassUid** (Field)
102
+
103
+ #### Lesson.** EducatedClassUid** (Field)
97
104
* this field is used as foreign key to address the related 'EducatedClass'
98
- ##### Lesson.** RoomUid** (Field)
105
+
106
+ #### Lesson.** RoomUid** (Field)
99
107
* this field is used as foreign key to address the related 'Room'
100
- ##### Lesson.** TeacherUid** (Field)
108
+
109
+ #### Lesson.** TeacherUid** (Field)
101
110
* this field is used as foreign key to address the related 'Teaching'
102
- ##### Lesson.** SubjectOfficialName** (Field)
111
+
112
+ #### Lesson.** SubjectOfficialName** (Field)
103
113
* this field is used as foreign key to address the related 'Teaching'
104
114
105
115
106
116
### Relations
107
117
108
118
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
109
- | --------------- | ----------- | ------------------- |
119
+ | --------------- | -----| ----- ------ | ------------------- |
110
120
| [ EducatedClass] ( #EducatedClass-parent-of-this-Lesson ) | Parent | [ Class] ( #Class ) | 0/1 (optional) |
111
121
| [ Room] ( #Room-lookup-from-this-Lesson ) | Lookup | [ Room] ( #Room ) | 0/1 (optional) |
112
122
| [ Teaching] ( #Teaching-lookup-from-this-Lesson ) | Lookup | [ SubjectTeaching] ( #SubjectTeaching ) | 0/1 (optional) |
@@ -136,18 +146,20 @@ Addressed by: [TeacherUid](#LessonTeacherUid-Field), [SubjectOfficialName](#Less
136
146
| FirstName | * string* | YES | no |
137
147
| LastName | * string* | YES | no |
138
148
| ScoolEntryYear | * int32* | YES | no |
139
- ##### Unique Keys
149
+ #### Unique Keys
140
150
* Uid ** (primary)**
141
- ##### Student.** Uid** (Field)
151
+
152
+ #### Student.** Uid** (Field)
142
153
* this field represents the identity (PK) of the record
143
- ##### Student.** ClassUid** (Field)
154
+
155
+ #### Student.** ClassUid** (Field)
144
156
* this field is used as foreign key to address the related 'Class'
145
157
146
158
147
159
### Relations
148
160
149
161
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
150
- | --------------- | ----------- | ------------------- |
162
+ | --------------- | -----| ----- ------ | ------------------- |
151
163
| [ Class] ( #Class-parent-of-this-Student ) | Parent | [ Class] ( #Class ) | 0/1 (optional) |
152
164
153
165
##### ** Class** (parent of this Student)
@@ -168,19 +180,21 @@ Addressed by: [ClassUid](#StudentClassUid-Field).
168
180
| InventoryNumber | * int16* | YES | no |
169
181
| Title | * string* | YES | no |
170
182
| [ DedicatedToSubjectName] ( #EnducationItemDedicatedToSubjectName-Field ) (FK) | * string* | no | no |
171
- ##### Unique Keys
183
+ #### Unique Keys
172
184
* Uid ** (primary)**
173
- ##### EnducationItem.** Uid** (Field)
185
+
186
+ #### EnducationItem.** Uid** (Field)
174
187
* this field represents the identity (PK) of the record
175
- ##### EnducationItem.** DedicatedToSubjectName** (Field)
188
+
189
+ #### EnducationItem.** DedicatedToSubjectName** (Field)
176
190
* this field is optional, so that '* null* ' values are supported
177
191
* this field is used as foreign key to address the related 'DedicatedToSubject'
178
192
179
193
180
194
### Relations
181
195
182
196
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
183
- | --------------- | ----------- | ------------------- |
197
+ | --------------- | -----| ----- ------ | ------------------- |
184
198
| [ Picture] ( #Picture-child-of-this-EnducationItem ) | Child | [ EducationItemPicture] ( #EducationItemPicture ) | 0/1 (single) |
185
199
| [ DedicatedToSubject] ( #DedicatedToSubject-lookup-from-this-EnducationItem ) | Lookup | [ Subject] ( #Subject ) | 1 (required) |
186
200
@@ -203,15 +217,16 @@ This type is a specialization of [EnducationItem](#EnducationItem)
203
217
| Name | Type | Required | Fix |
204
218
| ---- | ---- | -------- | --- |
205
219
| [ RoomUid] ( #RoomRelatedEducationItemRoomUid-Field ) (FK) | * guid* | YES | no |
206
- ##### Unique Keys
207
- ##### RoomRelatedEducationItem.** RoomUid** (Field)
220
+ #### Unique Keys
221
+
222
+ #### RoomRelatedEducationItem.** RoomUid** (Field)
208
223
* this field is used as foreign key to address the related 'Location'
209
224
210
225
211
226
### Relations
212
227
213
228
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
214
- | --------------- | ----------- | ------------------- |
229
+ | --------------- | -----| ----- ------ | ------------------- |
215
230
| [ Location] ( #Location-lookup-from-this-RoomRelatedEducationItem ) | Lookup | [ Room] ( #Room ) | 0/1 (optional) |
216
231
217
232
##### ** Location** (lookup from this RoomRelatedEducationItem)
@@ -231,15 +246,16 @@ This type is a specialization of [EnducationItem](#EnducationItem)
231
246
| Name | Type | Required | Fix |
232
247
| ---- | ---- | -------- | --- |
233
248
| [ TeacherUid] ( #TeacherRelatedEducationItemTeacherUid-Field ) (FK) | * guid* | YES | no |
234
- ##### Unique Keys
235
- ##### TeacherRelatedEducationItem.** TeacherUid** (Field)
249
+ #### Unique Keys
250
+
251
+ #### TeacherRelatedEducationItem.** TeacherUid** (Field)
236
252
* this field is used as foreign key to address the related 'OwningTeacher'
237
253
238
254
239
255
### Relations
240
256
241
257
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
242
- | --------------- | ----------- | ------------------- |
258
+ | --------------- | -----| ----- ------ | ------------------- |
243
259
| [ OwningTeacher] ( #OwningTeacher-lookup-from-this-TeacherRelatedEducationItem ) | Lookup | [ Teacher] ( #Teacher ) | 0/1 (optional) |
244
260
245
261
##### ** OwningTeacher** (lookup from this TeacherRelatedEducationItem)
@@ -258,17 +274,18 @@ Addressed by: [TeacherUid](#TeacherRelatedEducationItemTeacherUid-Field).
258
274
| ---- | ---- | -------- | --- |
259
275
| [ Uid] ( #EducationItemPictureUid-Field ) ** (PK)** (FK) | * guid* | YES | no |
260
276
| PictureData | * byte[ ] * | YES | no |
261
- ##### Unique Keys
277
+ #### Unique Keys
262
278
* Uid ** (primary)**
263
- ##### EducationItemPicture.** Uid** (Field)
279
+
280
+ #### EducationItemPicture.** Uid** (Field)
264
281
* this field represents the identity (PK) of the record
265
282
* this field is used as foreign key to address the related 'EnducationItem'
266
283
267
284
268
285
### Relations
269
286
270
287
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
271
- | --------------- | ----------- | ------------------- |
288
+ | --------------- | -----| ----- ------ | ------------------- |
272
289
| [ EnducationItem] ( #EnducationItem-parent-of-this-EducationItemPicture ) | Parent | [ EnducationItem] ( #EnducationItem ) | 0/1 (optional) |
273
290
274
291
##### ** EnducationItem** (parent of this EducationItemPicture)
@@ -287,16 +304,17 @@ Addressed by: [Uid](#EducationItemPictureUid-Field).
287
304
| ---- | ---- | -------- | --- |
288
305
| [ Uid] ( #RoomUid-Field ) ** (PK)** | * guid* | YES | no |
289
306
| OfficialName | * string* | YES | no |
290
- ##### Unique Keys
307
+ #### Unique Keys
291
308
* Uid ** (primary)**
292
- ##### Room.** Uid** (Field)
309
+
310
+ #### Room.** Uid** (Field)
293
311
* this field represents the identity (PK) of the record
294
312
295
313
296
314
### Relations
297
315
298
316
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
299
- | --------------- | ----------- | ------------------- |
317
+ | --------------- | -----| ----- ------ | ------------------- |
300
318
| [ PrimaryClasses] ( #PrimaryClasses-refering-to-this-Room ) | Referers | [ Class] ( #Class ) | * (multiple) |
301
319
| [ ScheduledLessons] ( #ScheduledLessons-refering-to-this-Room ) | Referers | [ Lesson] ( #Lesson ) | * (multiple) |
302
320
| [ EducationItems] ( #EducationItems-refering-to-this-Room ) | Referers | [ RoomRelatedEducationItem] ( #RoomRelatedEducationItem ) | * (multiple) |
@@ -319,16 +337,17 @@ Target: [RoomRelatedEducationItem](#RoomRelatedEducationItem)
319
337
| Name | Type | Required | Fix |
320
338
| ---- | ---- | -------- | --- |
321
339
| [ OfficialName] ( #SubjectOfficialName-Field ) ** (PK)** | * string* | YES | no |
322
- ##### Unique Keys
340
+ #### Unique Keys
323
341
* OfficialName ** (primary)**
324
- ##### Subject.** OfficialName** (Field)
342
+
343
+ #### Subject.** OfficialName** (Field)
325
344
* this field represents the identity (PK) of the record
326
345
327
346
328
347
### Relations
329
348
330
349
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
331
- | --------------- | ----------- | ------------------- |
350
+ | --------------- | -----| ----- ------ | ------------------- |
332
351
| [ EnducationItems] ( #EnducationItems-refering-to-this-Subject ) | Referers | [ EnducationItem] ( #EnducationItem ) | * (multiple) |
333
352
| [ Teachings] ( #Teachings-refering-to-this-Subject ) | Referers | [ SubjectTeaching] ( #SubjectTeaching ) | * (multiple) |
334
353
@@ -350,16 +369,17 @@ Target: [SubjectTeaching](#SubjectTeaching)
350
369
| [ Uid] ( #TeacherUid-Field ) ** (PK)** | * guid* | YES | no |
351
370
| FirstName | * string* | YES | no |
352
371
| LastName | * string* | YES | no |
353
- ##### Unique Keys
372
+ #### Unique Keys
354
373
* Uid ** (primary)**
355
- ##### Teacher.** Uid** (Field)
374
+
375
+ #### Teacher.** Uid** (Field)
356
376
* this field represents the identity (PK) of the record
357
377
358
378
359
379
### Relations
360
380
361
381
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
362
- | --------------- | ----------- | ------------------- |
382
+ | --------------- | -----| ----- ------ | ------------------- |
363
383
| [ PrimaryClasses] ( #PrimaryClasses-refering-to-this-Teacher ) | Referers | [ Class] ( #Class ) | * (multiple) |
364
384
| [ Teachings] ( #Teachings-childs-of-this-Teacher ) | Childs | [ SubjectTeaching] ( #SubjectTeaching ) | * (multiple) |
365
385
| [ OwnedEducationItems] ( #OwnedEducationItems-refering-to-this-Teacher ) | Referers | [ TeacherRelatedEducationItem] ( #TeacherRelatedEducationItem ) | * (multiple) |
@@ -383,20 +403,22 @@ Target: [TeacherRelatedEducationItem](#TeacherRelatedEducationItem)
383
403
| ---- | ---- | -------- | --- |
384
404
| [ TeacherUid] ( #SubjectTeachingTeacherUid-Field ) ** (PK)** (FK) | * guid* | YES | no |
385
405
| [ SubjectOfficialName] ( #SubjectTeachingSubjectOfficialName-Field ) ** (PK)** (FK) | * string* | YES | no |
386
- ##### Unique Keys
406
+ #### Unique Keys
387
407
* TeacherUid + SubjectOfficialName ** (primary)**
388
- ##### SubjectTeaching.** TeacherUid** (Field)
408
+
409
+ #### SubjectTeaching.** TeacherUid** (Field)
389
410
* this field represents the identity (PK) of the record
390
411
* this field is used as foreign key to address the related 'Teacher'
391
- ##### SubjectTeaching.** SubjectOfficialName** (Field)
412
+
413
+ #### SubjectTeaching.** SubjectOfficialName** (Field)
392
414
* this field represents the identity (PK) of the record
393
415
* this field is used as foreign key to address the related 'Subject'
394
416
395
417
396
418
### Relations
397
419
398
420
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
399
- | --------------- | ----------- | ------------------- |
421
+ | --------------- | -----| ----- ------ | ------------------- |
400
422
| [ ScheduledLessons] ( #ScheduledLessons-refering-to-this-SubjectTeaching ) | Referers | [ Lesson] ( #Lesson ) | * (multiple) |
401
423
| [ Subject] ( #Subject-lookup-from-this-SubjectTeaching ) | Lookup | [ Subject] ( #Subject ) | 0/1 (optional) |
402
424
| [ Teacher] ( #Teacher-parent-of-this-SubjectTeaching ) | Parent | [ Teacher] ( #Teacher ) | 0/1 (optional) |
@@ -427,23 +449,27 @@ Target: [TeachingRequiredItem](#TeachingRequiredItem)
427
449
| [ TeacherUid] ( #TeachingRequiredItemTeacherUid-Field ) (FK) | * guid* | YES | no |
428
450
| [ SubjectOfficialName] ( #TeachingRequiredItemSubjectOfficialName-Field ) (FK) | * string* | YES | no |
429
451
| [ RequiredEducationItemUid] ( #TeachingRequiredItemRequiredEducationItemUid-Field ) (FK) | * guid* | YES | no |
430
- ##### Unique Keys
452
+ #### Unique Keys
431
453
* Uid ** (primary)**
432
- ##### TeachingRequiredItem.** Uid** (Field)
454
+
455
+ #### TeachingRequiredItem.** Uid** (Field)
433
456
* this field represents the identity (PK) of the record
434
457
* this identity is a internal record id, so that it must not be exposed to other systems or displayed to end-users!
435
- ##### TeachingRequiredItem.** TeacherUid** (Field)
458
+
459
+ #### TeachingRequiredItem.** TeacherUid** (Field)
436
460
* this field is used as foreign key to address the related 'Teaching'
437
- ##### TeachingRequiredItem.** SubjectOfficialName** (Field)
461
+
462
+ #### TeachingRequiredItem.** SubjectOfficialName** (Field)
438
463
* this field is used as foreign key to address the related 'Teaching'
439
- ##### TeachingRequiredItem.** RequiredEducationItemUid** (Field)
464
+
465
+ #### TeachingRequiredItem.** RequiredEducationItemUid** (Field)
440
466
* this field is used as foreign key to address the related 'RequiredItem'
441
467
442
468
443
469
### Relations
444
470
445
471
| Navigation-Name | Role | Target-Type | Target-Multiplicity |
446
- | --------------- | ----------- | ------------------- |
472
+ | --------------- | -----| ----- ------ | ------------------- |
447
473
| [ Teaching] ( #Teaching-parent-of-this-TeachingRequiredItem ) | Parent | [ SubjectTeaching] ( #SubjectTeaching ) | 0/1 (optional) |
448
474
| [ RequiredItem] ( #RequiredItem-lookup-from-this-TeachingRequiredItem ) | Lookup | [ TeacherRelatedEducationItem] ( #TeacherRelatedEducationItem ) | 0/1 (optional) |
449
475
0 commit comments