flow-models/models/sources.yml
desmond-hui a1bdcbb529
An 1625/integrate moments minted api (#34)
* clone stages to dev

* add api integration for topshot metadata
2022-06-28 09:24:09 -07:00

67 lines
2.2 KiB
YAML

version: 2
sources:
- name: prod
database: chainwalkers
schema: prod
tables:
- name: flow_blocks
- name: flow_txs
- name: crosschain
database: flipside_prod_db
schema: crosschain
tables:
- name: address_labels
- name: silver
database: flipside_prod_db
schema: silver
tables:
- name: market_asset_metadata
- name: prices_v2
- name: flow_external
schema: bronze
loader: S3
tables:
- name: topshot_moments_minted_metadata_api
description: "External table of topshot moments minted metadata"
external:
location: "@{{target.database}}.bronze.analytics_external_tables/{{target.database}}/MOMENTS_MINTED_METADATA_API"
file_format: "( type = json, strip_outer_array = TRUE )"
auto_refresh: true
columns:
- name: contract
data_type: string
description: "the contract for minting belonging to a certain collection"
- name: id
data_type: string
description: "id of the NFT"
- name: data
data_type: variant
description: ""
- name: rarible_collections_api
description: "External table of collections available on rarible"
external:
location: "@{{target.database}}.bronze.analytics_external_tables/{{target.database}}/RARIBLE_COLLECTIONS_API"
file_format: "( type = json, strip_outer_array = TRUE )"
auto_refresh: true
- name: rarible_nft_metadata_api
description: "External table of collections available on rarible"
external:
location: "@{{target.database}}.bronze.analytics_external_tables/{{target.database}}/RARIBLE_NFT_METADATA_API"
file_format: "( type = json, strip_outer_array = TRUE )"
auto_refresh: true
columns:
- name: contract
data_type: string
description: "the contract for minting belonging to a certain collection"
- name: id
data_type: string
description: "id of the NFT"
- name: data
data_type: variant
description: ""