fix: fixed model issues

Game and Tournament forgot to add setters to group count and advancement numbers to stage 1 in multistage tournaments

Participant apparently accidentally deleted the composite key in TeamParticipant
This commit is contained in:
2026-04-09 12:08:52 +02:00
parent 929dc09274
commit f7aacdad04
8 changed files with 434 additions and 5 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ public class Game
public string Description { get; set; } = "Example Game Description";
public RuleSet S1RuleSet { get; set; }
public int S1Groups;
public int S1GroupAdvances;
public int? S1Groups { get; set; }
public int? S1GroupAdvances { get; set; }
public RuleSet? S2RuleSet { get; set; }
+1 -1
View File
@@ -16,7 +16,7 @@ public class PlayerParticipant
public required Round Round { get; set; }
}
[PrimaryKey(nameof(MatchId), nameof(TeamId))]
public class TeamParticipant
{
public int MatchId { get; set; }
+2 -2
View File
@@ -17,8 +17,8 @@ public class Tournament
public DateTime End { get; set; }
public RuleSet S1RuleSet { get; set; }
public int S1Groups;
public int S1GroupAdvances;
public int? S1Groups { get; set; }
public int? S1GroupAdvances { get; set; }
public RuleSet? S2RuleSet { get; set; }
public required Game Game { get; set; }