roadie/RoadieLibrary/Data/Artist.cs

73 lines
2 KiB
C#
Raw Normal View History

2018-11-02 21:04:49 +00: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-05 00:08:37 +00:00
public virtual ICollection<ArtistAssociation> AssociatedArtists { get; set; }
2018-11-02 21:04:49 +00: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 22:20:36 +00:00
public ICollection<ArtistGenre> Genres { get; set; }
public ICollection<Image> Images { get; set; }
2018-11-02 21:04:49 +00:00
[Column("isniList", TypeName = "text")]
[MaxLength(65535)]
public string ISNIList { get; set; }
[Column("iTunesId")]
[MaxLength(100)]
public string ITunesId { get; set; }
[Column("musicBrainzId")]
[MaxLength(100)]
public string MusicBrainzId { get; set; }
[Column("profile", TypeName = "text")]
[MaxLength(65535)]
public string Profile { get; set; }
[Column("rating")]
public short? Rating { get; set; }
[Column("realName")]
[MaxLength(500)]
public string RealName { get; set; }
2018-11-02 21:11:11 +00:00
public List<Release> Releases { get; set; }
2018-11-02 21:04:49 +00: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 22:59:48 +00:00
2018-11-02 21:04:49 +00:00
}
}