persistence/DD.Persistence.Database/Entity/DataScheme.cs

23 lines
704 B
C#
Raw Normal View History

2025-02-05 14:30:36 +05:00
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
2025-02-05 14:30:36 +05:00
using System.Text.Json;
namespace DD.Persistence.Database.Entity;
2025-02-05 14:30:36 +05:00
[Table("prop_scheme")]
[PrimaryKey(nameof(DiscriminatorId), nameof(Index))]
public class PropScheme
{
2025-02-05 14:30:36 +05:00
[Comment("Идентификатор схемы данных")]
public Guid DiscriminatorId { get; set; }
2025-02-05 14:30:36 +05:00
[Comment("Индекс поля")]
public int Index { get; set; }
2025-02-05 14:30:36 +05:00
[Comment("Наименования индексируемого поля")]
public required string PropName { get; set; }
[Comment("Тип индексируемого поля")]
public required JsonValueKind PropKind { get; set; }
}