using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using RecNet.Domain.Entities.Configuration; namespace RecNet.Infrastructure.Persistence.Configurations; public class ServerConfigConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(x => x.Key); builder.Property(x => x.Key) .HasMaxLength(128) .IsRequired(); builder.Property(x => x.Value) .HasColumnType("jsonb") .IsRequired(); } }