2022-02-22 18:09:50 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2022-02-23 10:02:01 -05:00
|
|
|
|
using Stats.Models;
|
2022-02-22 18:09:50 -05:00
|
|
|
|
|
|
|
|
|
namespace Data.Models;
|
|
|
|
|
|
2022-02-23 10:02:01 -05:00
|
|
|
|
public class EFPenaltyIdentifier : AuditFields
|
2022-02-22 18:09:50 -05:00
|
|
|
|
{
|
|
|
|
|
[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; }
|
|
|
|
|
}
|