using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using vita_asistente.Data.Models; using vita_asistente.Models; namespace vita_asistente.Data { public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { } // DbSet for Paciente model public DbSet Pacientes { get; set; } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity().ToTable("AspNetUsers"); builder.Entity() .ToTable("Pacientes") .HasBaseType(); } } }