using AccountManagement.Domain.AccountAgg; using AccountManagement.Domain.TaskSubjectAgg; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace AccountMangement.Infrastructure.EFCore.Mappings; public class TaskSubjectMapping : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("TaskSubjects"); builder.HasKey(x=>x.id); builder.Property(x => x.Subject).HasMaxLength(100).IsRequired(); } }