modelBuilder.Entity("Server.Database.Models.Score", b =>
{
b.HasOne("Server.Database.Models.Player", "Player")
.WithMany("Scores")
.HasForeignKey("PlayerID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Server.Database.Models.SongDifficulty", "SongDifficulty")
.WithMany()
.HasForeignKey("SongDifficultyID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.OwnsOne("Server.Database.Models.Trackers", "Trackers", b1 =>
{
b1.Property<uint>("ScoreID")
.HasColumnType("int unsigned");
b1.Property<uint?>("AccuracyTrackerScoreID")
.HasColumnType("int unsigned");
b1.Property<uint?>("GraphTrackerScoreID")
.HasColumnType("int unsigned");
b1.Property<uint?>("HitTrackerScoreID")
.HasColumnType("int unsigned");
b1.Property<uint?>("WinTrackerScoreID")
.HasColumnType("int unsigned");
b1.HasKey("ScoreID");
b1.HasIndex("AccuracyTrackerScoreID");
b1.HasIndex("GraphTrackerScoreID");
b1.HasIndex("HitTrackerScoreID");
b1.HasIndex("WinTrackerScoreID");
b1.ToTable("Scores");
b1.HasOne("Server.Database.Models.AccuracyTracker", "AccuracyTracker")
.WithMany()
.HasForeignKey("AccuracyTrackerScoreID");
b1.HasOne("Server.Database.Models.ScoreGraphTracker", "GraphTracker")
.WithMany()
.HasForeignKey("GraphTrackerScoreID");
b1.HasOne("Server.Database.Models.HitTracker", "HitTracker")
.WithMany()
.HasForeignKey("HitTrackerScoreID");
b1.WithOwner()
.HasForeignKey("ScoreID");
b1.HasOne("Server.Database.Models.WinTracker", "WinTracker")
.WithMany()
.HasForeignKey("WinTrackerScoreID");
b1.Navigation("AccuracyTracker");
b1.Navigation("GraphTracker");
b1.Navigation("HitTracker");
b1.Navigation("WinTracker");
});
b.Navigation("Player");
b.Navigation("SongDifficulty");
b.Navigation("Trackers")
.IsRequired();
});