diff --git a/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.sql b/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.sql index ba03c6f..1bf84bb 100644 --- a/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.sql +++ b/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.sql @@ -1,17 +1,13 @@ {{ config( materialized = 'view', - meta={ - 'database_tags':{ - 'table': { - 'PROTOCOL': 'DEEPNFTVALUE' - } - } - } + persist_docs ={ "relation": true, + "columns": true }, + meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' }}} ) }} SELECT collection_name, - lower(collection_address) AS collection_address, + LOWER(collection_address) AS collection_address, floor_price, valuation_max, valuation_min, diff --git a/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.yml b/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.yml new file mode 100644 index 0000000..2de63b2 --- /dev/null +++ b/models/deepnftvalue/gold/deepnftvalue_eth__fact_collections.yml @@ -0,0 +1,21 @@ +version: 2 +models: + - name: deepnftvalue_eth__fact_collections + description: This table contains collection information for Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks. The table is updated daily. + + columns: + - name: COLLECTION_NAME + description: Name of NFT collection, e.g. Azuki or CryptoPunks. + - name: COLLECTION_ADDRESS + description: Contract address of NFT collection. + - name: FLOOR_PRICE + description: Floor price of NFT collection. + - name: VALUATION_MAX + description: Maximum valuation of NFT collection. + - name: VALUATION_MIN + description: Minimum valuation of NFT collection. + - name: ATTRIBUTES + description: Attributes of NFT collection. + - name: VALUATION_TIMESTAMP + description: Timestamp of valuation. + \ No newline at end of file diff --git a/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.sql b/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.sql index 7fa83b7..12ff4e8 100644 --- a/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.sql +++ b/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.sql @@ -1,17 +1,13 @@ {{ config( materialized = 'view', - meta={ - 'database_tags':{ - 'table': { - 'PROTOCOL': 'DEEPNFTVALUE' - } - } - } + persist_docs ={ "relation": true, + "columns": true }, + meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' }}} ) }} SELECT collection_name, - lower(contract_address) AS collection_address, + LOWER(contract_address) AS collection_address, token_id, active_offer, attributes, diff --git a/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.yml b/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.yml new file mode 100644 index 0000000..9685da0 --- /dev/null +++ b/models/deepnftvalue/gold/deepnftvalue_eth__fact_tokens.yml @@ -0,0 +1,34 @@ +version: 2 +models: + - name: deepnftvalue_eth__fact_tokens + description: This table contains a row for each token in the Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks collections. The table is updated daily. + + columns: + - name: COLLECTION_NAME + description: Name of NFT collection, e.g. Azuki or CryptoPunks. + - name: COLLECTION_ADDRESS + description: Contract address of NFT collection. + - name: TOKEN_ID + description: Token ID of NFT. + - name: ACTIVE_OFFER + description: Includes information about the active offer for the token, if any. + - name: ATTRIBUTES + description: Attributes of NFT collection. + - name: IMAGE + description: Image URL of NFT. + - name: IS_FLAGGED + description: Indicates whether the token is flagged. + - name: OWNER + description: Address of token owner and ENS name, if available. + - name: RARITY + description: Rarity of NFT. + - name: RARITY_RANK + description: Rarity rank of NFT. + - name: TOP_BID + description: Includes information about the top bid for the token, if any. + - name: VALUATION + description: Valuation of NFT, as of updated_timestamp. + - name: UPDATED_TIMESTAMP + description: Timestamp of the last update for the token. + + \ No newline at end of file diff --git a/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.sql b/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.sql index 88c13fc..3bad027 100644 --- a/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.sql +++ b/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.sql @@ -1,18 +1,14 @@ {{ config( materialized = 'view', - meta={ - 'database_tags':{ - 'table': { - 'PROTOCOL': 'DEEPNFTVALUE' - } - } - } + persist_docs ={ "relation": true, + "columns": true }, + meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' }}} ) }} SELECT date_day AS valuation_date, collection_name, - lower(contract_address) AS collection_address, + LOWER(contract_address) AS collection_address, token_id, currency, price, diff --git a/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.yml b/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.yml new file mode 100644 index 0000000..941fb3d --- /dev/null +++ b/models/deepnftvalue/gold/deepnftvalue_eth__fact_valuations.yml @@ -0,0 +1,22 @@ +version: 2 +models: + - name: deepnftvalue_eth__fact_valuations + description: This table contains a valuation for each token in the Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks collections, every day. The table is updated daily. + + columns: + - name: VALUATION_DATE + description: Date of valuation. + - name: COLLECTION_NAME + description: Name of NFT collection, e.g. Azuki or CryptoPunks. + - name: COLLECTION_ADDRESS + description: Contract address of NFT collection. + - name: TOKEN_ID + description: Token ID of NFT. + - name: CURRENCY + description: Valuation currency. + - name: PRICE + description: Valuation price. + - name: UPDATED_TIMESTAMP + description: Timestamp of the last update for the token. + + \ No newline at end of file diff --git a/models/doc_descriptions/general/__overview__.md b/models/doc_descriptions/general/__overview__.md index aa4f95d..6fb6974 100644 --- a/models/doc_descriptions/general/__overview__.md +++ b/models/doc_descriptions/general/__overview__.md @@ -49,6 +49,14 @@ The documentation included here details the design of the External tables and vi - [defillama__fact_options_volume](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.defillama.fact_options_volume) - [defillama__fact_protocol_fees_revenue](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.defillama.fact_protocol_fees_revenue) +**DeepNFTValue** + +[DeepNFTValue Documentation](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api) + +- [deepnftvalue_eth__fact_collections](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.deepnftvalue_eth.fact_collections) +- [deepnftvalue_eth__fact_tokens](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.deepnftvalue_eth.fact_tokens) +- [deepnftvalue_eth__fact_valuations](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.deepnftvalue_eth.fact_valuations) + ## **Data Model Overview**