20 lines
664 B
C#
20 lines
664 B
C#
using DD.Persistence.Database.EntityAbstractions;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DD.Persistence.Database.Entity;
|
|
|
|
[PrimaryKey(nameof(DiscriminatorId), nameof(Timestamp))]
|
|
public class TimestampedValues : ITimestampedItem
|
|
{
|
|
[Comment("Временная отметка"), Key]
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
|
|
[Comment("Дискриминатор системы"),]
|
|
public Guid DiscriminatorId { get; set; }
|
|
|
|
[Comment("Данные"), Column(TypeName = "jsonb")]
|
|
public required object[] Values { get; set; }
|
|
}
|