You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
731 B
26 lines
731 B
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; }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|