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 ="sku" )
@Data
public class Sku  implements Serializable {

	private static final long serialVersionUID =  5578322051549766622L;

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

	/**
	 * spuid
	 */
   	@Column(name = "spu_id" )
	private Long spuId;

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

	/**
	 * 唯一编码
	 */
   	@Column(name = "code" )
	private String code;

	/**
	 * 名称
	 */
   	@Column(name = "sku_name" )
	private String skuName;

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

	/**
	 * 描述
	 */
   	@Column(name = "description" )
	private String description;

	/**
	 * sku可卖库存
	 */
   	@Column(name = "sku_stock" )
	private Long skuStock;

	/**
	 * sku实际库存
	 */
   	@Column(name = "real_stock" )
	private Long realStock;

	/**
	 * sku售卖数量
	 */
   	@Column(name = "sold_stock" )
	private Long soldStock;

	/**
	 * 零售价
	 */
   	@Column(name = "retail_price" )
	private BigDecimal retailPrice;

	/**
	 * 活动价
	 */
   	@Column(name = "act_price" )
	private BigDecimal actPrice;

	/**
	 * 批发价
	 */
   	@Column(name = "standard_price" )
	private BigDecimal standardPrice;

   	@Column(name = "cost" )
	private BigDecimal cost;

   	@Column(name = "tax_rate" )
	private BigDecimal taxRate;

	/**
	 * 封面图
	 */
   	@Column(name = "carousel_img_url" )
	private String carouselImgUrl;

	/**
	 * 轮播图(以逗号隔开)
	 */
   	@Column(name = "detail_img_url" )
	private String detailImgUrl;

	/**
	 * 品牌id
	 */
   	@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;

	/**
	 * 规格属性name,value(json)
	 */
   	@Column(name = "property_json" )
	private String propertyJson;

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

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

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

	/**
	 * 状态
	 */
   	@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 Date soldTime;
	private String year;
	private String sport;
	/**厂商 */
	private String manufacturer;
	private String sets;
	private String merchantName;
	private String merchantAvatar;
	private String config;
	/**每笔订单最少购买(份)*/
	private Integer orderQuotaMin;
	/**每笔订单最多购买(份)*/
	private Integer orderQuotaMax;
	/**每位用户最多购买(份)*/
	private Integer userQuotaMax;
	@Column(name = "act_start_time" )
	private Date actStartTime;

	@Column(name = "act_end_time" )
	private Date actEndTime;
	/**活动类型 人气hot 优惠劵coupon*/
	private String actType;
	/**营销信息*/
	private String marketingInfo;
	/**优惠劵id*/
	private Integer couponId;
	/**开启活动才有活动价,1开0关*/
	private Integer actOpen;
	/**限购类型,默认空,永久,day,month,week*/
	private String limitType;
	/**额外限购json,UserLimitConfig*/
	private String userLimitConfig;
	private Integer liveMaxTime; // 用户直播时长(分钟)
}
