Skip to content

Data Models

Kyle Yohler edited this page May 10, 2022 · 2 revisions
User
id GUID, PK
player_id GUID, FK
admin bool
number str(10)
login_guid GUID
registration_date DateTime
last_activity DateTime

Player
id GUID, PK
last_name str
first_name str

Tournament
id GUID, PK
name str
type TournamentType
location str
desc str
team_size=2 number
enroll_time DateTime
start_time DateTime
end_time DateTime

TournamentType
ID Type
1 MAIN
2 REGIONAL
3 SPINOFF

Team
id GUID, PK
name str
song_id str
song_start str
song_name str
song_artist str
song_duration str
song_image str

TeamMembership
tournament_id GUID, FK
team_id GUID, FK
player_id GUID, FK

TournamentEntry
tournament_id GUID, FK
team_id GUID, FK

TournamentMatch
id GUID, PK
tour_id GUID, FK
team1_id GUID, FK
team2_id GUID, FK
team1_cups number
team2_cups number
ot_count number
start_time DateTime
end_time DateTime

Table
id GUID, PK
match_id GUID, FK
name str
type TableType

TableType
ID Type
1 BLACK
2 WHITE

Clone this wiki locally