package com.izouma.nineth;

import com.izouma.nineth.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TokenHistory extends BaseEntity {

    private String tokenId;

    private String operation;

    @Column(precision = 10, scale = 2)
    private BigDecimal price;

    private String fromUser;

    private Long   fromUserId;

    private String fromAvatar;

    private String toUser;

    private Long   toUserId;

    private String toAvatar;
}
