mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
simplify ban process with new system
This commit is contained in:
21
Data/Models/EFPenaltyIdentifier.cs
Normal file
21
Data/Models/EFPenaltyIdentifier.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Data.Models;
|
||||
|
||||
public class EFPenaltyIdentifier : SharedEntity
|
||||
{
|
||||
[Key]
|
||||
public int PenaltyIdentifierId { get; set; }
|
||||
|
||||
public int? IPv4Address { get; set; }
|
||||
|
||||
[Required]
|
||||
public long NetworkId { get; set; }
|
||||
|
||||
[Required]
|
||||
public int PenaltyId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(PenaltyId))]
|
||||
public EFPenalty Penalty { get; set; }
|
||||
}
|
Reference in New Issue
Block a user