Updated diagram
This commit is contained in:
parent
185fb1d59c
commit
f36f03f7c7
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue