Tournament management
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user