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>
/// AncestorId configuration.
/// </summary>
public class AncestorIdConfiguration : IEntityTypeConfiguration<AncestorId>
{
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<AncestorId> builder)
{
builder.HasKey(e => new { e.ItemId, e.Id });
builder.HasIndex(e => e.Id);
builder.HasIndex(e => new { e.ItemId, e.AncestorIdText });
}
}