package com.njzscloud.supervisory.auth.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import lombok.ToString;

/**
 * 登录令牌表
 */
@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;

}
