using GroupService.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace GroupService.Infrastructure.Configs { public class GroupMemberConfig : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("group_members"); builder.HasIndex(x => new { x.UserId, x.IsDeleted, x.GroupId }); builder.HasIndex(x => new { x.GroupId, x.IsDeleted, x.Role }); } } }