roadie/RoadieLibrary/Data/Artist.cs

88 lines
2.4 KiB
C#
Raw Normal View History

2018-11-02 16:04:49 -05:00
using Roadie.Library.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("artist")]
public partial class Artist : BeginAndEndNamedEntityBase
{
[Column("amgId")]
[MaxLength(100)]
public string AmgId { get; set; }
[Column("artistType", TypeName = "enum")]
public string ArtistType { get; set; }
[NotMapped]
2018-11-04 18:08:37 -06:00
public virtual ICollection<ArtistAssociation> AssociatedArtists { get; set; }
2018-11-02 16:04:49 -05:00
[Column("bandStatus", TypeName = "enum")]
public BandStatus? BandStatus { get; set; }
[Column("bioContext", TypeName = "text")]
[MaxLength(65535)]
public string BioContext { get; set; }
[Column("birthDate", TypeName = "date")]
public DateTime? BirthDate { get; set; }
[Column("discogsId")]
[MaxLength(50)]
public string DiscogsId { get; set; }
2018-11-02 17:20:36 -05:00
public ICollection<ArtistGenre> Genres { get; set; }
public ICollection<Image> Images { get; set; }
2018-11-02 16:04:49 -05:00
[Column("isniList", TypeName = "text")]
[MaxLength(65535)]
public string ISNIList { get; set; }
[Column("iTunesId")]
[MaxLength(100)]
public string ITunesId { get; set; }
2018-12-01 12:05:24 -06:00
[Column("lastPlayed")]
public DateTime? LastPlayed { get; set; }
2018-11-02 16:04:49 -05:00
[Column("musicBrainzId")]
[MaxLength(100)]
public string MusicBrainzId { get; set; }
[Column("profile", TypeName = "text")]
[MaxLength(65535)]
public string Profile { get; set; }
2018-12-01 12:05:24 -06:00
[Column("playedCount")]
public int? PlayedCount { get; set; }
2018-11-02 16:04:49 -05:00
[Column("rating")]
public short? Rating { get; set; }
[Column("realName")]
[MaxLength(500)]
public string RealName { get; set; }
2018-12-07 15:02:38 -06:00
//public List<Release> Releases { get; set; }
public ICollection<Release> Releases { get; set; }
2018-11-02 16:11:11 -05:00
2018-11-02 16:04:49 -05:00
[Column("spotifyId")]
[MaxLength(100)]
public string SpotifyId { get; set; }
[Column("releaseCount")]
public int? ReleaseCount { get; set; } // TODO update this on artist folder scan
2018-11-06 16:59:48 -06:00
2018-12-01 12:05:24 -06:00
[Column("trackCount")]
public int? TrackCount { get; set; } // TODO update this on artist folder scane
2018-12-07 15:02:38 -06:00
public Artist()
{
this.Releases = new HashSet<Release>();
}
2018-11-02 16:04:49 -05:00
}
}