#region ========================================================================= USING ===================================================================================== using Lumina.Application.Common.DataAccess.Entities.Common; using Lumina.Application.Common.DataAccess.Entities.UsersManagement; using Lumina.Domain.Common.Enums.MediaLibrary; using System; using System.Collections.Generic; using System.Diagnostics; #endregion namespace Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management; /// /// Repository entity for a media library scan. /// [DebuggerDisplay("Id: {Id}; Status: {Status}")] public class LibraryScanEntity : IStorageEntity, IAuditableEntity { /// /// Gets the Id of the media library scan. /// public required Guid Id { get; init; } /// /// Gets the Id of the media library that is scanned. /// public required Guid LibraryId { get; init; } /// /// Gets the Id of the user that initiated the media library scan. /// public required Guid UserId { get; init; } /// /// Gets the status of the media library scan. /// public required LibraryScanJobStatus Status { get; init; } /// /// Gets the media library that is scanned. /// public required LibraryEntity Library { get; init; } = null!; /// /// Gets the user that initiated the media library scan. /// public required UserEntity User { get; init; } = null!; /// /// Gets the collection of library scan results of this library scan. /// public ICollection LibraryScanResults { get; init; } = []; /// /// 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; } }