2019-07-18 22:33:50 +00:00
|
|
|
|
using Roadie.Library.Identity;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace Roadie.Library.Data
|
|
|
|
|
{
|
|
|
|
|
[Table("inviteToken")]
|
|
|
|
|
public class InviteToken : EntityBase
|
|
|
|
|
{
|
2019-11-28 17:38:26 +00:00
|
|
|
|
[ForeignKey(nameof(CreatedByUserId))]
|
|
|
|
|
[InverseProperty(nameof(User.InviteTokens))]
|
|
|
|
|
public virtual User CreatedByUser { get; set; }
|
|
|
|
|
|
2019-07-18 22:33:50 +00:00
|
|
|
|
[Column("createdByUserId")]
|
|
|
|
|
public int CreatedByUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("expiresDate")]
|
|
|
|
|
public DateTime? ExpiresDate { get; set; }
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
public new bool IsLocked { get; set; }
|
|
|
|
|
}
|
2019-11-28 17:38:26 +00:00
|
|
|
|
}
|