diff --git a/Documentation/database_mcd.puml b/Documentation/database_mcd.puml new file mode 100644 index 0000000..48078cd --- /dev/null +++ b/Documentation/database_mcd.puml @@ -0,0 +1,88 @@ +@startuml + +class Account { + id + token {uniq} + name + age + email + phoneNumber + passwordHash + profilePicture +} + +class Team { + id + name + picture + mainColor + secondColor +} + +usecase have_team [ + to have + -- + role +] + +Account "0,n" -- have_team +have_team -- "1,n" Team + + +class Tactic { + id + name + creationDate +} + +usecase have_tactic [ + to have +] + +Account "0,n" -- have_tactic +have_tactic -- "1,1" Tactic + +usecase is_shared [ + to be shared +] + +Tactic "0,n" -- is_shared +is_shared -- "0,n" Team + +class TacticFolder { + name +} + +usecase contains [ + to contains +] + +usecase contains_other_folder [ + to contains +] + +TacticFolder "0,n" -- contains_other_folder +contains_other_folder -- "0,1" TacticFolder + +TacticFolder "0,n" -- contains +contains -- "0,1" Tactic + + +class PersonalSpace { +} + +usecase have_personal_space [ + to have +] + +usecase is_root [ + to be root of +] + +PersonalSpace "0,n" -- is_root +is_root -- "1,1" TacticFolder + +PersonalSpace "1,1" -- have_personal_space +have_personal_space -- "1,1" Account + +@enduml \ No newline at end of file diff --git a/Documentation/database_mld.puml b/Documentation/database_mld.puml new file mode 100644 index 0000000..8cdd4dc --- /dev/null +++ b/Documentation/database_mld.puml @@ -0,0 +1,89 @@ +@startuml + +class Account { + token + name + age + email + phoneNumber + passwordHash + profilePicture +} + +class Team { + id + name + picture + mainColor + secondColor +} + +class Member { + idAccount + idTeam + role +} + +have_team --> Account +have_team --> Team + + +class Tactic { + id + name + creationDate +} + +class have_tactic { + idAccount + idTactic +} + +Account "0,n" -- have_tactic +have_tactic -- "1,1" Tactic + +class SharedTactic { + idTactic + idTeam +} + +Tactic "0,n" -- SharedTactic +SharedTactic -- "0,n" Team + +class TacticFolder { + name +} + +usecase contains [ + contains +] + +usecase contains_other_folder [ + contains +] + +TacticFolder "0,n" -- contains_other_folder +contains_other_folder -- "0,1" TacticFolder + +TacticFolder "0,n" -- contains +contains -- "0,1" Tactic + + +class PersonalSpace { +} + +usecase have_personal_space [ + have +] + +usecase is_root [ + is root of +] + +PersonalSpace "0,n" -- is_root +is_root -- "1,1" TacticFolder + +PersonalSpace "1,1" -- have_personal_space +have_personal_space -- "1,1" Account + +@enduml \ No newline at end of file diff --git a/Documentation/data.puml b/Documentation/models.puml similarity index 100% rename from Documentation/data.puml rename to Documentation/models.puml