package com.tzy.pojo.item;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  poyee
 * @Date 2022-03-15 
 */

@Table ( name ="spu" )
@Data
public class Spu  implements Serializable {

	private static final long serialVersionUID =  5081925482565951828L;

   	@Column(name = "id" )
	private Long id;

	/**
	 * 类型
	 */
   	@Column(name = "type" )
	private String type;

   	@Column(name = "code" )
	private String code;

	/**
	 * 名称
	 */
   	@Column(name = "spu_name" )
	private String spuName;

   	@Column(name = "title" )
	private String title;

   	@Column(name = "spu_alias" )
	private String spuAlias;

   	@Column(name = "spu_desc" )
	private String spuDesc;

   	@Column(name = "spu_stock" )
	private Long spuStock;

   	@Column(name = "min_spu_price" )
	private BigDecimal minSpuPrice;

	private Integer minPoint;

   	@Column(name = "max_spu_price" )
	private BigDecimal maxSpuPrice;

   	@Column(name = "carousel_img_url" )
	private String carouselImgUrl;

   	@Column(name = "detail_img_url" )
	private String detailImgUrl;

   	@Column(name = "brand_id" )
	private Long brandId;

   	@Column(name = "brand_name" )
	private String brandName;

   	@Column(name = "first_cat_name" )
	private String firstCatName;

   	@Column(name = "second_cat_name" )
	private String secondCatName;

   	@Column(name = "attribute_json" )
	private String attributeJson;

   	@Column(name = "year" )
	private String year;

   	@Column(name = "sport" )
	private String sport;

   	@Column(name = "sets" )
	private String sets;

   	@Column(name = "manufacturer" )
	private String manufacturer;

   	@Column(name = "config" )
	private String config;

   	@Column(name = "act_type" )
	private String actType;

   	@Column(name = "act_start_time" )
	private Date actStartTime;

   	@Column(name = "act_end_time" )
	private Date actEndTime;

   	@Column(name = "icon_url" )
	private String iconUrl;

   	@Column(name = "unit" )
	private String unit;

	/**
	 * 商家id
	 */
   	@Column(name = "merchant_id" )
	private Long merchantId;
	private String merchantName;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Long status;

	/**
	 * 删除标记
	 */
   	@Column(name = "del_flag" )
	private Long delFlag;

   	@Column(name = "prop1" )
	private String prop1;

   	@Column(name = "prop2" )
	private String prop2;

   	@Column(name = "create_user_id" )
	private Long createUserId;

   	@Column(name = "create_time" )
	private Date createTime;

   	@Column(name = "update_user_id" )
	private Long updateUserId;

   	@Column(name = "update_time" )
	private Date updateTime;

	private Long paniniListId;

	private Integer shopType;

	private Integer showApplet;

	private String merchantAvatar;

	/**是否允许自提,默认0 拒绝 1同意*/
	private Integer pickUp;
	/**
	 * 运费,包邮为0
	 */
	private BigDecimal shippingCost;
	/**
	 * 关联系列id'
	 */
	private Long checkListId;
	/**兑换积分类型*/
	private String pointType;

	private String memBenefitsType;

	@Column(name = "sold_time" )
	private Date soldTime;

}
