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

25 lines
572 B
C#
Raw Normal View History

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; }
2026-04-09 11:49:30 +02:00
public RoundState State { get; set; } = RoundState.Waiting;
2026-05-06 13:28:10 +02:00
public List<PlayerParticipant> Players { get; set; } = [];
public Match Match { get; set; } = null!;
}