using System;
using Dpz.Core.Infrastructure;
using Dpz.Core.Infrastructure.Entity;
using MongoDB.Bson;
namespace Dpz.Core.Public.Entity;
[Backup]
public class UserTwoFactor:IBaseEntity
{
/// <summary>
/// 绑定账号
/// </summary>
public string Id { get; set; }
/// <summary>
/// 用户密钥
/// </summary>
public string Key { get; set; }
/// <summary>
/// 是否绑定
/// </summary>
public bool Bind { get; set; }
/// <summary>
/// 上次生成时间
/// </summary>
[BsonDateTimeOptions(Kind = DateTimeKind.Local)]
public DateTime LastGenerateTime { get; set; }
/// <summary>
/// 绑定时间
/// </summary>
[BsonDateTimeOptions(Kind = DateTimeKind.Local)]
public DateTime? BindTime { get; set; }
}