Skip to content

Commit

Permalink
feat: add TokenTxCount entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-ThinhVu committed May 7, 2024
1 parent b560a17 commit 83e5202
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public class AddressTxCount {
@Column(name = "address", nullable = false)
String address;

@Column(name = "txCount", nullable = false)
@Column(name = "tx_count")
Long txCount;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package org.cardanofoundation.explorer.common.entity.ledgersync;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

@Entity
@Table(name = "token_tx_count")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class TokenTxCount {
@Id
@Column(name = "ident", nullable = false)
Long ident;

@Column(name = "tx_count")
Long txCount;
}

0 comments on commit 83e5202

Please sign in to comment.