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; } [InverseProperty("Artist")] public ICollection AssociatedArtists { get; set; } [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; } public ICollection Genres { get; set; } public ICollection Images { get; set; } [Column("isniList", TypeName = "text")] [MaxLength(65535)] public string ISNI { get; set; } [Column("iTunesId")] [MaxLength(100)] public string ITunesId { get; set; } [Column("lastPlayed")] public DateTime? LastPlayed { get; set; } [Column("musicBrainzId")] [MaxLength(100)] public string MusicBrainzId { get; set; } [Column("profile", TypeName = "text")] [MaxLength(65535)] public string Profile { get; set; } [Column("playedCount")] public int? PlayedCount { get; set; } [Column("rating")] public short? Rating { get; set; } [Column("rank")] public decimal? Rank { get; set; } [Column("realName")] [MaxLength(500)] public string RealName { get; set; } //public List Releases { get; set; } public ICollection Releases { get; set; } [Column("spotifyId")] [MaxLength(100)] public string SpotifyId { get; set; } [Column("releaseCount")] public int? ReleaseCount { get; set; } [Column("trackCount")] public int? TrackCount { get; set; } public Artist() { this.Releases = new HashSet(); this.Genres = new HashSet(); this.AssociatedArtists = new HashSet(); this.Rating = 0; this.Status = Statuses.Ok; } } }