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