-
Notifications
You must be signed in to change notification settings - Fork 0
/
hydra_business_class_diagram.puml
86 lines (67 loc) · 1.46 KB
/
hydra_business_class_diagram.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
@startuml
hide empty members
class User {
userId : String
username : String
email : String
imageUrl : String
provider : String
}
enum Privilege {
FN_PRV_CREATE_INFORMATION
FN_PRV_CREATE_REFERRAL
}
class Company {
companyId : String
companyName : String
address : String
language : String
}
enum RecruitmentType {
INTERVIEW
TEST
}
class Information {
informationId : int
content : String
}
enum Vote {
UP
DOWN
}
class InformationVote {
}
class JobAnnouncement {
jobId : int
city : String
jobTitle : String
jobDescription : String
minSalary : int
maxSalary : int
closingDate : Date
}
enum ProgrammingLanguage {
JAVA
JAVASCRIPT
PYTHON
...
}
class ReferralAnnouncement {
referralId : int
referralDescription : String
referralBonus : int
referralBonusPercentage : double
}
User "privileges" *---> Privilege
InformationVote -> Vote : < value
Information -> RecruitmentType : < recruitmentType
JobAnnouncement "languages" *---> ProgrammingLanguage
Information "language" ---> ProgrammingLanguage
Information "author *" --> "1" User
Information "company *" --> "1" Company
InformationVote "voter" --* "authorVotes" User
InformationVote "informationId" --* "informationVotes" Information
JobAnnouncement "company" --* "jobAnnouncements" Company
ReferralAnnouncement "author *" --> "1" User
ReferralAnnouncement "job *" --> "1" JobAnnouncement
@enduml