Files
BCSH1-TournamentApp/TournamentOrganizer/Models/Round.cs
T
2026-05-06 13:28:10 +02:00

25 lines
572 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TournamentOrganizer.Models;
public enum RoundState
{
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 List<PlayerParticipant> Players { get; set; } = [];
public Match Match { get; set; } = null!;
}