package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
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:44:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopSpecValue对象", description = "规格值")
public class ShopSpecValue implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "规格值ID")
    @TableId(value = "spec_value_id", type = IdType.AUTO)
    private Integer specValueId;

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

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

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "排序号")
    private Integer sortNumber;

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

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
