first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
|
||||
|
||||
namespace OpenWarehouse.auth.api.Data
|
||||
{
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string>, IDataProtectionKeyContext
|
||||
{
|
||||
|
||||
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<ApplicationUser> ApplicationUsers { get; set; }
|
||||
public virtual DbSet<ApplicationRole> ApplicationRoles { get; set; }
|
||||
public DbSet<ApplicationUserTokenRepository> ApplicationUserTokenRepositories { get; set; }
|
||||
public DbSet<RegisterToken> RegisterTokens { get; set; }
|
||||
public DbSet<RolePrivilage> RolePrivilages { get; set; }
|
||||
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user