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 = "ShopSpec对象", description = "规格")
public class ShopSpec implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

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

    @Schema(description = "商户ID")
    private Long merchantId;

    @Schema(description = "创建用户")
    private Integer userId;

    @Schema(description = "更新者")
    private Integer updater;

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

    @Schema(description = "状态, 0正常, 1待修,2异常已修，3异常未修")
    private Integer status;

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

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

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

}
