Skip to content

Commit

Permalink
missed some more database stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Mar 25, 2024
1 parent 4686a71 commit cd0e6d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Navigation("Profile");
});

modelBuilder.Entity("Content.Server.Database.Loadout", b =>
{
b.HasOne("Content.Server.Database.Profile", "Profile")
.WithMany("Loadouts")
.HasForeignKey("ProfileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("FK_loadout_profile_profile_id");
b.Navigation("Profile");
});

modelBuilder.Entity("PlayerRound", b =>
{
b.HasOne("Content.Server.Database.Player", null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Navigation("Profile");
});

modelBuilder.Entity("Content.Server.Database.Loadout", b =>
{
b.HasOne("Content.Server.Database.Profile", "Profile")
.WithMany("Loadouts")
.HasForeignKey("ProfileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("FK_loadout_profile_profile_id");
b.Navigation("Profile");
});

modelBuilder.Entity("PlayerRound", b =>
{
b.HasOne("Content.Server.Database.Player", null)
Expand Down

0 comments on commit cd0e6d6

Please sign in to comment.