using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace AutobusApi.Infrastructure.Identity.Configurations; public class IdentityUserRoleConfiguration : IEntityTypeConfiguration> { public void Configure(EntityTypeBuilder> builder) { builder .ToTable("identity_user_roles"); builder .Property(ur => ur.UserId) .HasColumnName("user_id"); builder .Property(ur => ur.RoleId) .HasColumnName("role_id"); } }