a786541484
fixed the max length migration for MySQL configure the python projects to be able to be published from command line optimize find active pentalties query add feature for issue #38 testing fix for concurrent dict access (in stats plugin)
31 lines
870 B
C#
31 lines
870 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace SharedLibraryCore.Database.Models
|
|
{
|
|
/// <summary>
|
|
/// This class models the change to different entities
|
|
/// </summary>
|
|
public class EFChangeHistory : SharedEntity
|
|
{
|
|
public enum ChangeType
|
|
{
|
|
Permission,
|
|
Ban
|
|
}
|
|
|
|
[Key]
|
|
public int ChangeHistoryId { get; set; }
|
|
public int OriginEntityId { get; set; }
|
|
public int TargetEntityId { 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; }
|
|
}
|
|
}
|