2019-02-03 17:50:17 +00:00
|
|
|
using Roadie.Library.Enums;
|
2018-11-02 21:04:49 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace Roadie.Library.Data
|
|
|
|
{
|
|
|
|
[Table("label")]
|
|
|
|
public partial class Label : BeginAndEndNamedEntityBase
|
|
|
|
{
|
2019-11-28 17:38:26 +00:00
|
|
|
[Column("artistCount")]
|
|
|
|
public int? ArtistCount { get; set; }
|
2018-11-02 21:04:49 +00:00
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
[InverseProperty("Label")]
|
|
|
|
public virtual ICollection<Comment> Comments { get; set; }
|
2019-07-03 16:21:29 +00:00
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
[Column("discogsId")]
|
|
|
|
[MaxLength(50)]
|
|
|
|
public string DiscogsId { get; set; }
|
2019-07-03 16:21:29 +00:00
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
[Column("imageUrl")]
|
|
|
|
[MaxLength(500)]
|
|
|
|
public string ImageUrl { get; set; }
|
2018-11-04 20:33:37 +00:00
|
|
|
|
2018-11-02 21:04:49 +00:00
|
|
|
[Column("musicBrainzId")]
|
|
|
|
[MaxLength(100)]
|
|
|
|
public string MusicBrainzId { get; set; }
|
|
|
|
|
|
|
|
[Column("profile", TypeName = "text")]
|
|
|
|
[MaxLength(65535)]
|
|
|
|
public string Profile { get; set; }
|
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
[Column("releaseCount")]
|
|
|
|
public int? ReleaseCount { get; set; }
|
2018-12-04 23:26:27 +00:00
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
[InverseProperty("Label")]
|
|
|
|
public virtual ICollection<ReleaseLabel> ReleaseLabels { get; set; }
|
2019-06-28 21:24:32 +00:00
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
[Column("trackCount")]
|
|
|
|
public int? TrackCount { get; set; }
|
2019-02-03 17:50:17 +00:00
|
|
|
|
|
|
|
public Label()
|
|
|
|
{
|
2019-07-03 16:21:29 +00:00
|
|
|
ReleaseLabels = new HashSet<ReleaseLabel>();
|
|
|
|
Comments = new HashSet<Comment>();
|
|
|
|
Status = Statuses.Ok;
|
2019-02-03 17:50:17 +00:00
|
|
|
}
|
2018-11-02 21:04:49 +00:00
|
|
|
}
|
|
|
|
}
|