apisub.plantuml 751 Bytes
Newer Older
Stephane Crozat's avatar
Stephane Crozat committed
1 2 3 4 5
/** CTRL+ALT+P to view **/

@startuml
hide circle

6 7 8 9 10 11 12 13 14 15 16 17
class Api {
  dbegin : date
  code : int
  name : text
  description : text
  duration : [1..5]
  size : int
  ects : [1..3]
  dend() : date
  week() : [1..53]
  year() : int(4)
  semester() : H|E|A|P
18 19 20 21
  nbsub() : int
  nbval() : int
  isActive() : boolean
  isOpen() : boolean
22 23 24 25
}
note left of Api : (dbeging,code) key\n(dbegin,name) key\nduration in days

class User {
Stephane Crozat's avatar
Stephane Crozat committed
26
  utclogin : text {key}
27
  email : mail {key}
Stephane Crozat's avatar
Stephane Crozat committed
28 29
  surname : text
  firstname : text
30 31
  speciality : text
  level : text
Stephane Crozat's avatar
Stephane Crozat committed
32 33
}

34
User "1..1" -- "0..n" Api : Resp
Stephane Crozat's avatar
Stephane Crozat committed
35 36


37 38
User "0..n" -- "0..n" Api
(User, Api) . Subscribe
Stephane Crozat's avatar
Stephane Crozat committed
39 40
class Subscribe {
  subdate : date
41
  confirmed : boolean
Stephane Crozat's avatar
Stephane Crozat committed
42
}
43 44 45
note bottom of Subscribe : Only one sub confirmed by week


Stephane Crozat's avatar
Stephane Crozat committed
46 47

@enduml