#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Common;
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management;
///
/// Repository entity for a media library scan result involving a file.
///
[DebuggerDisplay("Id: {Id}; Status: {Status}")]
public class LibraryScanResultEntity : IStorageEntity
{
///
/// Gets the Id of the media library scan result.
///
public Guid Id { get; init; }
///
/// Gets the Id of the scan that this scan result belongs to.
///
public required Guid LibraryScanId { get; init; }
///
/// Gets the path of the media library scan file.
///
public required string Path { get; init; }
///
/// Gets the hash calculated for the media library scan file.
///
public required ulong ContentHash { get; init; }
///
/// Gets the size of the media library scan file.
///
public required long FileSize { get; init; }
///
/// Gets the modification date of the media library scan file.
///
public required DateTime LastModified { get; init; }
///
/// Gets the media library scan that this scan result belongs to.
///
public required LibraryScanEntity LibraryScan { get; init; } = null!;
}