2024-11-25 10:05:23 +05:00
|
|
|
|
2024-10-31 17:02:48 +05:00
|
|
|
namespace Persistence.Models;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Часть записи описывающая изменение
|
|
|
|
/// </summary>
|
2024-11-25 18:11:46 +05:00
|
|
|
public class ChangeLogDto<T> : IChangeLogDto
|
2024-11-26 11:47:42 +05:00
|
|
|
where T: IDictionary<string, object>
|
2024-10-31 17:02:48 +05:00
|
|
|
{
|
2024-11-26 11:47:42 +05:00
|
|
|
public ChangeLogDto()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2024-10-31 17:02:48 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Запись
|
|
|
|
/// </summary>
|
|
|
|
public required T Item { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-25 10:05:23 +05:00
|
|
|
///
|
|
|
|
/// </summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
public Guid Id { get; set; }
|
2024-11-25 10:05:23 +05:00
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
/// Создатель записи
|
2024-10-31 17:02:48 +05:00
|
|
|
/// </summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
public Guid IdAuthor { get; set; }
|
2024-10-31 17:02:48 +05:00
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
/// Пользователь, изменивший запись
|
2024-10-31 17:02:48 +05:00
|
|
|
/// </summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
public Guid? IdEditor { get; set; }
|
2024-10-31 17:02:48 +05:00
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
/// Дата создания
|
2024-10-31 17:02:48 +05:00
|
|
|
/// </summary>
|
|
|
|
public DateTimeOffset Creation { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
/// Дата устаревания
|
2024-10-31 17:02:48 +05:00
|
|
|
/// </summary>
|
|
|
|
public DateTimeOffset? Obsolete { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
/// Ключ следующей записи
|
2024-10-31 17:02:48 +05:00
|
|
|
/// </summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
public Guid? IdNext { get; set; }
|
2024-10-31 17:02:48 +05:00
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
/// Объект записи
|
2024-10-31 17:02:48 +05:00
|
|
|
/// </summary>
|
2024-11-25 10:05:23 +05:00
|
|
|
public required object Value { get; set; }
|
2024-10-31 17:02:48 +05:00
|
|
|
}
|