Changes
This commit is contained in:
@@ -27,7 +27,8 @@ namespace Musify.Domain.Entities
|
||||
[MaxLength(256)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
public PlayListPictures? Pictures { get; set; }
|
||||
[Required]
|
||||
public required PlayListPictures Pictures { get; set; }
|
||||
|
||||
[Required]
|
||||
public LifeCycleStatus LifeCycleStatus { get; set; } = LifeCycleStatus.Active;
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Musify.Domain.ValueObjects
|
||||
{
|
||||
public class PlayListPictures
|
||||
{
|
||||
public string? OriginalName { get; set; }
|
||||
[Required]
|
||||
public required string OriginalName { get; set; }
|
||||
|
||||
public string? SmallName { get; set; }
|
||||
[Required]
|
||||
public required string SmallName { get; set; }
|
||||
|
||||
public string? MediumName { get; set; }
|
||||
[Required]
|
||||
public required string MediumName { get; set; }
|
||||
|
||||
public string? LargeName { get; set; }
|
||||
[Required]
|
||||
public required string LargeName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user