This reverts commit b75f005bb4.
This commit is contained in:
committed by
GitHub
parent
1cd6c19fda
commit
764010fea0
@@ -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!;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user