package com.hzs.common.domain.member.account;

import java.math.BigDecimal;

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

/**
 * <p>
 * 会员兑换复消积分
 * </p>
 *
 * @author hzs
 * @since 2023-10-13
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("CU_MEMBER_REDEEM_POINTS")
@KeySequence("CU_MEMBER_REDEEM_POINTS_SEQ")
public class CuMemberRedeemPoints extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 订单主键
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 金额
     */
    @TableField("AMOUNT")
    private BigDecimal amount;

    /**
     * 次数
     */
    @TableField("TIMES")
    private Integer times;

    /**
     * 封顶值
     */
    @TableField("CAPPED_VALUE")
    private Integer cappedValue;

    /**
     * 兑换类型（1:兑换 2：撤单 3：奖金）
     */
    @TableField("REDEEM_TYPE")
    private Integer redeemType;


}
