package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品多规格
 *
 * @author 科技小王子
 * @since 2025-05-01 09:43:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopGoodsSpec对象", description = "商品多规格")
public class ShopGoodsSpec implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "商品ID")
    private Integer goodsId;

    @Schema(description = "规格ID")
    private Integer specId;

    @Schema(description = "规格名称")
    private String specName;

    @Schema(description = "规格值")
    private String specValue;

    @Schema(description = "活动类型 0=商品，1=秒杀，2=砍价，3=拼团")
    private Boolean type;

    @Schema(description = "租户id")
    private Integer tenantId;

}
