43 lines
1008 B
C#
43 lines
1008 B
C#
|
namespace Persistence.Models;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Часть записи описывающая изменение
|
||
|
/// </summary>
|
||
|
public class ChangeLogDto<T> where T: class
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Запись
|
||
|
/// </summary>
|
||
|
public required T Item { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Автор
|
||
|
/// </summary>
|
||
|
public UserDto? Author { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Автор
|
||
|
/// </summary>
|
||
|
public UserDto? Editor { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Дата создания записи
|
||
|
/// </summary>
|
||
|
public DateTimeOffset Creation { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Дата устаревания (например при удалении)
|
||
|
/// </summary>
|
||
|
public DateTimeOffset? Obsolete { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id состояния
|
||
|
/// </summary>
|
||
|
public int IdState { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id заменяемой записи
|
||
|
/// </summary>
|
||
|
public int? IdPrevious { get; set; }
|
||
|
}
|