mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 01:31:19 +00:00
41 lines
940 B
C#
41 lines
940 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using AspNetCore.Security.Jwt;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace MyCore.Models
|
|
{
|
|
public class UserInfo : IAuthenticationUser
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
|
|
[BsonElement("Role")]
|
|
public string Role { get; set; }
|
|
|
|
[BsonElement("Username")]
|
|
public string Username { get; set; }
|
|
|
|
[BsonElement("Password")]
|
|
public string Password { get; set; }
|
|
|
|
[BsonElement("FirstName")]
|
|
public string FirstName { get; set; }
|
|
|
|
[BsonElement("LastName")]
|
|
public string LastName { get; set; }
|
|
|
|
[BsonElement("Token")]
|
|
public string Token { get; set; }
|
|
|
|
[BsonElement("Birthday")]
|
|
public string Birthday { get; set; }
|
|
}
|
|
}
|
|
|
|
|
|
|