mirror of
https://github.com/sphildreth/roadie
synced 2024-12-11 21:32:31 +00:00
92 lines
No EOL
2.5 KiB
C#
92 lines
No EOL
2.5 KiB
C#
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<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; }
|
|
|
|
[Column("discogsId")]
|
|
[MaxLength(50)]
|
|
public string DiscogsId { get; set; }
|
|
|
|
public ICollection<ArtistGenre> Genres { get; set; }
|
|
|
|
public ICollection<Image> 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("realName")]
|
|
[MaxLength(500)]
|
|
public string RealName { get; set; }
|
|
|
|
//public List<Release> Releases { get; set; }
|
|
public ICollection<Release> 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<Release>();
|
|
this.Genres = new HashSet<ArtistGenre>();
|
|
this.AssociatedArtists = new HashSet<ArtistAssociation>();
|
|
this.Rating = 0;
|
|
this.Status = Statuses.Ok;
|
|
}
|
|
|
|
}
|
|
} |