first commit

This commit is contained in:
2025-02-26 23:42:19 +01:00
commit 777ea98be1
283 changed files with 88266 additions and 0 deletions
@@ -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; }
}
}