chat: add database types and auth middleware
This commit is contained in:
parent
656eec81d8
commit
6f6e19bbb5
24 changed files with 1165 additions and 15 deletions
|
@ -11,9 +11,9 @@ public class IdentityContext : IDatabaseContext
|
|||
{
|
||||
private readonly NpgsqlDataSource _dataSource;
|
||||
|
||||
public override DbSet<Instance> Instance { get; set; }
|
||||
public DbSet<Account> Accounts { get; set; }
|
||||
public DbSet<ChatInstance> ChatInstances { get; set; }
|
||||
public override DbSet<Instance> Instance { get; set; }
|
||||
public DbSet<Application> Applications { get; set; }
|
||||
public DbSet<Token> Tokens { get; set; }
|
||||
public DbSet<GuildAccount> GuildAccounts { get; set; }
|
||||
|
@ -55,6 +55,7 @@ public class IdentityContext : IDatabaseContext
|
|||
}
|
||||
}
|
||||
|
||||
// ReSharper disable once UnusedType.Global
|
||||
public class DesignTimeIdentityContextFactory : IDesignTimeDbContextFactory<IdentityContext>
|
||||
{
|
||||
public IdentityContext CreateDbContext(string[] args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue