package cn.ysk.cashier.mybatis.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 活动商品赠送记录表(TbActivateInRecord)表实体类
 *
 * @author ww
 * @since 2024-11-08 09:53:21
 */
@Data
@SuppressWarnings("serial")
public class TbActivateInRecord extends Model<TbActivateInRecord> {

    private Integer id;
    //会员id
    private Integer vipUserId;
    //卷Id (校验是否可用)
    private Integer couponId;
    //卷描述 满10减2/商品卷
    private String name;
    //1-满减  2-商品
    private Integer type;
    //商品id
    private Integer proId;
    //满多少金额
    private BigDecimal fullAmount;
    //减多少金额
    private BigDecimal discountAmount;
    //赠送数量
    private Integer num;
    //未使用数量
    private Integer overNum;
    //店铺id
    private Integer shopId;
    //来源活动id
    private Integer sourceActId;

    private Integer sourceFlowId;
    //可用开始时间
    private Date useStartTime;
    //可用结束时间
    private Date useEndTime;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    private String couponJson;
    //invited/activate
    private String source;
}

