mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
23 lines
No EOL
608 B
C#
23 lines
No EOL
608 B
C#
using Roadie.Library.Identity;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
[Table("inviteToken")]
|
|
public class InviteToken : EntityBase
|
|
{
|
|
[ForeignKey(nameof(CreatedByUserId))]
|
|
[InverseProperty(nameof(User.InviteTokens))]
|
|
public virtual User CreatedByUser { get; set; }
|
|
|
|
[Column("createdByUserId")]
|
|
public int CreatedByUserId { get; set; }
|
|
|
|
[Column("expiresDate")]
|
|
public DateTime? ExpiresDate { get; set; }
|
|
|
|
[NotMapped]
|
|
public new bool IsLocked { get; set; }
|
|
}
|
|
} |