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

25 lines
No EOL
623 B
C#

using Roadie.Library.Identity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("request")]
public class Request : EntityBase
{
[Column("description")]
[MaxLength(500)]
[Required]
public string Description { get; set; }
[NotMapped]
public new bool? IsLocked { get; set; }
[ForeignKey(nameof(UserId))]
[InverseProperty("Requests")]
public virtual User User { get; set; }
[Column("userId")]
public int? UserId { get; set; }
}
}