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

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;

/**
 * 会员奖金-拓展收益延缓表
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_BONUS_DELAY_SEQ")
@TableName("CU_MEMBER_BONUS_DELAY")
public class CuMemberBonusDelay extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

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

    /**
     * 收益发放前
     */
    @TableField("BEFORE_GRANT_INCOME")
    private BigDecimal beforeGrantIncome;

    /**
     * 发放收益
     */
    @TableField("GRANT_INCOME")
    private BigDecimal grantIncome;

    /**
     * 收益发放后
     */
    @TableField("AFTER_GRANT_INCOME")
    private BigDecimal afterGrantIncome;

    /**
     * 会员奖金主表ID
     */
    @TableField("PK_BONUS")
    private Long pkBonus;

}
