2019-07-14 02:39:28 +02:00

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; }
}
}