20 lines
534 B
C#
20 lines
534 B
C#
|
|
using MongoDB.Bson;
|
||
|
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
|
||
|
|
namespace WorkTracker.Services.Auth;
|
||
|
|
|
||
|
|
public sealed class MongoAuthUser
|
||
|
|
{
|
||
|
|
[BsonId]
|
||
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
||
|
|
public string Id { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
[BsonElement("email")]
|
||
|
|
public string Email { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
[BsonElement("emailNormalized")]
|
||
|
|
public string EmailNormalized { get; init; } = string.Empty;
|
||
|
|
|
||
|
|
[BsonElement("passwordHash")]
|
||
|
|
public string PasswordHash { get; init; } = string.Empty;
|
||
|
|
}
|