package com.jeesharp.business.modules.member.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;

import java.math.BigDecimal;

/**
 * 积分规则等级明细实体，映射 {@code app_member_points_rule_level}。
 *
 * @author jeesharp
 * @since 2026-06-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_member_points_rule_level")
@Schema(description = "会员积分规则等级明细")
public class MemberPointsRuleLevel extends BaseEntity<MemberPointsRuleLevel> {

    @Schema(description = "规则ID")
    private String ruleId;

    @Schema(description = "会员等级ID")
    private String levelId;

    @Schema(description = "等级编码（冗余）")
    private String levelCode;

    @Schema(description = "该等级固定赠送积分")
    private Integer pointsValue;

    @Schema(description = "额外倍率")
    private BigDecimal extraMultiplier;

    @Schema(description = "状态：0-禁用 1-启用")
    private Integer status;
}
