Open
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
There was a problem hiding this comment.
Pull request overview
Adds support for persisting ERC-721 token metadata by introducing an nft_metadata model to the Prisma schema (intended to correspond to a new nft_metadata table in Postgres).
Changes:
- Add
nft_metadataPrisma model with composite primary key(contract, tokenId) - Map select camelCase fields to snake_case DB columns (
token_id,token_uri,fetched_at)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
598bb4a to
cb9be30
Compare
d751436 to
1d9cf78
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the database schema to improve support for NFTs by adding new indexes to the
eventtable. These changes are reflected in both the raw SQL schema and the Prisma schema definition, which will help optimize queries related to NFT events.NFT support and indexing improvements:
eventtable in bothprisma/rsk-explorer-database.sqlandprisma/schema.prismato optimize queries for NFT-related data:(address, topic0, topic3, block_number DESC, log_index DESC)to speed up lookups involving NFT transfer events. [1] [2](topic0, topic1)to optimize event queries by topic. [1] [2](topic0, topic2)for further event filtering efficiency. [1] [2]Documentation: