You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
750 B
23 lines
750 B
using System;
|
|
using Jellyfin.Data.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace Jellyfin.Server.Implementations.ModelConfiguration;
|
|
|
|
/// <summary>
|
|
/// People configuration.
|
|
/// </summary>
|
|
public class MediaStreamInfoConfiguration : IEntityTypeConfiguration<MediaStreamInfo>
|
|
{
|
|
/// <inheritdoc/>
|
|
public void Configure(EntityTypeBuilder<MediaStreamInfo> builder)
|
|
{
|
|
builder.HasKey(e => new { e.ItemId, e.StreamIndex });
|
|
builder.HasIndex(e => e.StreamIndex);
|
|
builder.HasIndex(e => e.StreamType);
|
|
builder.HasIndex(e => new { e.StreamIndex, e.StreamType });
|
|
builder.HasIndex(e => new { e.StreamIndex, e.StreamType, e.Language });
|
|
}
|
|
}
|