package cn.com.ctop.kuaishou.modules.material.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.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 选品库——产品与商品信息
 *
 * @author jeecg-boot
 * @version V1.0
 * @date 2022-04-19
 */
@Data
@TableName("ctop_product_material")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ctop_product_material对象", description = "选品库——产品与商品信息")
public class ProductMaterial {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 产品id
     */
    @Excel(name = "产品id", width = 15)
    @ApiModelProperty(value = "产品id")
    private Long productId;
    /**
     * 产品名
     */
    @Excel(name = "产品名", width = 15)
    @ApiModelProperty(value = "产品名")
    private java.lang.String productName;
    /**
     * 商品名
     */
    @Excel(name = "商品名", width = 15)
    @ApiModelProperty(value = "商品名")
    private java.lang.String tradeName;
    /**
     * 商品品类
     */
    @Excel(name = "商品品类", width = 15)
    @ApiModelProperty(value = "商品品类")
    private java.lang.String tradeType;
    /**
     * 跑量单品
     */
    @Excel(name = "跑量单品", width = 15)
    @ApiModelProperty(value = "跑量单品")
    private java.lang.String itemRun;
    /**
     * 视频链接
     */
    @Excel(name = "视频链接", width = 15)
    @ApiModelProperty(value = "视频链接")
    private java.lang.String videoUrl;
    /**
     * 唯一MD5码
     */
    @Excel(name = "唯一MD5码", width = 15)
    @ApiModelProperty(value = "唯一MD5码")
    private java.lang.String signature;
    /**
     * 开始月份
     */
    @Excel(name = "开始月份", width = 15)
    @ApiModelProperty(value = "开始月份")
    private java.lang.String startMonth;
    /**
     * 结束月份
     */
    @Excel(name = "结束月份", width = 15)
    @ApiModelProperty(value = "结束月份")
    private java.lang.String endMonth;
    /**
     * 创建人id
     */
    @Excel(name = "创建人id", width = 15)
    @ApiModelProperty(value = "创建人id")
    private java.lang.String userId;
    /**
     * 视频上传人id
     */
    @Excel(name = "视频上传人", width = 15)
    @ApiModelProperty(value = "视频上传人")
    private java.lang.String uploaderId;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;

    @TableField(exist = false)
    private String startDate;
    @TableField(exist = false)
    private String endDate;
}
