Добавлены избранные плейлисты

This commit is contained in:
FrigaT
2026-04-14 14:14:19 +03:00
parent 8230951839
commit dcb2efbedb
17 changed files with 1118 additions and 5 deletions

View File

@@ -25,4 +25,7 @@ public class ApplicationUser : IdentityUser<Guid>
/// <summary>Плейлисты, созданные пользователем.</summary>
public ICollection<SharedPlaylist> OwnedPlaylists { get; set; } = new List<SharedPlaylist>();
/// <summary>Избранные плейлисты.</summary>
public ICollection<FavoritePlaylist> FavoritePlaylists { get; set; } = new List<FavoritePlaylist>();
}

View File

@@ -0,0 +1,13 @@
namespace PlaylistShared.Api.Entities;
/// <summary>Избранный расшаренный плейлист пользователя.</summary>
public class FavoritePlaylist
{
public Guid UserId { get; set; }
public Guid SharedPlaylistId { get; set; }
public DateTime AddedAtUtc { get; set; }
// Навигационные свойства
public ApplicationUser User { get; set; } = null!;
public SharedPlaylist SharedPlaylist { get; set; } = null!;
}

View File

@@ -7,6 +7,7 @@ public class SharedPlaylist
{
public Guid Id { get; set; }
public Guid CreatorUserId { get; set; }
public string YandexPlaylistUuid { get; set; } = null!;
public string YandexPlaylistKind { get; set; } = null!;
public string YandexPlaylistOwnerUid { get; set; } = null!;
public string Title { get; set; } = null!;