feat: initial datamodel + ef connection and migrations

Initial version of the data model
Includes EF initialization and migrations
EF migrations are applied on application start
This commit is contained in:
2026-04-09 10:36:09 +02:00
commit 16160f6424
45 changed files with 2522 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
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; }
}