mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-25 20:48:07 +00:00
Add device indexes
This commit is contained in:
@@ -211,6 +211,13 @@ namespace Jellyfin.Server.Implementations
|
||||
.HasIndex(entity => entity.Username)
|
||||
.IsUnique();
|
||||
|
||||
modelBuilder.Entity<Device>()
|
||||
.HasIndex(entity => new { entity.DeviceId, entity.DateLastActivity });
|
||||
|
||||
modelBuilder.Entity<DeviceOptions>()
|
||||
.HasIndex(entity => entity.DeviceId)
|
||||
.IsUnique();
|
||||
|
||||
modelBuilder.Entity<DisplayPreferences>()
|
||||
.HasIndex(entity => new { entity.UserId, entity.ItemId, entity.Client })
|
||||
.IsUnique();
|
||||
|
||||
Reference in New Issue
Block a user