19 lines
496 B
C#
19 lines
496 B
C#
using System;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace GameAuthApi.Models;
|
|
|
|
public class User
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
|
|
public string Username { get; set; }
|
|
public string PasswordHash { get; set; }
|
|
public string Role { get; set; } = "player";
|
|
public string RefreshToken { get; set; }
|
|
public DateTime RefreshTokenExpiry { get; set; }
|
|
public string Email { get; set; }
|
|
} |