Make relation of League to Team nullable.

This commit is contained in:
Kevin Matsubara 2025-04-07 10:44:41 +02:00
parent 1230476b27
commit e852f09f09
2 changed files with 3 additions and 3 deletions

View File

@ -3,5 +3,5 @@
public class League : BaseDomainModel
{
public string? Name { get; set; }
public List<Team> Teams { get; set; }
public List<Team>? Teams { get; set; }
}

View File

@ -3,7 +3,7 @@
public class Team : BaseDomainModel
{
public string? Name { get; set; }
public League League { get; set; }
public int LeagueId { get; set; }
public League? League { get; set; }
public int? LeagueId { get; set; }
public int CoachId { get; set; }
}