|
|
@ -149,18 +149,10 @@ namespace Jellyfin.Server.Implementations
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.HasDefaultSchema("jellyfin");
|
|
|
|
modelBuilder.HasDefaultSchema("jellyfin");
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<DisplayPreferences>()
|
|
|
|
|
|
|
|
.HasIndex(entity => entity.UserId)
|
|
|
|
|
|
|
|
.IsUnique(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<DisplayPreferences>()
|
|
|
|
modelBuilder.Entity<DisplayPreferences>()
|
|
|
|
.HasIndex(entity => new { entity.UserId, entity.ItemId, entity.Client })
|
|
|
|
.HasIndex(entity => new { entity.UserId, entity.ItemId, entity.Client })
|
|
|
|
.IsUnique();
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<CustomItemDisplayPreferences>()
|
|
|
|
|
|
|
|
.HasIndex(entity => entity.UserId)
|
|
|
|
|
|
|
|
.IsUnique(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<CustomItemDisplayPreferences>()
|
|
|
|
modelBuilder.Entity<CustomItemDisplayPreferences>()
|
|
|
|
.HasIndex(entity => new { entity.UserId, entity.ItemId, entity.Client, entity.Key })
|
|
|
|
.HasIndex(entity => new { entity.UserId, entity.ItemId, entity.Client, entity.Key })
|
|
|
|
.IsUnique();
|
|
|
|
.IsUnique();
|
|
|
|