All checks were successful
Unit tests / test (push) Successful in 1m0s
23 lines
686 B
C#
23 lines
686 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json;
|
|
|
|
namespace DD.Persistence.Database.Model
|
|
{
|
|
[PrimaryKey(nameof(Key), nameof(Created))]
|
|
public class Setpoint
|
|
{
|
|
[Comment("Ключ")]
|
|
public Guid Key { get; set; }
|
|
|
|
[Column(TypeName = "jsonb"), Comment("Значение уставки")]
|
|
public required JsonElement Value { get; set; }
|
|
|
|
[Comment("Дата создания уставки")]
|
|
public DateTimeOffset Created { get; set; }
|
|
|
|
[Comment("Id автора последнего изменения")]
|
|
public Guid IdUser { get; set; }
|
|
}
|
|
}
|