using LINGYUN.Abp.Gdpr; using LINGYUN.Abp.Gdpr.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.Identity; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.OpenIddict.Applications; using Volo.Abp.OpenIddict.Authorizations; using Volo.Abp.OpenIddict.EntityFrameworkCore; using Volo.Abp.OpenIddict.Scopes; using Volo.Abp.OpenIddict.Tokens; namespace LINGYUN.Abp.MicroService.AuthServer; [ConnectionStringName("Default")] public class AuthServerMigrationsDbContext : AbpDbContext, IIdentityDbContext, IOpenIddictDbContext, IGdprDbContext { public DbSet Requests { get; set; } public DbSet Applications { get; set; } public DbSet Authorizations { get; set; } public DbSet Scopes { get; set; } public DbSet Tokens { get; set; } public DbSet Users { get; set; } public DbSet Roles { get; set; } public DbSet ClaimTypes { get; set; } public DbSet OrganizationUnits { get; set; } public DbSet SecurityLogs { get; set; } public DbSet LinkUsers { get; set; } public DbSet UserDelegations { get; set; } public DbSet Sessions { get; set; } public AuthServerMigrationsDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.ConfigureIdentity(); modelBuilder.ConfigureOpenIddict(); modelBuilder.ConfigureGdpr(); } }