chat: add database types and auth middleware

This commit is contained in:
sam 2024-05-21 16:41:01 +02:00
parent 656eec81d8
commit 6f6e19bbb5
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
24 changed files with 1165 additions and 15 deletions

View file

@ -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)