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