2018-11-02 22:20:36 +00:00
|
|
|
|
using Roadie.Library.Identity;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace Roadie.Library.Data
|
|
|
|
|
{
|
|
|
|
|
[Table("userrelease")]
|
|
|
|
|
public partial class UserRelease : EntityBase
|
|
|
|
|
{
|
|
|
|
|
[Column("isDisliked")]
|
|
|
|
|
public bool? IsDisliked { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("isFavorite")]
|
|
|
|
|
public bool? IsFavorite { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("rating")]
|
|
|
|
|
public short Rating { get; set; }
|
|
|
|
|
|
|
|
|
|
public Release Release { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("releaseId")]
|
|
|
|
|
[Required]
|
|
|
|
|
public int ReleaseId { get; set; }
|
|
|
|
|
|
|
|
|
|
public ApplicationUser User { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("userId")]
|
|
|
|
|
[Required]
|
|
|
|
|
public int UserId { get; set; }
|
2018-12-15 04:19:52 +00:00
|
|
|
|
|
|
|
|
|
public UserRelease()
|
|
|
|
|
{
|
|
|
|
|
this.Rating = 0;
|
|
|
|
|
}
|
2018-11-02 22:20:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|