Some checks failed
Deploy Promiscuity Auth API / deploy (push) Successful in 1m59s
Deploy Promiscuity Character API / deploy (push) Successful in 1m16s
Deploy Promiscuity Inventory API / deploy (push) Has been cancelled
Deploy Promiscuity Locations API / deploy (push) Has been cancelled
Deploy Promiscuity Mail API / deploy (push) Has been cancelled
Deploy Promiscuity World API / deploy (push) Has been cancelled
Deploy Promiscuity Crafting API / deploy (push) Has been cancelled
k8s smoke test / test (push) Has been cancelled
17 lines
511 B
C#
17 lines
511 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace AuthApi.Models;
|
|
|
|
public class User
|
|
{
|
|
[BsonId] [BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; } = default!;
|
|
public string Username { get; set; } = default!;
|
|
public string PasswordHash { get; set; } = default!;
|
|
public string Role { get; set; } = "USER";
|
|
public string? Email { get; set; }
|
|
public string? RefreshToken { get; set; }
|
|
public DateTime? RefreshTokenExpiry { get; set; }
|
|
}
|