using Jellyfin.Database.Implementations.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Jellyfin.Database.Implementations.ModelConfiguration; /// /// itemvalues Configuration. /// public class ItemValuesConfiguration : IEntityTypeConfiguration { /// public void Configure(EntityTypeBuilder builder) { builder.HasKey(e => e.ItemValueId); builder.HasIndex(e => new { e.Type, e.CleanValue }); builder.HasIndex(e => new { e.Type, e.Value }).IsUnique(); } }