You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
@startuml Modèle de Domaine
|
|
|
|
!define ENTITY class
|
|
!define RELATION composition
|
|
|
|
package "Domaine de l'Application d'Analyse de Fréquence Cardiaque" {
|
|
|
|
ENTITY User {
|
|
+ UserID : int
|
|
+ Username : string
|
|
+ Email : string
|
|
+ Password : string
|
|
}
|
|
|
|
ENTITY Watch {
|
|
+ WatchID : int
|
|
+ Model : string
|
|
+ Brand : string
|
|
+ UserID : int
|
|
}
|
|
|
|
ENTITY HeartRateActivity {
|
|
+ ActivityID : int
|
|
+ UserID : int
|
|
+ WatchID : int
|
|
+ StartTime : datetime
|
|
+ Duration : int
|
|
+ Distance : float
|
|
}
|
|
|
|
ENTITY HeartRateAnalysis {
|
|
+ AnalysisID : int
|
|
+ ActivityID : int
|
|
+ AverageHeartRate : int
|
|
+ MaxHeartRate : int
|
|
+ MinHeartRate : int
|
|
+ Variability : float
|
|
+ StandardDeviation : float
|
|
}
|
|
|
|
User --* Watch : Owns
|
|
|
|
User --* HeartRateActivity : Records
|
|
|
|
HeartRateActivity --* HeartRateAnalysis : Has
|
|
|
|
ENTITY Coach {
|
|
+ CoachID : int
|
|
+ UserID : int
|
|
+ PhoneNumber : string
|
|
}
|
|
|
|
User --o Coach : IsCoachedBy
|
|
|
|
}
|
|
@enduml
|