576 lines
26 KiB
C#
576 lines
26 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using EntityFrameworkCore.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace EntityFrameworkCore.Data.Migrations
|
|
{
|
|
[DbContext(typeof(DeadBallZoneLeagueDbContext))]
|
|
[Migration("20250414201323_AddSoftDeleteFlagLeague")]
|
|
partial class AddSoftDeleteFlagLeague
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.3");
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Coach", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ModifiedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Version")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Coaches");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Christian Southgate",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 2,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Rob Mann",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 3,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Jon Curtis",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 4,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Andy Taylor",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 5,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Steve Johnson",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 6,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Dan Cook",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 7,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Ken Jarvis",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 8,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Kenny Suzuki",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 9,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Gordon Hall",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 10,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "John O Dowd",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 11,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Julian Widdows",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 12,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Andy Williams",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 13,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Trevor Williams",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 14,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Blake Deathray",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 15,
|
|
CreatedDate = new DateTime(2025, 4, 7, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Rock Housebrick",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.League", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ModifiedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Version")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Leagues");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
CreatedDate = new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
IsDeleted = false,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Local League",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 2,
|
|
CreatedDate = new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
IsDeleted = false,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "National League",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 3,
|
|
CreatedDate = new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
IsDeleted = false,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Geosphere",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 4,
|
|
CreatedDate = new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
IsDeleted = false,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Cyber war",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Match", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AwayTeamId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AwayTeamScore")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("HomeTeamId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("HomeTeamScore")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ModifiedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("TicketPrice")
|
|
.HasPrecision(16, 2)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Version")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AwayTeamId");
|
|
|
|
b.HasIndex("HomeTeamId");
|
|
|
|
b.ToTable("Matches");
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Team", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CoachId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("LeagueId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ModifiedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Version")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CoachId")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("LeagueId");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Teams");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
CoachId = 1,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 2,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Neo Delhi",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 2,
|
|
CoachId = 2,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Voodoo",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 3,
|
|
CoachId = 3,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Penal X",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 4,
|
|
CoachId = 4,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 3,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Neo Tokyo",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 5,
|
|
CoachId = 5,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 2,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Neo Barcelona",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 6,
|
|
CoachId = 6,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 2,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Neo Manchester",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 7,
|
|
CoachId = 7,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 3,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Neo Bangkok",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 8,
|
|
CoachId = 8,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 3,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Neo Amsterdam",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 9,
|
|
CoachId = 9,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Killaklowns",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 10,
|
|
CoachId = 10,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Sol",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 11,
|
|
CoachId = 11,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 4,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "DEC",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 12,
|
|
CoachId = 12,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Leopards",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 13,
|
|
CoachId = 13,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Harlequins",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 14,
|
|
CoachId = 14,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 4,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Gladiators",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
},
|
|
new
|
|
{
|
|
Id = 15,
|
|
CoachId = 15,
|
|
CreatedDate = new DateTime(2025, 4, 4, 17, 7, 27, 33, DateTimeKind.Unspecified),
|
|
LeagueId = 1,
|
|
ModifiedDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
Name = "Fiz-O",
|
|
Version = new Guid("00000000-0000-0000-0000-000000000000")
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.TeamsAndLeaguesView", b =>
|
|
{
|
|
b.Property<string>("LeagueName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.ToTable((string)null);
|
|
|
|
b.ToView("vw_TeamsAndLeagues", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Match", b =>
|
|
{
|
|
b.HasOne("EntityFrameworkCore.Domain.Team", "AwayTeam")
|
|
.WithMany("AwayMatches")
|
|
.HasForeignKey("AwayTeamId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntityFrameworkCore.Domain.Team", "HomeTeam")
|
|
.WithMany("HomeMatches")
|
|
.HasForeignKey("HomeTeamId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("AwayTeam");
|
|
|
|
b.Navigation("HomeTeam");
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Team", b =>
|
|
{
|
|
b.HasOne("EntityFrameworkCore.Domain.Coach", "Coach")
|
|
.WithOne("Team")
|
|
.HasForeignKey("EntityFrameworkCore.Domain.Team", "CoachId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("EntityFrameworkCore.Domain.League", "League")
|
|
.WithMany("Teams")
|
|
.HasForeignKey("LeagueId");
|
|
|
|
b.Navigation("Coach");
|
|
|
|
b.Navigation("League");
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Coach", b =>
|
|
{
|
|
b.Navigation("Team");
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.League", b =>
|
|
{
|
|
b.Navigation("Teams");
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Team", b =>
|
|
{
|
|
b.Navigation("AwayMatches");
|
|
|
|
b.Navigation("HomeMatches");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|