mirror of
https://github.com/sphildreth/roadie
synced 2024-11-26 06:00:23 +00:00
36 lines
No EOL
913 B
C#
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; }
|
|
}
|
|
} |