package com.bizzan.bitrade.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

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

@Data
@Entity
@ApiModel(value="ExchangeWallet对象", description="会员钱包")
public class ExchangeWallet implements Serializable {

    private static final long serialVersionUID = 1L;

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    private Long id;

    private String address;

    @ApiModelProperty(value = "可用余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "冻结余额")
    private BigDecimal frozenBalance;

    @ApiModelProperty(value = "钱包不是锁定")
    private Integer isLock;

    private Long memberId;

    @ApiModelProperty(value = "待释放总量")
    private BigDecimal toReleased;

    private Integer version;

    private String coinId;
    
    private BigDecimal openPrice;
    
    private Date openTime;


}
