22 lines
721 B
C#
22 lines
721 B
C#
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
|||
|
namespace Persistence.Database.Entity;
|
|||
|
|
|||
|
[PrimaryKey(nameof(DiscriminatorId), nameof(ParameterId), nameof(Timestamp))]
|
|||
|
public class ParameterData
|
|||
|
{
|
|||
|
[Required, Comment("Дискриминатор системы")]
|
|||
|
public int DiscriminatorId { get; set; }
|
|||
|
|
|||
|
[Comment("Id параметра")]
|
|||
|
public int ParameterId { get; set; }
|
|||
|
|
|||
|
[Column(TypeName = "varchar(256)"), Comment("Значение параметра в виде строки")]
|
|||
|
public required string Value { get; set; }
|
|||
|
|
|||
|
[Comment("Временная отметка")]
|
|||
|
public DateTimeOffset Timestamp { get; set; }
|
|||
|
}
|