23 lines
730 B
C#
23 lines
730 B
C#
using DD.Persistence.Database.EntityAbstractions;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DD.Persistence.Database.Model
|
|
{
|
|
[PrimaryKey(nameof(Key), nameof(Timestamp))]
|
|
public class Setpoint : ITimestampedItem
|
|
{
|
|
[Comment("Ключ")]
|
|
public Guid Key { get; set; }
|
|
|
|
[Column(TypeName = "jsonb"), Comment("Значение уставки")]
|
|
public required object Value { get; set; }
|
|
|
|
[Comment("Дата создания уставки")]
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
|
|
[Comment("Id автора последнего изменения")]
|
|
public Guid IdUser { get; set; }
|
|
}
|
|
}
|