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

36 lines
1 KiB
C#
Raw Normal View History

2018-12-09 03:16:05 +00:00
using Roadie.Library.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Roadie.Library.Data
{
[Table("scanHistory")]
public class ScanHistory : EntityBase
{
[Column("userId")]
public int UserId { get; set; }
public ApplicationUser User { get; set; }
2018-12-15 20:12:55 +00:00
[Column("forArtistId")]
2018-12-09 03:16:05 +00:00
public int? ForArtistId { get; set; }
2018-12-15 20:12:55 +00:00
[Column("forReleaseId")]
2018-12-09 03:16:05 +00:00
public int? ForReleaseId { get; set; }
2018-12-15 20:12:55 +00:00
[Column("newArtists")]
2018-12-09 03:16:05 +00:00
public int? NewArtists { get; set; }
2018-12-15 20:12:55 +00:00
[Column("newReleases")]
2018-12-09 03:16:05 +00:00
public int? NewReleases { get; set; }
2018-12-15 20:12:55 +00:00
[Column("newTracks")]
2018-12-09 03:16:05 +00:00
public int? NewTracks { get; set; }
2018-12-15 20:12:55 +00:00
[Column("timeSpanInSeconds")]
2018-12-09 03:16:05 +00:00
public int TimeSpanInSeconds { get; set; }
[NotMapped]
public new bool? IsLocked { get; set; }
2018-12-15 04:25:00 +00:00
public ScanHistory()
{
this.Status = Enums.Statuses.Complete;
}
2018-12-09 03:16:05 +00:00
}
}