feat(backend): add source, external id and artist to tracks

This commit is contained in:
2026-07-16 01:05:28 +02:00
parent cc1c1c204f
commit 2cecd118ed
7 changed files with 829 additions and 2 deletions
+11
View File
@@ -23,6 +23,17 @@ namespace Musify.Domain.Entities
[Required]
public int Duration { get; set; }
[Required]
[MaxLength(200)]
public string Artist { get; set; } = string.Empty;
[Required]
public TrackSource Source { get; set; } = TrackSource.Local;
[Required]
[MaxLength(16)]
public string ExternalId { get; set; } = string.Empty;
[Required]
[MaxLength(64)]
public required string OriginalPictureName { get; set; }
@@ -0,0 +1,8 @@
namespace Musify.Domain.ValueObjects
{
public enum TrackSource
{
Local = 0,
YouTube = 1
}
}