using API.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace API.Database; public class ApplicationDbContext(DbContextOptions options) : IdentityDbContext, Guid>(options) { protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.ApplyConfigurationsFromAssembly(typeof(ApplicationDbContext).Assembly); builder.Entity>().ToTable("Roles"); builder.Entity>().ToTable("UserRoles"); builder.Entity>().ToTable("UserClaims"); builder.Entity>().ToTable("UserLogins"); builder.Entity>().ToTable("RoleClaims"); builder.Entity>().ToTable("UserTokens"); } }