diff --git a/Documents/Diagramme/BDD/README_BDD.md b/Documents/Diagramme/BDD/README_BDD.md index 5bc2be22..836e87e9 100644 --- a/Documents/Diagramme/BDD/README_BDD.md +++ b/Documents/Diagramme/BDD/README_BDD.md @@ -175,4 +175,102 @@ friendship --> athlete notif --> athlete athlete <-- friendship @enduml +``` + +```plantuml +@startuml +skinparam classAttributeIconSize 0 +package MCD{ +entity "Athlete" as athlete { + {static} idAthlete + username + nom + prenom + email + sexe + taille + poids + motDePasse + dateNaissance + isCoach +} + +entity "Notification" as notif { + {static} idNotif + message + date + statut + urgence + #athleteId +} + +entity "Statistique" as stats { + {static} idStatistique + poids + fcMoyenne + fcMax + caloriesBruleesMoy + date + #athleteId +} + +entity "Entrainement" as training { + {static} idEntrainement + date + description + latitude + longitude + feedback + #athleteId +} + +entity "SourceDonnee" as source { + {static} idSource + type + modele + precision + #athleteId +} + +entity "Activite" as activity { + {static} idActivité + type + date + heureDeDebut + heureDeFin + effortRessent + variabilite + variance + ecartType + moyenne + maximum + minimum + temperatureMoyenne + #athleteId + #sourceId +} + +entity "FréquenceCardiaque" as fc { + {static} idFc + altitude + temps : time + température + bpm + longitude + latitude + #activitéId +} + +} +activity "0..n" --- "1..1" athlete : réalise +activity "1..n" --- "1..1" source : possede +activity "1..1" --- "1..n" fc : enregistre +athlete "1..n" --- "0..1" source : possede +stats "0..n" --- "1..1" athlete : possede +training "0..n" --- "1..n" athlete : participe +training "0..n" --- "1..1" athlete : donne +athlete "0..n" --- "1..n" athlete : est ami +notif "0..n" --- "1..n" athlete : recoit +notif "0..n" --- "1..1" athlete : envoie +@enduml ``` \ No newline at end of file