package com.ruoyi.mall.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;

import java.math.BigDecimal;
/**
 * sku信息对象 mall_sku
 *
 * @author zcc
 */

@Data
@TableName("mall_sku")
public class Sku extends BaseAudit {
    private static final long serialVersionUID = 1L;


    @TableId
    private Long id;


    @Excel(name = "PRODUCT_ID")
    private Long productId;



    @Excel(name = "sku编码")
    private String outSkuId;

    @Excel(name = "PRICE")
    private BigDecimal price;


    @Excel(name = "展示图片")
    private String pic;


    @Excel(name = "商品销售属性，json格式")
    //"{\"颜色\":\"粉\",\"尺寸\":\"大\"}"
    private String spData;


    @Excel(name = "库存数")
    private Integer stock;

    private String unit;
}
