persistence/DD.Persistence.Database/Entity/ParameterData.cs
Roman Efremov ff95cad258
Some checks failed
Unit tests / test (push) Failing after 1m1s
Добавить партиционирование
2024-12-25 17:49:05 +05:00

23 lines
743 B
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DD.Persistence.Database.Entity;
[Table("parameter_data")]
[PrimaryKey(nameof(DiscriminatorId), nameof(ParameterId), nameof(Timestamp))]
public class ParameterData
{
[Required, Comment("Дискриминатор системы")]
public Guid DiscriminatorId { get; set; }
[Comment("Id параметра")]
public int ParameterId { get; set; }
[Column(TypeName = "jsonb"), Comment("Значение параметра")]
public required object Value { get; set; }
[Comment("Временная отметка")]
public DateTimeOffset Timestamp { get; set; }
}