mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
82 lines
No EOL
2.7 KiB
C#
82 lines
No EOL
2.7 KiB
C#
using Roadie.Library.Enums;
|
|
using Roadie.Library.Imaging;
|
|
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<ArtistAssociation> 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; }
|
|
|
|
public ICollection<Comment> Comments { get; set; }
|
|
|
|
[Column("discogsId")] [MaxLength(50)] public string DiscogsId { get; set; }
|
|
|
|
public ICollection<ArtistGenre> Genres { 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("playedCount")] public int? PlayedCount { get; set; }
|
|
|
|
[Column("profile", TypeName = "text")]
|
|
[MaxLength(65535)]
|
|
public string Profile { get; set; }
|
|
|
|
[Column("rank")] public decimal? Rank { get; set; }
|
|
|
|
[Column("rating")] public short? Rating { get; set; }
|
|
|
|
[Column("realName")] [MaxLength(500)] public string RealName { get; set; }
|
|
|
|
[Column("releaseCount")] public int? ReleaseCount { get; set; }
|
|
|
|
//public List<Release> Releases { get; set; }
|
|
public ICollection<Release> Releases { get; set; }
|
|
|
|
[InverseProperty("Artist")] public ICollection<ArtistSimilar> SimilarArtists { get; set; }
|
|
|
|
[Column("spotifyId")] [MaxLength(100)] public string SpotifyId { get; set; }
|
|
|
|
[Column("trackCount")] public int? TrackCount { get; set; }
|
|
|
|
public Artist()
|
|
{
|
|
Releases = new HashSet<Release>();
|
|
Genres = new HashSet<ArtistGenre>();
|
|
AssociatedArtists = new HashSet<ArtistAssociation>();
|
|
SimilarArtists = new HashSet<ArtistSimilar>();
|
|
Comments = new HashSet<Comment>();
|
|
Rating = 0;
|
|
Status = Statuses.Ok;
|
|
}
|
|
}
|
|
} |