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

41 lines
984 B
C#
Raw Normal View History

2019-07-03 16:21:29 +00:00
using Roadie.Library.Enums;
using Roadie.Library.Identity;
2018-12-09 03:16:05 +00:00
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("scanHistory")]
public class ScanHistory : EntityBase
{
2019-11-28 17:38:26 +00:00
[Column("forArtistId")]
public int? ForArtistId { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("forReleaseId")]
public int? ForReleaseId { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[NotMapped]
public new bool? IsLocked { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("newArtists")]
public int? NewArtists { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("newReleases")]
public int? NewReleases { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("newTracks")]
public int? NewTracks { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("timeSpanInSeconds")]
public int TimeSpanInSeconds { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
public virtual User User { get; set; }
2019-07-03 16:21:29 +00:00
2019-11-28 17:38:26 +00:00
[Column("userId")]
public int UserId { get; set; }
2018-12-15 04:25:00 +00:00
public ScanHistory()
{
2019-07-03 16:21:29 +00:00
Status = Statuses.Complete;
2018-12-15 04:25:00 +00:00
}
2018-12-09 03:16:05 +00:00
}
2019-07-03 16:21:29 +00:00
}