diff options
Diffstat (limited to 'User.cs')
| -rw-r--r-- | User.cs | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +using Microsoft.EntityFrameworkCore; + +namespace HyperBooru; + +[Index(nameof(Username))] +public class User : HBObject { + public string Username { get; set; } + public string PasswordHash { get; set; } + + public static explicit operator ApiModels.User(User user) => + new() { + UserId = user.Guid, + Username = user.Username + }; +} |
