mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
49 lines
No EOL
1.3 KiB
C#
49 lines
No EOL
1.3 KiB
C#
using Roadie.Library.Enums;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
[Table("label")]
|
|
public partial class Label : BeginAndEndNamedEntityBase
|
|
{
|
|
[Column("artistCount")]
|
|
public int? ArtistCount { get; set; }
|
|
|
|
[InverseProperty("Label")]
|
|
public virtual ICollection<Comment> Comments { get; set; }
|
|
|
|
[Column("discogsId")]
|
|
[MaxLength(50)]
|
|
public string DiscogsId { get; set; }
|
|
|
|
[Column("imageUrl")]
|
|
[MaxLength(500)]
|
|
public string ImageUrl { get; set; }
|
|
|
|
[Column("musicBrainzId")]
|
|
[MaxLength(100)]
|
|
public string MusicBrainzId { get; set; }
|
|
|
|
[Column("profile", TypeName = "text")]
|
|
[MaxLength(65535)]
|
|
public string Profile { get; set; }
|
|
|
|
[Column("releaseCount")]
|
|
public int? ReleaseCount { get; set; }
|
|
|
|
[InverseProperty("Label")]
|
|
public virtual ICollection<ReleaseLabel> ReleaseLabels { get; set; }
|
|
|
|
[Column("trackCount")]
|
|
public int? TrackCount { get; set; }
|
|
|
|
public Label()
|
|
{
|
|
ReleaseLabels = new HashSet<ReleaseLabel>();
|
|
Comments = new HashSet<Comment>();
|
|
Status = Statuses.Ok;
|
|
}
|
|
}
|
|
} |