mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
Added EF BaseItem migration
This commit is contained in:
@@ -13,8 +13,7 @@ public class UserDataConfiguration : IEntityTypeConfiguration<UserData>
|
||||
/// <inheritdoc/>
|
||||
public void Configure(EntityTypeBuilder<UserData> builder)
|
||||
{
|
||||
builder.HasNoKey();
|
||||
builder.HasIndex(d => new { d.Key, d.UserId }).IsUnique();
|
||||
builder.HasKey(d => new { d.Key, d.UserId });
|
||||
builder.HasIndex(d => new { d.Key, d.UserId, d.Played });
|
||||
builder.HasIndex(d => new { d.Key, d.UserId, d.PlaybackPositionTicks });
|
||||
builder.HasIndex(d => new { d.Key, d.UserId, d.IsFavorite });
|
||||
|
||||
Reference in New Issue
Block a user