This commit is contained in:
2021-02-12 15:32:55 +00:00
parent a3b391128d
commit bf4547fc58
2 changed files with 28 additions and 27 deletions

View File

@@ -56,26 +56,9 @@ namespace AyaNova.Models
public bool Active { get; set; }
[Required, MaxLength(255)]
public string Name { get; set; }
public DateTime? LastLogin { get; set; }
public string Login { get; set; }
public string Password { get; set; }
[JsonIgnore]
public string Salt { get; set; }
[JsonIgnore]
public string CurrentAuthToken { get; set; }
[JsonIgnore]
public string DlKey { get; set; }
[JsonIgnore]
public DateTime? DlKeyExpire { get; set; }
[JsonIgnore]
public string PasswordResetCode { get; set; }
[JsonIgnore]
public DateTime? PasswordResetCodeExpire { get; set; }
[Required]
public AuthorizationRoles Roles { get; set; }
[Required]
@@ -88,9 +71,24 @@ namespace AyaNova.Models
public long? VendorId { get; set; }
public string Wiki { get; set; }
public string CustomFields { get; set; }
public List<string> Tags { get; set; }
//======================
//NOT IN DTUSER CLASS
[JsonIgnore]
public string Salt { get; set; }//---
[JsonIgnore]
public string CurrentAuthToken { get; set; }//---
[JsonIgnore]
public string DlKey { get; set; }//---
[JsonIgnore]
public DateTime? DlKeyExpire { get; set; }//---
[JsonIgnore]
public string PasswordResetCode { get; set; }//---
[JsonIgnore]
public DateTime? PasswordResetCodeExpire { get; set; }//---
//==========================
//relations
//https://docs.microsoft.com/en-us/ef/core/modeling/relationships#other-relationship-patterns
[JsonIgnore]//hide from being returned (as null anyway) with User object in routes