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-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_TRADE_DETAIL_SEQ")
@TableName("CU_MEMBER_TRADE_DETAIL")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberTradeDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 发放期间
     */
    @TableField("period")
    private Integer period;

    /**
     * 交易流水主键
     */
    @TableField("PK_MEMBER_TRADE")
    private Long pkMemberTrade;

    /**
     * 发放金额
     */
    @TableField("GRANT_MONEY")
    private BigDecimal grantMoney;

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

}
