2024-11-25 10:05:23 +05:00
|
|
|
|
|
2024-11-26 11:47:42 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
2024-11-25 10:05:23 +05:00
|
|
|
|
namespace Persistence.Database.Model;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-26 14:19:16 +05:00
|
|
|
|
/// Часть записи, описывающая изменение
|
2024-11-25 10:05:23 +05:00
|
|
|
|
/// </summary>
|
2024-11-25 18:11:46 +05:00
|
|
|
|
public interface IChangeLog
|
2024-11-25 10:05:23 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
|
/// Ключ записи
|
2024-11-25 10:05:23 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Автор изменения
|
|
|
|
|
/// </summary>
|
2024-11-25 18:11:46 +05:00
|
|
|
|
public Guid IdAuthor { get; set; }
|
2024-11-25 10:05:23 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Редактор
|
|
|
|
|
/// </summary>
|
2024-11-25 18:11:46 +05:00
|
|
|
|
public Guid? IdEditor { get; set; }
|
2024-11-25 10:05:23 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата создания записи
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset Creation { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата устаревания (например при удалении)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? Obsolete { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id заменяющей записи
|
|
|
|
|
/// </summary>
|
2024-11-25 18:11:46 +05:00
|
|
|
|
public Guid? IdNext { get; set; }
|
2024-11-25 10:05:23 +05:00
|
|
|
|
|
2024-11-26 11:47:42 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дискриминатор таблицы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid IdDiscriminator { get; set; }
|
|
|
|
|
|
2024-11-25 10:05:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Значение
|
|
|
|
|
/// </summary>
|
2024-11-26 11:47:42 +05:00
|
|
|
|
public IDictionary<string, object> Value { get; set; }
|
2024-11-25 10:05:23 +05:00
|
|
|
|
}
|