mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-02-17 03:23:13 +00:00
remove txhash unique constraint
This commit is contained in:
parent
d0e105388d
commit
e6821bdbb4
@ -21,7 +21,7 @@ class Transaction(TimestampedModel, table=True):
|
||||
# --- Columns --- #
|
||||
|
||||
block_id: Optional[int] = Field(default=None, foreign_key="block.id", nullable=False)
|
||||
hash: HexBytes = Field(nullable=False, unique=True)
|
||||
hash: HexBytes = Field(nullable=False)
|
||||
operations: List[Operation] = Field(
|
||||
default_factory=list, sa_column=Column(PydanticJsonColumn(Operation, many=True), nullable=False)
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user