Проведен аудит. Добавлено переключение треков
This commit is contained in:
@@ -90,6 +90,12 @@ public class ApplicationDbContext : IdentityDbContext<ApplicationUser, IdentityR
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
|
||||
builder.Entity<ApplicationUser>(entity =>
|
||||
{
|
||||
entity.HasIndex(e => e.RefreshToken)
|
||||
.HasDatabaseName("IX_AspNetUsers_RefreshToken");
|
||||
});
|
||||
|
||||
builder.Entity<FavoritePlaylist>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.UserId, e.SharedPlaylistId });
|
||||
@@ -128,10 +134,12 @@ public class ApplicationDbContext : IdentityDbContext<ApplicationUser, IdentityR
|
||||
entity.Property(e => e.TrackId)
|
||||
.HasMaxLength(100)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.CsfrToken)
|
||||
entity.Property(e => e.CsrfToken)
|
||||
.HasColumnName("CsfrToken")
|
||||
.HasMaxLength(200)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.HeaderCsfrToken)
|
||||
entity.Property(e => e.HeaderCsrfToken)
|
||||
.HasColumnName("HeaderCsfrToken")
|
||||
.HasMaxLength(200)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.HeaderProcessId)
|
||||
|
||||
Reference in New Issue
Block a user