using Deal.Infrastructure.Persistence.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Deal.Infrastructure.Persistence.Configurations;
///
/// EF-конфигурация лога Discovery
///
public sealed class DiscLogConfiguration : IEntityTypeConfiguration
{
public void Configure(EntityTypeBuilder builder)
{
builder.ToTable("DiscLog");
builder.HasKey(x => x.Id);
builder.HasIndex(x => new { x.TaskId, x.CreatedAt });
}
}