package com.red.circle.other.infra.database.rds.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * app版本管理.
 * </p>
 *
 * @author pengliang
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_version_manage")
public class VersionManage extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 来源平台.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 客户端类型 Android、iOS.
   */
  @TableField("platform")
  private String platform;

  /**
   * 渠道.
   */
  @TableField("channel")
  private String channel;

  /**
   * app最新当前版本号.
   */
  @TableField("version")
  private String version;

  /**
   * app类型(语聊、朝拜).
   */
  @TableField("app_type")
  private String appType;

  /**
   * 是否强制更新。0否，1强制.
   */
  @TableField("is_force_update")
  private Boolean forceUpdate;

  /**
   * 是否在审核 0.否 1.是.
   */
  @TableField("is_review")
  private Boolean review;

  /**
   * 更新描述.
   */
  @TableField("update_describe")
  private String updateDescribe;

  /**
   * 安装包大小.
   */
  @TableField("apk_size")
  private String apkSize;

  /**
   * 0.否 1.是.
   */
  @TableField("is_patch")
  private Boolean patch;

  /**
   * 0.未删除 1.删除.
   */
  @TableLogic
  @TableField("is_del")
  private Boolean del;

  /**
   * 下载链接.
   */
  @TableField("download_url")
  private String downloadUrl;

  /**
   * 编译版本.
   */
  @TableField("build_version")
  private Integer buildVersion;

}
