roadie/Roadie.Api.Library/Data/UserQue.cs
2019-11-28 11:38:26 -06:00

36 lines
No EOL
913 B
C#

using Roadie.Library.Identity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("userQue")]
public class UserQue : EntityBase
{
[Column("isCurrent")]
public bool? IsCurrent { get; set; }
[Column("position")]
public long? Position { get; set; }
[Column("queSortOrder")]
[Required]
public short QueSortOrder { get; set; }
[ForeignKey(nameof(TrackId))]
[InverseProperty("UserQues")]
public virtual Track Track { get; set; }
[Column("trackId")]
[Required]
public int TrackId { get; set; }
[ForeignKey(nameof(UserId))]
[InverseProperty("UserQues")]
public virtual User User { get; set; }
[Column("userId")]
[Required]
public int UserId { get; set; }
}
}