Files
BCSH1-TournamentApp/TournamentOrganizer/Models/Tournament.cs
T
shield f7aacdad04 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
2026-04-09 12:08:52 +02:00

27 lines
765 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace TournamentOrganizer.Models;
public class Tournament
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public int GameId { get; set; }
public int EventId { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
public RuleSet S1RuleSet { get; set; }
public int? S1Groups { get; set; }
public int? S1GroupAdvances { get; set; }
public RuleSet? S2RuleSet { get; set; }
public required Game Game { get; set; }
public required Event Event { get; set; }
}