Tournament management

This commit is contained in:
2026-05-06 13:28:10 +02:00
parent 67d27ab21c
commit c70b9c554e
20 changed files with 1667 additions and 36 deletions
+14 -6
View File
@@ -7,9 +7,8 @@ public class PlayerParticipant
{
public int RoundId { get; set; }
public int PlayerId { get; set; }
public required Player Player { get; set; }
public required Round Round { get; set; }
public Player Player { get; set; } = null!;
public Round Round { get; set; } = null!;
}
[PrimaryKey(nameof(MatchId), nameof(TeamId))]
@@ -19,7 +18,16 @@ public class TeamParticipant
public int TeamId { get; set; }
public int Seed { get; set; }
public int Score { get; set; }
public Team Team { get; set; } = null!;
public Match Round { get; set; } = null!;
}
public required Team Team { get; set; }
public required Match Round { get; set; }
}
[PrimaryKey(nameof(TournamentId), nameof(TeamId))]
public class TournamentTeam
{
public int TournamentId { get; set; }
public int TeamId { get; set; }
public int Seed { get; set; }
public Tournament Tournament { get; set; } = null!;
public Team Team { get; set; } = null!;
}