using System;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Admin.Core.Model
{
///
///实体类
///
[Table("WeChatToken")]
[SugarTable( "WeChatToken", "admin_sqlite")]
public class WeChatToken
{
///
/// Id
///
[Key]
[SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
[Required]
public int Id { get; set; }
///
/// 创建时间
///
[Required]
public DateTime CreateTime { get; set; }
///
/// 有效期开始时间戳
///
[Required]
public int StartDate { get; set; }
///
/// 有效时间结束时间戳
///
[Required]
public int EndDate { get; set; }
///
/// 有效时长
///
[Required]
public int ExpiresIn { get; set; }
///
/// 密钥令牌
///
[Required]
public string Token { get; set; }
///
/// 密钥类型
///
[Required]
public string TokenType { get; set; }
///
/// 当前密钥是否有效
///
[Required]
public bool State { get; set; }
}
}