Добавлен 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,28 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PlaylistShared.Data.Entities;
public class SharedPlaylist
{
[Key]
public Guid Id { get; set; }
public string OwnerUserId { get; set; } = null!;
[ForeignKey(nameof(OwnerUserId))]
public ApplicationUser Owner { get; set; } = null!;
public string YandexPlaylistId { get; set; } = null!;
public string Title { get; set; } = null!;
public string? Description { get; set; }
[Required]
public string ShareSlug { get; set; } = null!;
public PlaylistPermissions Permissions { get; set; } = new();
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public List<PlaylistTrack> Tracks { get; set; } = new();
}