asura-tmdb/documentation/classDiagram.puml

47 lines
940 B
Plaintext
Raw Permalink Normal View History

@startuml Tournament System
' Internal development class diagram
' Describes database fields and object methods required
2022-04-25 12:51:43 +02:00
2022-03-15 14:55:31 +01:00
title Tournament System - Group 1
2022-04-25 12:51:43 +02:00
2022-04-27 12:01:48 +02:00
class Admin {
*admin_id: Integer
2022-04-25 12:51:43 +02:00
google_id: String
name: String
email: String
isManager: Boolean
}
class Match {
*match_id: Integer
tournament_id: Integer
2022-04-25 12:51:43 +02:00
parentMatch_id: Integer
2022-03-16 14:08:27 +01:00
team1_id: Integer
team2_id: Integer
winner_id: Integer
2022-04-25 12:51:43 +02:00
tier: Integer
}
class Team {
*team_id: Integer
2022-04-25 12:51:43 +02:00
tournament_id: Integer
name: String
}
class Tournament {
*tournament_id: Integer
name: String
2022-04-25 12:51:43 +02:00
description: String
prize: String
teamLimit: Integer
start_date: Date
end_date: Date
}
2022-04-27 12:01:48 +02:00
Admin "1..*" -- "0..*" Tournament : "Manages"
Admin "1..*" -- "0..*" Team : "Manages"
2022-04-27 09:50:38 +02:00
Team "2..*" -- "1..1" Tournament : "Plays in"
Team "2..2" -- "1..*" Match : "Competes in"
Tournament "1" -- "3..*" Match : "Contains"
2022-04-27 09:50:38 +02:00
@enduml