1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 23:00:57 -05:00

huge commit for advanced stats feature.

broke data out into its own library.
may be breaking changes with existing plugins
This commit is contained in:
RaidMax
2021-03-22 11:09:25 -05:00
parent 267b045883
commit 434392a7e4
505 changed files with 13671 additions and 3271 deletions

View File

@ -0,0 +1,30 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Data.Models
{
/// <summary>
/// This class models the change to different entities
/// </summary>
public class EFChangeHistory : SharedEntity
{
public enum ChangeType
{
Permission,
Ban,
Command
}
[Key]
public int ChangeHistoryId { get; set; }
public int OriginEntityId { get; set; }
public int TargetEntityId { get; set; }
public int? ImpersonationEntityId { get; set; }
public ChangeType TypeOfChange { get; set; }
public DateTime TimeChanged { get; set; } = DateTime.UtcNow;
[MaxLength(128)]
public string Comment { get; set; }
public string PreviousValue { get; set; }
public string CurrentValue { get; set; }
}
}