roadie/Roadie.Api.Library/Data/CollectionMissing.cs

35 lines
928 B
C#
Raw Normal View History

2019-07-03 16:21:29 +00:00
using System.ComponentModel.DataAnnotations;
2019-06-30 22:14:36 +00:00
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("collectionMissing")]
2019-07-03 16:21:29 +00:00
public class CollectionMissing
2019-06-30 22:14:36 +00:00
{
2019-11-28 17:38:26 +00:00
[Column("artist")]
[MaxLength(1000)]
public string Artist { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("collectionId")]
public int CollectionId { get; set; }
[ForeignKey(nameof(CollectionId))]
[InverseProperty("MissingReleases")]
public virtual Collection Collection { get; set; }
2019-07-03 16:21:29 +00:00
2019-06-30 22:14:36 +00:00
[Column("id")]
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("isArtistFound")]
public bool IsArtistFound { get; set; }
[Column("position")]
public int Position { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("release")]
[MaxLength(1000)]
public string Release { get; set; }
2019-06-30 22:14:36 +00:00
}
2019-07-03 16:21:29 +00:00
}