Files
BCSH1-TournamentApp/TournamentOrganizer/Models/Game.cs
T

32 lines
771 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TournamentOrganizer.Models;
public enum RuleSet
{
DoubleElimination,
SingleElimination,
RoundRobin,
Swiss
}
public class Game
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Name { get; set; } = "Example Game";
public string Description { get; set; } = "Example Game Description";
public RuleSet S1RuleSet { get; set; }
2026-04-09 12:08:52 +02:00
public int? S1Groups { get; set; }
public int? S1GroupAdvances { get; set; }
public RuleSet? S2RuleSet { get; set; }
public required List<Tournament> Tournaments { get; set; }
}