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

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

import java.math.BigDecimal;

/**
 * <p>
 * 会员充值详情表
 * </p>
 *
 * @author hzs
 * @since 2022-11-05
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@KeySequence("CU_MEMBER_RECHARGE_DETAIL_SEQ")
@TableName("CU_MEMBER_RECHARGE_DETAIL")
public class CuMemberRechargeDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 充值单号
     */
    @TableField("RECHARGE_CODE")
    private String rechargeCode;

    /**
     * 交款方式
     */
    @TableField("PAYMENT_METHOD")
    private Integer paymentMethod;

    /**
     * 交款金额
     */
    @TableField("PAYMENT_AMOUNT")
    private BigDecimal paymentAmount;


    /**
     * 交款后的余额
     */
    @TableField("PAYMENT_BALANCE")
    private BigDecimal paymentBalance;


    /**
     * 交款前的余额
     */
    @TableField("PAYMENT_BEFORE_BALANCE")
    private BigDecimal paymentBeforeBalance;

}
