2025-01-22 17:12:18 +05:00
|
|
|
using DD.Persistence.Database.EntityAbstractions;
|
2025-01-13 17:45:49 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2024-12-09 13:19:55 +05:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2025-01-17 13:54:26 +05:00
|
|
|
using System.Text.Json;
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2025-01-23 12:46:34 +05:00
|
|
|
namespace DD.Persistence.Database.Entity;
|
|
|
|
|
|
|
|
[Table("setpoint")]
|
|
|
|
[PrimaryKey(nameof(Key), nameof(Timestamp))]
|
|
|
|
public class Setpoint : ITimestampedItem
|
2024-11-18 09:39:24 +05:00
|
|
|
{
|
2025-01-23 12:46:34 +05:00
|
|
|
[Comment("Ключ")]
|
|
|
|
public Guid Key { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2025-01-23 12:46:34 +05:00
|
|
|
[Column(TypeName = "jsonb"), Comment("Значение уставки")]
|
|
|
|
public required JsonElement Value { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2025-01-23 12:46:34 +05:00
|
|
|
[Comment("Дата создания уставки")]
|
|
|
|
public DateTimeOffset Timestamp { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2025-01-23 12:46:34 +05:00
|
|
|
[Comment("Id автора последнего изменения")]
|
|
|
|
public Guid IdUser { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
}
|