package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商户商品库存
 *
 * @author 科技小王子
 * @since 2024-10-05 02:33:23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "GoodsStockInMerchant对象", description = "商户商品库存")
@TableName("shop_goods_stock_in_merchant")
public class GoodsStockInMerchant implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer goodsId;

    private Integer skuId;

    private Integer num;

    private Integer merchantId;

    private Integer stock;

    @ApiModelProperty(value = "状态, 0上架 1待上架 2待审核 3审核不通过")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Goods goods;

}
