Add relationship between League and Team.

This commit is contained in:
Kevin Matsubara 2025-04-07 10:43:14 +02:00
parent b1f99dc57a
commit a0733b4ebb
2 changed files with 2 additions and 0 deletions

View File

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

View File

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