package cn.ysk.cashier.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_activate")
public class Activate  extends Model<Activate> {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer shopId;
    private Integer minNum;
    private Integer maxNum;
    private BigDecimal handselNum;
    private String handselType;
    private String isDel;
    //是否赠送商品 0否 1是
    private Integer isGiftPro;
    @TableField(exist = false)
    private List<TbActivateProduct> products;
}
