Revert "Log ban hits in DB. (#6337)" (#6357)

This reverts commit b75f005bb4.
This commit is contained in:
Pieter-Jan Briers
2022-01-28 19:33:09 +01:00
committed by GitHub
parent 1cd6c19fda
commit 764010fea0
13 changed files with 39 additions and 2150 deletions

View File

@@ -40,7 +40,6 @@ namespace Content.Server.Database
public DbSet<ServerBan> Ban { get; set; } = default!;
public DbSet<ServerUnban> Unban { get; set; } = default!;
public DbSet<ConnectionLog> ConnectionLog { get; set; } = default!;
public DbSet<ServerBanHit> ServerBanHit { get; set; } = default!;
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
@@ -347,8 +346,6 @@ namespace Content.Server.Database
public Guid? BanningAdmin { get; set; }
public ServerUnban? Unban { get; set; }
public List<ServerBanHit> BanHits { get; set; } = null!;
}
[Table("server_unban")]
@@ -376,27 +373,5 @@ namespace Content.Server.Database
public IPAddress Address { get; set; } = null!;
public byte[]? HWId { get; set; }
public ConnectionDenyReason? Denied { get; set; }
public List<ServerBanHit> BanHits { get; set; } = null!;
}
public enum ConnectionDenyReason : byte
{
Ban = 0,
Whitelist = 1,
Full = 2,
}
public class ServerBanHit
{
public int Id { get; set; }
public int BanId { get; set; }
public int ConnectionId { get; set; }
public ServerBan Ban { get; set; } = null!;
public ConnectionLog Connection { get; set; } = null!;
}
}