Core.pu 2.27 KB
Newer Older
1
2
@startuml

3
4
package Core {

Florent Chehab's avatar
Florent Chehab committed
5
6
7
8
    '     note as notePackageCore
    '     <b>Write access is restricted to site admins and the members of the DRI group.</b>
    '     On some models, users can make requests for modifications (for this a copy of the model is used for storing).
    ' end note
9
10


Florent Chehab's avatar
Florent Chehab committed
11
12
13
14
15
    class City  #white {
        + name : string
        + local_name : string
        + area : string
    }
16

Florent Chehab's avatar
Florent Chehab committed
17
18
19
20
21
22
23
24
25
26
    class Country #white {
        # iso_alpha2_code : string{2}
        + name : string
        + region_code : string{3}
        + region_name : string
        + sub_region_code : string{3}
        + sub_region_name : string
        + intermediate_region_code : string{3}
        + intermediate_region_name : string
    }
27

Florent Chehab's avatar
Florent Chehab committed
28
    City "*" -left-* Country
29

30

Florent Chehab's avatar
Florent Chehab committed
31
32
    note "Countries are intially \n hardcoded in the db." as N2
    N2 .up. Country
33

Florent Chehab's avatar
Florent Chehab committed
34
35
36
37
38
39
    class University  #wheat {
        + name : string
        + accronyme : string
        + logo : image
        + website : url
    }
40

Florent Chehab's avatar
Florent Chehab committed
41
42
43
44
45
    University "1" .right. "1" City
    note on link #white
        This link is acheived
        through the campus module
        (where is_main = true)
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
    end note

    Class Offer {
        + nb_seats_offered : int
    }

    Class Semester{
        + name : string
        + searchable : bool
    }

    Class Departement{
        + name : string
        + accronyme : string
        + searchable : bool
    }

    Class Specialty {
        + name : string
        + accronyme : string
        + searchable : bool
    }

69
    Offer "*" -right- "1" University
70
71
72
73
74
75
76
77
78
79
    Offer "*" -down- "1" Semester
    Offer "*" -left- "1..n" Departement
    Specialty "1..n" -left- "1" Departement

    note "Initial data inserted in db." as N3
    Semester .. N3
    N3 .. Specialty
    N3 .. Departement


80
81
    class UsefullLinks #green{
        + content : MD
82
83
    }

Florent Chehab's avatar
Florent Chehab committed
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
    note right of UsefullLinks: It will be a dynamic page \n on the website


    abstract class BasicModuleCopyCore as "BasicModule" #red

    class UniversityDri
    class CountryDri

    UniversityDri -down-|> BasicModuleCopyCore
    CountryDri -down-|> BasicModuleCopyCore

    Country "*"-down-"*" CountryDri
    University "*"-down-"*" UniversityDri

    note "Edit right reserved\n to DRI members." as N4
    N4 .. UniversityDri
    N4 .. CountryDri

102
}
103
104
105
' End of Core block

@enduml