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