19 lines
496 B
C#
19 lines
496 B
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
|
|
||
|
|
namespace TournamentOrganizer.Models;
|
||
|
|
|
||
|
|
public class Match
|
||
|
|
{
|
||
|
|
[Key]
|
||
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||
|
|
public int Id { get; set; }
|
||
|
|
public int TournamentId { get; set; }
|
||
|
|
|
||
|
|
public required List<TeamParticipant> Teams;
|
||
|
|
public required List<Round> Rounds;
|
||
|
|
public required Tournament Tournament { get; set; }
|
||
|
|
|
||
|
|
}
|