2026-04-09 10:36:09 +02:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace TournamentOrganizer.Models;
|
|
|
|
|
|
|
|
|
|
[PrimaryKey(nameof(RoundId), nameof(PlayerId))]
|
|
|
|
|
public class PlayerParticipant
|
|
|
|
|
{
|
|
|
|
|
public int RoundId { get; set; }
|
|
|
|
|
public int PlayerId { get; set; }
|
2026-05-06 13:28:10 +02:00
|
|
|
public Player Player { get; set; } = null!;
|
|
|
|
|
public Round Round { get; set; } = null!;
|
2026-04-09 10:36:09 +02:00
|
|
|
}
|
|
|
|
|
|
2026-04-09 12:08:52 +02:00
|
|
|
[PrimaryKey(nameof(MatchId), nameof(TeamId))]
|
2026-04-09 10:36:09 +02:00
|
|
|
public class TeamParticipant
|
|
|
|
|
{
|
|
|
|
|
public int MatchId { get; set; }
|
|
|
|
|
public int TeamId { get; set; }
|
|
|
|
|
public int Seed { get; set; }
|
|
|
|
|
public int Score { get; set; }
|
2026-05-06 13:28:10 +02:00
|
|
|
public Team Team { get; set; } = null!;
|
|
|
|
|
public Match Round { get; set; } = null!;
|
|
|
|
|
}
|
2026-04-09 10:36:09 +02:00
|
|
|
|
2026-05-06 13:28:10 +02:00
|
|
|
[PrimaryKey(nameof(TournamentId), nameof(TeamId))]
|
|
|
|
|
public class TournamentTeam
|
|
|
|
|
{
|
|
|
|
|
public int TournamentId { get; set; }
|
|
|
|
|
public int TeamId { get; set; }
|
|
|
|
|
public int Seed { get; set; }
|
|
|
|
|
public Tournament Tournament { get; set; } = null!;
|
|
|
|
|
public Team Team { get; set; } = null!;
|
|
|
|
|
}
|