Files
ersatztv/ErsatzTV.Infrastructure/Data/Configurations/Collection/JellyfinCollectionConfiguration.cs
T
Jason DoveandGitHub 14d2dd0c3a optimize jellyfin database fields and indexes (#2746)
* optimize jellyfin database fields and indexes

* copy paste
2025-12-31 14:30:53 -06:00

24 lines
652 B
C#

using ErsatzTV.Core.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace ErsatzTV.Infrastructure.Data.Configurations;
public class JellyfinCollectionConfiguration : IEntityTypeConfiguration<JellyfinCollection>
{
public void Configure(EntityTypeBuilder<JellyfinCollection> builder)
{
builder.ToTable("JellyfinCollection");
builder.Property(c => c.Etag)
.HasMaxLength(36)
.IsUnicode(false);
builder.Property(c => c.ItemId)
.HasMaxLength(36)
.IsUnicode(false);
builder.HasIndex(c => c.ItemId);
}
}