Change editor rule

This commit is contained in:
2026-09-24 13:24:43 +02:00
parent 16478678b5
commit 73e37dbecd
401 changed files with 14735 additions and 12995 deletions
+22 -21
View File
@@ -3,37 +3,38 @@ using System.ComponentModel.DataAnnotations.Schema;
using Musify.Domain.Abstractions;
using Musify.Domain.ValueObjects;
namespace Musify.Domain.Entities;
[Table("Albums")]
public class Album : IAuditable, IHasLifeCycle, IOwnedEntity
namespace Musify.Domain.Entities
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[Table("Albums")]
public class Album : IAuditable, IHasLifeCycle, IOwnedEntity
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[MaxLength(200)]
public required string Title { get; set; }
[MaxLength(200)]
public required string Title { get; set; }
[MaxLength(200)]
public required string NormalizedTitle { get; set; }
[MaxLength(200)]
public required string NormalizedTitle { get; set; }
[MaxLength(256)]
public string? Description { get; set; }
[MaxLength(256)]
public string? Description { get; set; }
public int? ReleaseYear { get; set; }
public int? ReleaseYear { get; set; }
public EntityPictures? Pictures { get; set; }
public EntityPictures? Pictures { get; set; }
public required long OwnerUserId { get; set; }
public required long OwnerUserId { get; set; }
[ForeignKey(nameof(OwnerUserId))]
public User Owner { get; set; } = null!;
[ForeignKey(nameof(OwnerUserId))]
public User Owner { get; set; } = null!;
public LifeCycleStatus LifeCycleStatus { get; set; } = LifeCycleStatus.Active;
public LifeCycleStatus LifeCycleStatus { get; set; } = LifeCycleStatus.Active;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
public ICollection<AlbumHasTrack> AlbumTracks { get; set; } = new List<AlbumHasTrack>();
public ICollection<AlbumHasTrack> AlbumTracks { get; set; } = new List<AlbumHasTrack>();
}
}