package cn.sikey.mcdisk.dal.dataobject;

import cn.sikey.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 设备授权
 *
 * @author nelson
 */
@TableName("md_authorize")
@Data
@EqualsAndHashCode(callSuper = true)
public class AuthorizeDO extends BaseDO {

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 设备编码
     */
    private String deviceId;
    /**
     * 家庭云id
     */
    private String cloudId;
    /**
     * 相册云id
     */
    private String photoId;
    /**
     * 授权accessToken
     */
    private String accessToken;
    /**
     * 授权accessToken过期时间
     */
    private LocalDateTime expireTime;

    /**
     * 状态：0未开通1已开通登录2已开通退出登录
     */
    private Integer authorizeStatus;
}
