-
Notifications
You must be signed in to change notification settings - Fork 1
/
asso1.0.jh
73 lines (59 loc) · 1.56 KB
/
asso1.0.jh
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
entity Association {
assoId String required,
assoName String required,
assoFoundDate LocalDate required,
assoIntrodution TextBlob,
assoImage ImageBlob
}
entity Amember {
membName String required,
membNO String required,
membClass String,
membPhone String required,
membQQ String required,
membEmail String ,
membJoinDate LocalDate
}
entity Department {
deptName String required,
deptIntrodution TextBlob,
deptImage ImageBlob
}
entity Role {
roleName String required
}
entity Activity {
actiName String required,
actiDate LocalDate required,
actiPlace String required,
actiContent String
}
entity Property {
propName String required,
propPrice Double ,
propBuyDate LocalDate,
propNumber Long
}
enum Weekday {
MON, TUS, WED, THUR, FRI, SAT, SUN
}
entity Duty {
weekday Weekday,
dutyIntrodution TextBlob
}
relationship OneToOne {
Duty{Department(deptName)} to Department{duty}
}
relationship ManyToMany {
Amember{Association(assoName)} to Association{membasso},
Amember{Department(deptName)} to Department{membdept},
Amember{Role(roleName)} to Role{membrole}
}
// defining multiple OneToMany relationships with comments
relationship OneToMany {
Association{Department(deptName)} to Department{assodept(assoName)},
Association{Activity(actiName)} to Activity{assoacti(assoName)},
Association{Property(propName)} to Property{assoprop(assoName)},
Duty{Amember(membName)} to Amember{dutymemb(weekday)}
}
paginate Association, Amember, Department, Role, Activity, Property, Duty with pagination