package com.izouma.nineth.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.nineth.annotations.Searchable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel("惊喜盒子日志")
public class SurpriseBoxLog extends BaseEntity{

    @ExcelProperty("活动名称")
    @ApiModelProperty("活动名称")
    @Searchable
    private String name;

    @ExcelProperty("用户ID")
    @ApiModelProperty("用户ID")
    @Searchable
    private Long user_id;

    @ExcelProperty("手机号")
    @ApiModelProperty("手机号")
    private String phone;

    @ExcelProperty("是否发货")
    @ApiModelProperty("是否发货，true已发货")
    private boolean shipments ;

    @ExcelProperty("奖励类型")
    @ApiModelProperty("奖励类型（0藏品/盲盒，1实物，2空盒子）")
    private Integer type ;

    @ExcelProperty("奖励藏品ID")
    @ApiModelProperty("藏品ID/盲和ID（藏品类型才有）")
    @Searchable
    private Long collectionId;

    @ExcelProperty("图片")
    @Column(columnDefinition = "TEXT")
    @ApiModelProperty("图片")
    private String picUrl;

    @ExcelProperty("备注说明")
    @ApiModelProperty("备注说明")
    private String remarks;

    private int projectId;

}
