using Microsoft.EntityFrameworkCore; using static Microsoft.EntityFrameworkCore.DbLoggerCategory; using UserMicroservice.Migrations; namespace UserMicroservice.Models { public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } public DbSet<User> Users { get; set; } public DbSet<RefreshToken> RefreshTokens { get; set; } // use the commands to update the db // dotnet ef migrations add AddNewModelTable // dotnet ef database update protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); // Model configuration goes here } } }