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
+4 -2
View File
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -21,8 +22,9 @@ public class Tournament
public int? S1GroupAdvances { get; set; }
public RuleSet? S2RuleSet { get; set; }
public required Game Game { get; set; }
public required Event Event { get; set; }
public Game Game { get; set; } = null!;
public Event Event { get; set; } = null!;
public List<TournamentTeam> TournamentTeams { get; set; } = [];
public static ValidationResult ValidateDates(DateTime date, ValidationContext context)
{