/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Use of this software is governed by the Commercial License Agreement
 * obtained after purchasing a license from BladeX.
 * <p>
 * 1. This software is for development use only under a valid license
 * from BladeX.
 * <p>
 * 2. Redistribution of this software's source code to any third party
 * without a commercial license is strictly prohibited.
 * <p>
 * 3. Licensees may copyright their own code but cannot use segments
 * from this software for such purposes. Copyright of this software
 * remains with BladeX.
 * <p>
 * Using this software signifies agreement to this License, and the software
 * must not be used for illegal purposes.
 * <p>
 * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
 * not liable for any claims arising from secondary or illegal development.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.io.Serial;


@Data
@Schema(description = "APP版本管理")
@TableName("t_app_version")
@EqualsAndHashCode(callSuper = true)
public class AppVersion extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	@NotEmpty
	@Schema(description = "更新类型")
	protected String updateType;

	@TableField(condition = SqlCondition.LIKE)
	@NotEmpty
	@Schema(description = "版本号")
	protected String version;

	@TableField(condition = SqlCondition.LIKE)
	@NotEmpty
	@Schema(description = "子版本号")
	protected String subVersion;

	@NotEmpty
	@Schema(description = "强制更新(是/否)")
	protected String isForceUpdate;

	@NotEmpty
	@Schema(description = "安装方式")
	protected String installMethod;

	@NotNull
	@Schema(description = "安装包(附件Id)")
	protected Long installAttachmentId;

	@TableField(condition = SqlCondition.LIKE)
	@NotEmpty
	@Schema(description = "更新说明")
	protected String updateExplanation;

}
