#region ========================================================================= USING ===================================================================================== using Lumina.Application.Common.DataAccess.Entities.Common; using System; using System.Diagnostics; #endregion namespace Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management; /// /// Repository entity for a media library item, representing the current state of a previously scanned media item, as a snapshot. /// [DebuggerDisplay("Id: {Id}; Path: {Path}")] public class LibraryScanSnapshotEntity : IStorageEntity, IAuditableEntity { /// /// Gets the Id of the media library scan snapshot item. /// public required Guid Id { get; init; } /// /// Gets the Id of the media library to which this media library scan snapshot item belongs. /// public required Guid LibraryId { get; init; } /// /// Gets the path of the media library scan snapshot item. /// public required string Path { get; init; } /// /// Gets the hash calculated for the media library scan snapshot item. /// public required ulong ContentHash { get; init; } /// /// Gets the size of the media library scan snapshot item, in bytes. /// public required long FileSize { get; init; } /// /// Gets the time and date when the media library scan snapshot item was last modified, stored in ticks. /// public required long Ticks { get; init; } /// /// Gets the media library to which this media library scan snapshot item belongs. /// public required LibraryEntity Library { get; init; } = null!; /// /// Gets or sets the time and date when the entity was added. /// public DateTime CreatedOnUtc { get; set; } /// /// Gets or sets the Id of the user that created the entity. /// public 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 Guid? UpdatedBy { get; set; } }