23 lines
704 B
C#
23 lines
704 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json;
|
|
|
|
namespace DD.Persistence.Database.Entity;
|
|
|
|
[Table("prop_scheme")]
|
|
[PrimaryKey(nameof(DiscriminatorId), nameof(Index))]
|
|
public class PropScheme
|
|
{
|
|
[Comment("Идентификатор схемы данных")]
|
|
public Guid DiscriminatorId { get; set; }
|
|
|
|
[Comment("Индекс поля")]
|
|
public int Index { get; set; }
|
|
|
|
[Comment("Наименования индексируемого поля")]
|
|
public required string PropName { get; set; }
|
|
|
|
[Comment("Тип индексируемого поля")]
|
|
public required JsonValueKind PropKind { get; set; }
|
|
}
|