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

16 lines
392 B
C#
Raw Normal View History

2018-11-02 22:20:36 +00:00
using Roadie.Library.Identity;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("submission")]
2019-07-03 16:21:29 +00:00
public class Submission : EntityBase
2018-11-02 22:20:36 +00:00
{
2019-11-28 17:38:26 +00:00
[ForeignKey(nameof(UserId))]
[InverseProperty("Submissions")]
public virtual User User { get; set; }
2018-11-02 22:20:36 +00:00
2019-11-28 17:38:26 +00:00
[Column("userId")]
public int UserId { get; set; }
2018-11-02 22:20:36 +00:00
}
}