2025-01-16 17:19:27 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace DD.Persistence.Database.Entity;
|
|
|
|
|
|
2025-01-20 17:11:44 +05:00
|
|
|
|
public class DataScheme
|
2025-01-16 17:19:27 +05:00
|
|
|
|
{
|
2025-01-22 16:13:56 +05:00
|
|
|
|
[Key, Comment("Идентификатор схемы данных"),]
|
2025-01-16 17:19:27 +05:00
|
|
|
|
public Guid DiscriminatorId { get; set; }
|
|
|
|
|
|
2025-01-20 17:11:44 +05:00
|
|
|
|
[Comment("Наименования полей в порядке индексации"), Column(TypeName = "jsonb")]
|
|
|
|
|
public string[] PropNames { get; set; } = [];
|
2025-01-16 17:19:27 +05:00
|
|
|
|
}
|