using Newtonsoft.Json; using Hasher; namespace Models { public class User { // Nullable fields have defaults in the database public short UserId { get; set; } public string Username { get; set; } public string Email { get; set; } public string PasswordHash { get; set; } public DateTimeOffset Created { get; set; } public DateTimeOffset Updated { get; set; } public DateTimeOffset PasswordUpdated { get; set; } public short? CompanyId { get; set; } //May need to change to not nullable public DateTimeOffset? LastLogin { get; set; } public bool IsEnabled { get; set; } public int FailedAttempts { get; set; } } }