package com.jeequan.jeepay.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jeequan.jeepay.core.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 客户端更新表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2021-12-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_client_version")
public class SysClientVersion extends BaseModel {

    //gw
    public static final LambdaQueryWrapper<SysClientVersion> gw(){
        return new LambdaQueryWrapper<>();
    }

    private static final long serialVersionUID=1L;

    public static final String CLIENT_TYPE_MCH = "MCH_APP";
    public static final String CLIENT_TYPE_AGENT = "AGENT_APP";
    public static final String CLIENT_TYPE_STORE = "STORE_APP";

    /**
     * versionID
     */
    @TableId(value = "version_id", type = IdType.AUTO)
    private Integer versionId;

    /**
     * 版本名称
     */
    private String versionName;

    /**
     * 版本序列号
     */
    private String versionSerialNumber;

    /**
     * 版本描述信息
     */
    private String versionDesc;

    /**
     * 是否需要强制更新 1-是, 0-否
     */
    private Byte forceUpdate;

    /**
     * 下载地址
     */
    private String downloadUrl;

    /**
     * 文件大小，单位：M
     */
    private String fileSize;

    /**
     * 客户端类型：MCH_APP: 商户APP
     */
    private String clientType;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;


}
