forked from oncokb/oncokb-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jhipster-jdl.jdl
97 lines (81 loc) · 1.88 KB
/
jhipster-jdl.jdl
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
entity Token {
token UUID,
creation Instant,
expiration Instant,
usageLimit Integer,
currentUsage Integer required,
renewable Boolean required
}
entity TokenStats {
accessIp String,
resource String,
accessTime Instant required,
usageCount Integer required
}
entity UserDetails {
licenseType LicenseType,
jobTitle String,
companyName String,
city String,
country String,
address String,
additionalInfo TextBlob
}
entity UserMails {
sentDate Instant required,
sentBy String required,
mailType String,
sentFrom String required,
}
entity Company {
name String required,
description TextBlob,
companyType CompanyType required,
licenseType LicenseType required,
licenseModel LicenseModel required,
licenseStatus LicenseStatus required,
businessContact String,
legalContact String,
}
entity CompanyDomain {
name String required
}
enum LicenseType {
ACADEMIC,
COMMERCIAL,
RESEARCH_IN_COMMERCIAL,
HOSPITAL
}
enum CompanyType {
PARENT, BRANCH, UNKNOWN
}
enum LicenseStatus {
TRIAL, REGULAR, TRIAL_EXPIRED, EXPIRED, UNKNOWN
}
enum LicenseModel {
FULL, LIMITED
}
relationship OneToOne {
UserDetails to User
}
relationship ManyToOne {
TokenStats{token} to Token
Token{user} to User
UserMails{user} to User
UserDetails{company} to Company
}
relationship ManyToMany {
Company{companyDomain} to CompanyDomain{company}
}
// Set pagination options
// paginate JobHistory, Employee with infinite-scroll
// paginate Job with pagination
// Use Data Transfer Objects (DTO)
dto all with mapstruct except Token, TokenStats
// Set service options to all except few
// service all with serviceImpl
service all with serviceImpl except UserMails
service UserMails with serviceClass
// Skip all client generation
// We do not use redux in the frontend, the autogenerated code is not so useful here
skipClient *