2025-01-13 17:45:49 +05:00
|
|
|
|
using DD.Persistence.Database.EntityAbstractions;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2024-12-12 16:56:25 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-12-04 14:13:25 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
2024-12-16 15:38:46 +05:00
|
|
|
|
namespace DD.Persistence.Database.Entity;
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
|
|
|
|
[PrimaryKey(nameof(DiscriminatorId), nameof(ParameterId), nameof(Timestamp))]
|
2025-01-13 17:45:49 +05:00
|
|
|
|
public class ParameterData : ITimestampedItem
|
2024-12-04 14:13:25 +05:00
|
|
|
|
{
|
2024-12-12 16:56:25 +05:00
|
|
|
|
[Required, Comment("Дискриминатор системы")]
|
|
|
|
|
public Guid DiscriminatorId { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
[Comment("Id параметра")]
|
|
|
|
|
public int ParameterId { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
[Column(TypeName = "varchar(256)"), Comment("Значение параметра в виде строки")]
|
|
|
|
|
public required string Value { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
[Comment("Временная отметка")]
|
|
|
|
|
public DateTimeOffset Timestamp { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
}
|