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

26 lines
576 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 RoundState
{
2026-04-09 10:42:33 +02:00
Waiting,
Started,
Finished
}
public class Round
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public int MatchId { get; set; }
public RoundState State { get; set; } = RoundState.WAITING;
public required List<PlayerParticipant> Players;
public required Match Match { get; set; }
}