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;

/**
 * SPU 扩展属性值，一行一键，与分类绑定模板中的 {@code attr_key} 对应。
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_spu_ext_attr")
@Schema(description = "SPU 扩展属性值")
public class MallSpuExtAttr extends BaseEntity<MallSpuExtAttr> {

    /**
     * SPU 主键
     */
    @Schema(description = "SPU ID")
    private String spuId;

    /**
     * 属性键
     */
    @Schema(description = "属性键")
    private String attrKey;

    /**
     * 属性值（非 JSON 列；多选可存逗号分隔等约定串）
     */
    @Schema(description = "属性值")
    private String attrValue;
}
