Created
February 21, 2019 17:28
-
-
Save 2garryn/6d80ca5de48e5444b382940b0c06ff24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountSchema | |
{ | |
public AccountSchema(Account.User user) | |
{ | |
Blocked = user.Blocked; | |
Confirmed = user.Confirmed; | |
Username = user.Name; | |
Email = user.Email; | |
PwdHash = "pwdHash"; | |
PwdSalt = "pwdSalt"; | |
OnCreated = user.OnCreated; | |
PwdUpdatedTs = user.OnCreated; | |
} | |
public int UserId {get; } | |
[Column(TypeName = "varchar(64)"), Required] | |
public string Username {get; } | |
[Column(TypeName = "varchar(320)"), Required] | |
public string Email {get; } | |
public bool Blocked {get; } | |
public bool Confirmed {get; } | |
public DateTime OnCreated {get; set;} | |
public string PwdHash {get; set;} | |
public string PwdSalt {get; set;} | |
public DateTime PwdUpdatedTs {get; set;} | |
public List<Session> Sessions {get; set;} | |
public PwdRecovery Recovery {get; set;} | |
public AccountConfirmation Confirmation {get; set;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment