2025-02-05 14:30:36 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2025-01-16 17:19:27 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2025-02-05 14:30:36 +05:00
|
|
|
|
using System.Text.Json;
|
2025-01-16 17:19:27 +05:00
|
|
|
|
|
|
|
|
|
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-01-16 17:19:27 +05:00
|
|
|
|
{
|
2025-02-05 14:30:36 +05:00
|
|
|
|
[Comment("Идентификатор схемы данных")]
|
2025-01-16 17:19:27 +05:00
|
|
|
|
public Guid DiscriminatorId { get; set; }
|
|
|
|
|
|
2025-02-05 14:30:36 +05:00
|
|
|
|
[Comment("Индекс поля")]
|
|
|
|
|
public int Index { get; set; }
|
2025-02-05 09:56:49 +05:00
|
|
|
|
|
2025-02-05 14:30:36 +05:00
|
|
|
|
[Comment("Наименования индексируемого поля")]
|
|
|
|
|
public required string PropName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Comment("Тип индексируемого поля")]
|
|
|
|
|
public required JsonValueKind PropKind { get; set; }
|
2025-01-16 17:19:27 +05:00
|
|
|
|
}
|