#region ========================================================================= USING ===================================================================================== using Lumina.Application.Common.DataAccess.Entities.Common; using System; using System.Diagnostics; #endregion namespace Lumina.Application.Common.DataAccess.Entities.Plugins; /// /// Repository entity for the configuration of a metadata provider of a media library. /// [DebuggerDisplay("LibraryId: {LibraryId}; PluginId: {PluginId}")] public class LibraryMetadataProviderConfigurationEntity : IStorageEntity, IAuditableEntity { /// /// Gets or sets the Id of the configuration. /// public required Guid Id { get; init; } /// /// Gets or sets the Id of the media library the configuration belongs to. /// public required Guid LibraryId { get; set; } /// /// Gets or sets the Id of the plugin providing the metadata. /// public required Guid PluginId { get; set; } /// /// Gets or sets whether the metadata provider is enabled for the media library. /// public required bool IsEnabled { get; set; } /// /// Gets or sets the rank of the metadata provider, determining the order in which providers are tried. /// public required int Rank { get; set; } /// /// Gets or sets the time and date when the entity was added. /// public required DateTime CreatedOnUtc { get; set; } /// /// Gets or sets the Id of the user that created the entity. /// public required Guid CreatedBy { get; set; } /// /// Gets or sets the optional time and date when the entity was updated. /// public DateTime? UpdatedOnUtc { get; set; } /// /// Gets or sets the optional Id of the user that updated the entity. /// public required Guid? UpdatedBy { get; set; } }