using Jellyfin.Data.Entities.Security;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Jellyfin.Server.Implementations.ModelConfiguration
{
///
/// FluentAPI configuration for the DeviceOptions entity.
///
public class DeviceOptionsConfiguration : IEntityTypeConfiguration
{
///
public void Configure(EntityTypeBuilder builder)
{
builder
.HasIndex(entity => entity.DeviceId)
.IsUnique();
}
}
}