You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
3 weeks ago
|
using SqlSugar;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Wood.Entity.SystemManage
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 用户的refreshtoken
|
||
|
/// </summary>
|
||
|
[SugarTable("SysRefreshToken", "用户的refreshtoken")]
|
||
|
public class RefreshTokenEntity : EntityCreateBase
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 用户id
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "用户id")]
|
||
|
public long UserId { get; set; } = 0;
|
||
|
|
||
|
/// <summary>
|
||
|
/// RefreshToken
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "RefreshToken", Length = 256)]
|
||
|
public string RefreshToken { get; set; } = "";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 过期时间
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "过期时间")]
|
||
|
public DateTime ExpiresAt { get; set; } = DateTime.Now;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 签发时间
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "签发时间")]
|
||
|
public DateTime IssuedAt { get; set; } = DateTime.Now;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 撤销时间
|
||
|
/// </summary>
|
||
|
[SugarColumn(ColumnDescription = "撤销时间",IsNullable = true)]
|
||
|
public DateTime? RevokedAt { get; set; }
|
||
|
}
|
||
|
}
|