package com.css.txw.sso.pojo.domain.oauth2;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.css.ggzc.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * OAuth2 刷新令牌
 *
 * @author 芋道源码
 */
@TableName(value = "txw_sso_refresh_token", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OAuth2RefreshTokenDO extends BaseDO {
    /**
     * UUID||uuid
     */
    @TableId(value = "uuid")
    private String uuid;

    /**
     * 用户UUID
     */
    @TableField(value = "yh_uuid")
    private String yhUuid;

    @TableField(value = "qyuuid")
    private String qyuuid;

    /**
     * refresh_token||refresh_token
     */
    @TableField(value = "refresh_token")
    private String refreshToken;

    /**
     * 客户端ID
     */
    @TableField(value = "clientid")
    private String clientid;

    /**
     * 授权内容||授权内容
     */
    @TableField(value = "sqnr")
    private String sqnr;

    /**
     * 挂起时间
     */
    @TableField(value = "gqsj")
    private LocalDateTime gqsj;

}
