package com.hzs.common.domain.activity.add;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 加购活动明细表
 * </p>
 *
 * @author bd
 * @since 2025-10-13
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("AC_ADD_UPGRADE_RECORD")
@KeySequence("AC_ADD_UPGRADE_RECORD_SEQ")
public class AcAddUpgradeRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 活动基本配置主键
     */
    @TableField("PK_BASE_ID")
    private Long pkBaseId;

    /**
     * 规则主键
     */
    @TableField("PK_RULE_ID")
    private Long pkRuleId;

    /**
     * 会员ID
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 原等级
     */
    @TableField("PK_ORIGIN_GRADE")
    private Integer pkOriginGrade;

    /**
     * 升级后等级
     */
    @TableField("PK_UPGRADE_GRADE")
    private Integer pkUpgradeGrade;

    /**
     * 订单ID
     */
    @TableField("PK_ORDER_ID")
    private Long pkOrderId;


}
