You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.8 KiB
63 lines
1.8 KiB
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<AuthServerMigrationsDbContext>,
|
|
IIdentityDbContext,
|
|
IOpenIddictDbContext,
|
|
IGdprDbContext
|
|
{
|
|
public DbSet<GdprRequest> Requests { get; set; }
|
|
|
|
public DbSet<OpenIddictApplication> Applications { get; set; }
|
|
|
|
public DbSet<OpenIddictAuthorization> Authorizations { get; set; }
|
|
|
|
public DbSet<OpenIddictScope> Scopes { get; set; }
|
|
|
|
public DbSet<OpenIddictToken> Tokens { get; set; }
|
|
|
|
public DbSet<IdentityUser> Users { get; set; }
|
|
|
|
public DbSet<IdentityRole> Roles { get; set; }
|
|
|
|
public DbSet<IdentityClaimType> ClaimTypes { get; set; }
|
|
|
|
public DbSet<OrganizationUnit> OrganizationUnits { get; set; }
|
|
|
|
public DbSet<IdentitySecurityLog> SecurityLogs { get; set; }
|
|
|
|
public DbSet<IdentityLinkUser> LinkUsers { get; set; }
|
|
|
|
public DbSet<IdentityUserDelegation> UserDelegations { get; set; }
|
|
|
|
public DbSet<IdentitySession> Sessions { get; set; }
|
|
|
|
public AuthServerMigrationsDbContext(DbContextOptions<AuthServerMigrationsDbContext> options)
|
|
: base(options)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
|
|
modelBuilder.ConfigureIdentity();
|
|
modelBuilder.ConfigureOpenIddict();
|
|
modelBuilder.ConfigureGdpr();
|
|
}
|
|
}
|
|
|