add competition Image to Database

This commit is contained in:
Natlinux81
2022-08-28 19:03:24 +02:00
parent dfe0f72d04
commit bbf1e21fdf
13 changed files with 130 additions and 13 deletions

View File

@@ -7,26 +7,29 @@ using System.Threading.Tasks;
namespace Apollon.Domain.Models
{
public class Tournament
{
public Guid Id { get; }
public string Organisation { get; }
public string TournamentName { get; }
public string Competition { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public string Location { get; }
public int Rounds { get; }
public Tournament(Guid id, string organisation, string tournamentName, string competition, DateTime startDate, DateTime endDate, string location, int rounds = 0)
{
public Tournament(Guid id, string organisation, string tournamentName, string competition, string competitionImage, DateTime startDate, DateTime endDate, string location, int rounds)
{
Id = id;
Organisation = organisation;
TournamentName = tournamentName;
Competition = competition;
CompetitionImage = competitionImage;
StartDate = startDate;
EndDate = endDate;
Location = location;
Rounds = rounds;
}
public Guid Id { get; }
public string Organisation { get; }
public string TournamentName { get; }
public string Competition { get; }
public string CompetitionImage { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public string Location { get; }
public int Rounds { get; }
}
}