- Add CoverAssetId FK and CoverAsset navigation to Album model - Add AlbumAssetPreviewDto with resolution/thumbnail info - Extend AlbumPreviewDto/FullDto with PersonName, CoverAssetId, AssetCount - Add CoverAssetId to AlbumCreateDto and AlbumUpdateDto - Update AlbumMapper to populate new fields from eager-loaded relations - Add EF migration for CoverAssetId column
27 lines
822 B
C#
27 lines
822 B
C#
namespace Butter.Dtos.Album;
|
|
|
|
/// <summary>
|
|
/// Represents the data needed to create a new album.
|
|
/// </summary>
|
|
public class AlbumCreateDto {
|
|
/// <summary>
|
|
/// Gets or sets the name of the album.
|
|
/// </summary>
|
|
public string Name { get; set; } = string.Empty;
|
|
/// <summary>
|
|
/// Gets or sets the owner ID of the album.
|
|
/// </summary>
|
|
public Guid? Owner { get; set; }
|
|
/// <summary>
|
|
/// Gets or sets the person ID associated with the album.
|
|
/// </summary>
|
|
public Guid? Person { get; set; }
|
|
/// <summary>
|
|
/// Gets or sets the cover asset ID for the album.
|
|
/// </summary>
|
|
public Guid? CoverAssetId { get; set; }
|
|
/// <summary>
|
|
/// Gets or sets the list of asset IDs in the album.
|
|
/// </summary>
|
|
public List<Guid>? Assets { get; set; }
|
|
} |