using System;
using Jellyfin.Data.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Jellyfin.Server.Implementations.ModelConfiguration;
/// 
/// Chapter configuration.
/// 
public class ChapterConfiguration : IEntityTypeConfiguration
{
    /// 
    public void Configure(EntityTypeBuilder builder)
    {
        builder.HasKey(e => new { e.ItemId, e.ChapterIndex });
        builder.HasOne(e => e.Item);
    }
}