using ContactService.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace ContactService.Infrastructure.Configs { public class FriendRequestConfig : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("friend_requests"); builder.HasKey(x => x.Id); builder.HasIndex(x => new { x.OwnerId, x.TargetId }); } } }