package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 版本更新
 *
 * @author 科技小王子
 * @since 2024-01-15 18:52:24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "Version对象", description = "版本更新")
@TableName("sys_version")
public class Version implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "版本名")
    private String versionName;

    @Schema(description = "版本号")
    private String versionCode;

    @Schema(description = "下载链接")
    private String vueDownloadUrl;

    @Schema(description = "下载链接")
    private String androidDownloadUrl;

    @Schema(description = "下载链接")
    private String iosDownloadUrl;

    @Schema(description = "更新日志")
    private String updateInfo;

    @Schema(description = "强制更新")
    private Integer isHard;

    @Schema(description = "热更")
    private Integer isHot;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "文章排序(数字越小越靠前)")
    private Integer sortNumber;

    private Integer userId;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
