package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 项目名: yhlxj2
 * 文件名: GoodsDonSkuSubsidy
 * 创建者: JavaZou
 * 创建时间:2024/4/11 11:42
 * 商品补贴价格
 */
@Getter
@Setter
public class GoodsDonSkuSubsidy extends BaseEntity {
	private Long goodsId;

	@NotNull
	private Long skuId;

	/**
	 * 补贴价格
	 */
	@NotNull
	@Min(value = 0, message = "补贴价格不能小于0")
	private BigDecimal price;

	/**
	 * 图片
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String picture;

	/**
	 * true 上架
	 */
	private Boolean status;

	/**
	 * true 存在
	 */
	private Boolean deleted;
}
