package com.ruoyi.mall.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.basic.domain.model.BaseAudit;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * sku信息对象 mall_sku
 *
 * @author zcc
 */
@ApiModel(description="sku信息对象")
@Data
@TableName("mall_sku")
public class Sku extends BaseAudit {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("PRODUCT_ID")
    private Long productId;

    @ApiModelProperty("sku编码")
    private String outSkuId;

    @ApiModelProperty("PRICE")
    private BigDecimal price;

    @ApiModelProperty("展示图片")
    private String pic;

    @ApiModelProperty("商品销售属性，json格式")
    private String spData;

    @ApiModelProperty("库存数")
    private Integer stock;
    private String unit;


}
