fix permission table
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 4s
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 4s
This commit is contained in:
@@ -14,4 +14,12 @@ public class AppDbContext : IdentityDbContext<User> {
|
||||
public DbSet<Item> Items { get; set; }
|
||||
public DbSet<RefreshToken> RefreshTokens { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder) {
|
||||
|
||||
base.OnModelCreating(builder);
|
||||
|
||||
builder.Entity<User>().Property(u => u.Permissions).HasColumnType("jsonb");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user