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
|
|
|
|
2024-12-16 15:38:46 +05:00
|
|
|
namespace DD.Persistence.Database.Model
|
2024-11-18 09:39:24 +05:00
|
|
|
{
|
2024-12-26 17:23:50 +05:00
|
|
|
[Table("setpoint")]
|
2025-01-13 17:45:49 +05:00
|
|
|
[PrimaryKey(nameof(Key), nameof(Timestamp))]
|
|
|
|
public class Setpoint : ITimestampedItem
|
2024-12-09 13:19:55 +05:00
|
|
|
{
|
|
|
|
[Comment("Ключ")]
|
|
|
|
public Guid Key { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2024-12-09 13:19:55 +05:00
|
|
|
[Column(TypeName = "jsonb"), Comment("Значение уставки")]
|
2025-01-17 13:54:26 +05:00
|
|
|
public required JsonElement Value { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2024-12-09 13:19:55 +05:00
|
|
|
[Comment("Дата создания уставки")]
|
2025-01-13 17:45:49 +05:00
|
|
|
public DateTimeOffset Timestamp { get; set; }
|
2024-11-18 09:39:24 +05:00
|
|
|
|
2024-12-09 13:19:55 +05:00
|
|
|
[Comment("Id автора последнего изменения")]
|
|
|
|
public Guid IdUser { get; set; }
|
|
|
|
}
|
2024-11-18 09:39:24 +05:00
|
|
|
}
|