package com.njzscloud.dispose.sys.auth.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 登录令牌表
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("sys_token")
public class SysTokenEntity {

    /**
     * Id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户 Id
     */
    private Long userId;

    /**
     * Token Id
     */
    private String tid;

    /**
     * Token 键
     */
    private String tkey;

    /**
     * Token 值
     */
    private String tval;

    /**
     * 用户信息
     */
    private String userDetail;

}
