IW4M-Admin/Data/Models/EFPenaltyIdentifier.cs

23 lines
505 B
C#
Raw Normal View History

2022-02-22 18:09:50 -05:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Stats.Models;
2022-02-22 18:09:50 -05:00
namespace Data.Models;
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; }
}