package com.bizzan.bitrade.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.CreationTimestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Entity
@Data
public class AgentDailyInfo {
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
    private Long id;
	
	private Long memberId;

	@ApiModelProperty("金额")
	private BigDecimal balance;
	@CreationTimestamp
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	private BigDecimal recharge = BigDecimal.ZERO;
	private BigDecimal withdraw = BigDecimal.ZERO;
	private BigDecimal award = BigDecimal.ZERO;
	private BigDecimal profit = BigDecimal.ZERO;
	private BigDecimal loss = BigDecimal.ZERO;
	private BigDecimal fee = BigDecimal.ZERO;
}
