using Deal.Infrastructure.Persistence.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Deal.Infrastructure.Persistence.Configurations; /// /// EF-конфигурация тенанта /// public sealed class TenantConfiguration : IEntityTypeConfiguration { private const int NameMaxLength = 200; public void Configure(EntityTypeBuilder builder) { builder.ToTable("tenants", "public"); builder.HasKey(x => x.Id); builder.Property(x => x.Name).HasMaxLength(NameMaxLength).IsRequired(); } }