WIP move baseitem to jellyfin.db

This commit is contained in:
JPVenson
2024-09-08 16:56:14 +00:00
committed by GitHub
parent d0b4b2ddb3
commit ee1bdf4e22
16 changed files with 1320 additions and 1646 deletions

View File

@@ -0,0 +1,20 @@
using System;
using Jellyfin.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Jellyfin.Server.Implementations.ModelConfiguration;
/// <summary>
/// itemvalues Configuration.
/// </summary>
public class ItemValuesConfiguration : IEntityTypeConfiguration<ItemValue>
{
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<ItemValue> builder)
{
builder.HasNoKey();
builder.HasIndex(e => new { e.ItemId, e.Type, e.CleanValue });
builder.HasIndex(e => new { e.ItemId, e.Type, e.Value });
}
}