package com.jeesharp.business.modules.mall.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 类目与规格白名单关联，映射表 {@code mall_category_spec}。
 * <p>同一规格可在多个类目下分别配置；模板侧通过「绑定本模板的类目」并集得到可选规格。</p>
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_category_spec")
@Schema(description = "类目可用规格关联")
public class MallCategorySpec extends BaseEntity<MallCategorySpec> {

    @Schema(description = "类目ID")
    private String categoryId;

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

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