Добавлен playlist shared

This commit is contained in:
FrigaT
2026-04-11 15:41:24 +03:00
parent 8444fc5f8e
commit ba9d97239e
84 changed files with 61796 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace PlaylistShared.Data.Entities;
public class PlaylistTrack
{
public Guid Id { get; set; }
public Guid PlaylistId { get; set; }
public SharedPlaylist Playlist { get; set; } = null!;
public string YandexTrackId { get; set; } = null!;
public string Title { get; set; } = null!;
public string? Artist { get; set; }
public string? AlbumTitle { get; set; }
public int DurationMs { get; set; }
public string? AddedByUserId { get; set; }
[ForeignKey(nameof(AddedByUserId))]
public ApplicationUser? AddedByUser { get; set; }
public DateTime AddedAt { get; set; }
}