using Deal.Infrastructure.Persistence.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Deal.Infrastructure.Persistence.Configurations;
///
/// EF-конфигурация кандидата Discovery
///
public sealed class DiscCandidateConfiguration : IEntityTypeConfiguration
{
public void Configure(EntityTypeBuilder builder)
{
builder.ToTable("DiscCandidates");
builder.HasKey(x => x.DialogId);
builder.Property(x => x.MarksJson).HasColumnType("text");
builder.Property(x => x.TopicsJson).HasColumnType("text");
builder.HasIndex(x => new { x.TaskId, x.Status });
}
}