2026-04-09 10:36:09 +02:00
|
|
|
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
|
2026-04-09 10:36:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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-04-09 10:36:09 +02:00
|
|
|
|
|
|
|
|
public required List<PlayerParticipant> Players;
|
|
|
|
|
public required Match Match { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|