roadie/Roadie.Api.Library/Data/Playlist.cs

37 lines
1 KiB
C#
Raw Normal View History

2018-11-02 16:04:49 -05:00
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
{
2018-12-09 11:58:31 -06:00
[NotMapped]
public new string SortName { get; set; }
2018-11-02 16:04:49 -05:00
[Column("Description")]
[MaxLength(1000)]
public string Description { get; set; }
2018-11-02 16:11:11 -05:00
[Column("isPublic")]
public bool IsPublic { get; set; }
2018-11-02 16:04:49 -05:00
2018-11-02 16:11:11 -05:00
public ICollection<PlaylistTrack> Tracks { get; set; }
2018-11-22 11:31:59 -06:00
public ApplicationUser User { get; set; }
2018-11-02 16:04:49 -05:00
2018-11-02 16:11:11 -05:00
[Column("userId")]
public int? UserId { get; set; }
2018-12-09 11:58:31 -06:00
[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
2018-11-02 16:04:49 -05:00
}
2018-11-02 16:11:11 -05:00
}