mirror of
https://github.com/sphildreth/roadie
synced 2024-11-14 00:17:12 +00:00
37 lines
No EOL
1 KiB
C#
37 lines
No EOL
1 KiB
C#
using Roadie.Library.Identity;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
[Table("playlist")]
|
|
public partial class Playlist : NamedEntityBase
|
|
{
|
|
[NotMapped]
|
|
public new string SortName { get; set; }
|
|
|
|
[Column("Description")]
|
|
[MaxLength(1000)]
|
|
public string Description { get; set; }
|
|
|
|
[Column("isPublic")]
|
|
public bool IsPublic { get; set; }
|
|
|
|
public ICollection<PlaylistTrack> Tracks { get; set; }
|
|
|
|
public ApplicationUser User { get; set; }
|
|
|
|
[Column("userId")]
|
|
public int? UserId { get; set; }
|
|
|
|
[Column("duration")]
|
|
public int? Duration { get; set; } // TODO update this on playlist edit
|
|
|
|
[Column("trackCount")]
|
|
public short TrackCount { get; set; } // TODO update this on playlist edit
|
|
|
|
[Column("releaseCount")]
|
|
public short ReleaseCount { get; set; } // TODO update this on playlist edit
|
|
}
|
|
} |