package com.bizzan.bitrade.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.*;
import java.util.Date;

/**
 * 合约返佣用邀请记录
 * @author sulinxin
 */
@Data
@Entity
public class MemberWeightUpper {

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    private Long id;
    private Long memberId;
    private Long firstMemberId;
    private Integer rate;
    private Integer followRate;
    private Integer dividendRate;
    private Integer wcRate;
    private String upper;
    private String allUppers;
    /**
     * 创建时间
     */
    @CreationTimestamp
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
