package com.sqx.modules.activity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 活动参与记录
 * @author : codingliang
 * @date : 2024-6-24
 */
@ApiModel(value = "活动参与记录")
@TableName("activity_part_record")
@Data
public class ActivityPartRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(name = "id")
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @ApiModelProperty(name = "订单id")
    private Long orderId;
    
    @ApiModelProperty(name = "用户id")
    private Long userId;
    
    @ApiModelProperty(name = "活动id")
    private Long activityId;

    @ApiModelProperty(name = "优惠金额")
    private BigDecimal discountAmount;
    
    @ApiModelProperty(name = "参与时间")
    private Date createTime;

     @ApiModelProperty(name = "参与商品id;多个id之间使用,分割")
     private String goodsId;

     @ApiModelProperty(name = "参与商品名称;多个名称之间使用,分割")
     private String goodsName;
}