mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add device indexes
This commit is contained in:
parent
e6f1ffdc8d
commit
98e19c9fd3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user