From f36f03f7c7d335d8a1793c79b28c163a13c52cca Mon Sep 17 00:00:00 2001 From: Jonas Haugland Date: Wed, 27 Apr 2022 09:50:38 +0200 Subject: [PATCH] Updated diagram --- documentation/classDiagram.puml | 12 ++++++------ documentation/domainModel.puml | 12 +++--------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/documentation/classDiagram.puml b/documentation/classDiagram.puml index fc4a3d0..45d18ab 100644 --- a/documentation/classDiagram.puml +++ b/documentation/classDiagram.puml @@ -3,7 +3,6 @@ ' Describes database fields and object methods required title Tournament System - Group 1 -skinparam Linetype ortho class User { *user_id: Integer @@ -39,9 +38,10 @@ class Tournament { } -Team "2..*" --- "1..1" Tournament : "Plays in" -Team "2..2" --- "1..*" Match : "Competes in" +User "1..*" -- "0..*" Tournament : "Manages" +User "1..*" -- "0..*" Team : "Manages" +Team "2..*" -- "1..1" Tournament : "Plays in" +Team "2..2" -- "1..*" Match : "Competes in" +Tournament "1" -- "3..*" Match : "Contains" -left to right direction -Tournament "1" --- "3..*" Match : contains -@enduml +@enduml \ No newline at end of file diff --git a/documentation/domainModel.puml b/documentation/domainModel.puml index 512d09d..66b736e 100644 --- a/documentation/domainModel.puml +++ b/documentation/domainModel.puml @@ -12,15 +12,9 @@ class Team { *team_id Name Tournaments - Players Matches } -class Player { - *player_id - Name -} - class Tournament { *tournament_id Name @@ -42,12 +36,12 @@ class User { } -Team "2..*" - "1..*" Tournament : "Plays in" -Tournament "1" -- "1..*" Match : contains -Player "1..*" -- "1..1" Team : "Belongs to" +Team "2..*" -- "1..*" Tournament : "Plays in" +Tournament "1" -- "1..*" Match : "Contains" Team "2..2" -- "1..*" Match : "Competes in" Administrator "1..*" -- "0..*" Tournament : "Manages" Administrator "1..*" -- "0..*" Team : "Manages" User "0..*" --> "0..*" Tournament : "View overview" + @enduml \ No newline at end of file