Updated DB to use refresh tokens, added migration

This commit is contained in:
Veljko Tosic
2026-02-14 18:49:11 +01:00
parent 6b0a97e617
commit cbc27238ad
4 changed files with 592 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Identity;
using AipsCore.Infrastructure.Persistence.Authentication.RefreshToken;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
@@ -6,6 +7,8 @@ namespace AipsCore.Infrastructure.Persistence.Db;
public class AipsDbContext : IdentityDbContext<User.User, IdentityRole<Guid>, Guid>
{
public DbSet<RefreshToken> RefreshTokens { get; set; }
public DbSet<Whiteboard.Whiteboard> Whiteboards { get; set; }
public DbSet<Shape.Shape> Shapes { get; set; }
public DbSet<WhiteboardMembership.WhiteboardMembership> WhiteboardMemberships { get; set; }