package com.bizzan.bitrade.entity;

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

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

import org.hibernate.annotations.CreationTimestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

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

@ApiModel("下单记录")
@Entity
@Data
public class GameRecord {

	@GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    private Long id;
	
	@ApiModelProperty("创建时间")
	@CreationTimestamp
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
	@ApiModelProperty("结算时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date clearTime;
	@ApiModelProperty("场次名称")
    private String batchName;
	@ApiModelProperty("备注")
    private String remark;
	@ApiModelProperty("用户ID")
    private Long memberId;
	@ApiModelProperty("用户名")
    private String username;
	@ApiModelProperty("状态 0未结算 1已结算")
    private int status;
	@ApiModelProperty("返佣状态")
    private int rewardStatus;
	@ApiModelProperty("下单金额")
    private BigDecimal amount;
	@ApiModelProperty("手续费")
    private BigDecimal fee;
	@ApiModelProperty("盈利")
    private BigDecimal profit;
}
