Fix admin log indices. (#7920)

This commit is contained in:
Pieter-Jan Briers
2022-05-04 16:18:55 +02:00
committed by GitHub
parent faec39da2b
commit fc119befca
8 changed files with 2521 additions and 0 deletions

View File

@@ -91,6 +91,9 @@ namespace Content.Server.Database
.Property(log => log.Id)
.ValueGeneratedOnAdd();
modelBuilder.Entity<AdminLog>()
.HasIndex(log => log.Date);
modelBuilder.Entity<AdminLogPlayer>()
.HasOne(player => player.Player)
.WithMany(player => player.AdminLogs)