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

import java.math.BigDecimal;

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 hzs
 * @since 2023-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_TRADE_BONUS_SEQ")
@TableName("CU_MEMBER_TRADE_BONUS")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberTradeBonus extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 消费类型（1=订单 2=提现）
     */
    @TableField("CONSUME_TYPE")
    private Integer consumeType;

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

    /**
     * 会员奖金发放明细表
     */
    @TableField("PK_TRADE_DETAIL")
    private Long pkTradeDetail;

    /**
     * 使用可消费金额
     */
    @TableField("CONSUME_MONEY")
    private BigDecimal consumeMoney;

    /**
     * 使用可提现金额
     */
    @TableField("CASH_MONEY")
    private BigDecimal cashMoney;


}
