asura-tmdb/documentation/classDiagram.puml

48 lines
903 B
Plaintext
Raw 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
skinparam Linetype ortho
class User {
*user_id: Integer
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-25 12:51:43 +02:00
Team "2..*" --- "1..1" Tournament : "Plays in"
Team "2..2" --- "1..*" Match : "Competes in"
2022-04-25 12:51:43 +02:00
left to right direction
Tournament "1" --- "3..*" Match : contains
2022-03-16 14:08:27 +01:00
@enduml