2024-11-18 09:39:24 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace Persistence.Database.Model
|
|
|
|
|
{
|
|
|
|
|
[PrimaryKey(nameof(Key), nameof(Created))]
|
2024-11-18 15:05:12 +05:00
|
|
|
|
public class Setpoint
|
2024-11-18 09:39:24 +05:00
|
|
|
|
{
|
|
|
|
|
[Comment("Ключ")]
|
|
|
|
|
public Guid Key { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column(TypeName = "jsonb"), Comment("Значение уставки")]
|
|
|
|
|
public required object Value { get; set; }
|
|
|
|
|
|
2024-11-20 15:29:58 +05:00
|
|
|
|
[Comment("Дата создания уставки")]
|
2024-11-18 09:39:24 +05:00
|
|
|
|
public DateTimeOffset Created { get; set; }
|
|
|
|
|
|
|
|
|
|
[Comment("Id автора последнего изменения")]
|
|
|
|
|
public int IdUser { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|