roadie/Roadie.Api.Library/Data/Playlist.cs
2018-12-26 13:39:13 -06:00

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
}
}