|
|
@@ -8,10 +8,13 @@ import lombok.NoArgsConstructor;
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
+import javax.persistence.Index;
|
|
|
+import javax.persistence.Table;
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
@Data
|
|
|
@Entity
|
|
|
+@Table(indexes = {@Index(columnList = "tokenId")})
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
@Builder
|
|
|
@@ -26,13 +29,13 @@ public class TokenHistory extends BaseEntity {
|
|
|
|
|
|
private String fromUser;
|
|
|
|
|
|
- private Long fromUserId;
|
|
|
+ private Long fromUserId;
|
|
|
|
|
|
private String fromAvatar;
|
|
|
|
|
|
private String toUser;
|
|
|
|
|
|
- private Long toUserId;
|
|
|
+ private Long toUserId;
|
|
|
|
|
|
private String toAvatar;
|
|
|
}
|