JSData & Media Start a project

← All connectors

Schema · Entity relationship diagram

Cruva tables and relationships

TikTok Shop affiliate performance from Cruva: daily shop stats (GMV, units, videos, views, commission) plus daily snapshots of creator, video and product performance.

Live4 tables · 2 relationships
ConnectPaste an API key
Default schemacruva
Source API docscruva.com
DestinationsAmazon Redshift, Google BigQuery, Snowflake, PostgreSQL, Amazon S3
  • shop_stats_daily is long format: one row per shop, day and metric.
  • Creator, video and product tables are daily snapshots of Cruva's rolling 7-day window (one per load_date).
video_performance.product_id,load_date joins product_performance.product_id,load_datevideo_performance.handle,load_date joins creator_performance.handle,load_datecreator_performancecreator_performance43_jsdata_key VARCHAR(32) · primary key_jsdata_keyvarcharload_date DATEload_datedatehandle VARCHAR(256)handlevarcharshop_id VARCHAR(64)shop_idvarcharwindow_from DATEwindow_fromdatewindow_to DATEwindow_todatecreator_oecuid VARCHAR(128)creator_oecuidvarcharnickname VARCHAR(512)nicknamevarcharmsg_name VARCHAR(256)msg_namevarchargmv DECIMAL(20,4)gmvdecimalcommission DECIMAL(20,4)commissiondecimalunits_sold BIGINTunits_soldbigintunits_sold_range VARCHAR(64)units_sold_rangevarcharviews BIGINTviewsbigintlikes BIGINTlikesbigintcomments BIGINTcommentsbigintvideo_count BIGINTvideo_countbigintlive_count BIGINTlive_countbigintvideo_avg_view_cnt DECIMAL(20,4)video_avg_view_cntdecimalvideo_engagement DECIMAL(20,4)video_engagementdecimalengagement_rate DECIMAL(20,6)engagement_ratedecimalconversion_rate DECIMAL(20,6)conversion_ratedecimalavg_gmv_per_view DECIMAL(20,6)avg_gmv_per_viewdecimalavg_order_value DECIMAL(20,4)avg_order_valuedecimalpost_rate DECIMAL(20,6)post_ratedecimalfollower_cnt BIGINTfollower_cntbigintmed_gmv_revenue DECIMAL(20,4)med_gmv_revenuedecimalmed_gmv_revenue_range VARCHAR(64)med_gmv_revenue_rangevarcharis_fast_growing BOOLEANis_fast_growingboolage VARCHAR(64)agevarchargender VARCHAR(64)gendervarcharrace VARCHAR(64)racevarcharlanguage VARCHAR(64)languagevarchareconomic_status VARCHAR(64)economic_statusvarcharbody_type VARCHAR(64)body_typevarcharface_visibility VARCHAR(64)face_visibilityvarchartone VARCHAR(64)tonevarchartop_follower_gender VARCHAR(64)top_follower_gendervarchartop_follower_ages VARCHAR(1024)top_follower_agesvarcharcategory VARCHAR(2048)categoryvarchartags VARCHAR(4096)tagsvarcharbio VARCHAR(4096)biovarchar_jsdata_synced TIMESTAMP_jsdata_syncedtimestampshop_stats_dailyshop_stats_daily11_jsdata_key VARCHAR(32) · primary key_jsdata_keyvarcharshop_id VARCHAR(64)shop_idvarcharstat_date DATEstat_datedatemetric_key VARCHAR(64)metric_keyvarcharmetric_title VARCHAR(256)metric_titlevarcharcount DECIMAL(20,4)countdecimaltotal_count DECIMAL(20,4)total_countdecimalwindow_from DATEwindow_fromdatewindow_to DATEwindow_todateload_date DATEload_datedate_jsdata_synced TIMESTAMP_jsdata_syncedtimestampvideo_performancevideo_performance33_jsdata_key VARCHAR(32) · primary key_jsdata_keyvarcharload_date DATE · → product_performance.product_id,load_date · → creator_performance.handle,load_dateload_datedatehandle VARCHAR(256) · → creator_performance.handle,load_datehandlevarcharproduct_id VARCHAR(64) · → product_performance.product_id,load_dateproduct_idvarcharshop_id VARCHAR(64)shop_idvarcharwindow_from DATEwindow_fromdatewindow_to DATEwindow_todatevideo_id VARCHAR(64)video_idvarchartitle VARCHAR(4096)titlevarcharpost_time DATEpost_timedateproducts VARCHAR(65535)productsvarcharcampaign_id VARCHAR(64)campaign_idvarchargmv DECIMAL(20,4)gmvdecimalcommission DECIMAL(20,4)commissiondecimalunits_sold BIGINTunits_soldbigintviews BIGINTviewsbigintlikes BIGINTlikesbigintcomments BIGINTcommentsbigintctr DECIMAL(20,6)ctrdecimalroi DECIMAL(20,6)roidecimalcpa DECIMAL(20,4)cpadecimalad_spend DECIMAL(20,4)ad_spenddecimalengagement_rate DECIMAL(20,6)engagement_ratedecimalconversion_rate DECIMAL(20,6)conversion_ratedecimalavg_gmv_per_view DECIMAL(20,6)avg_gmv_per_viewdecimalavg_order_value DECIMAL(20,4)avg_order_valuedecimalvideo_link VARCHAR(1024)video_linkvarcharexpiration_date VARCHAR(64)expiration_datevarcharusage_rights_id VARCHAR(64)usage_rights_idvarcharcontent_overview VARCHAR(65535)content_overviewvarchartranscript VARCHAR(65535)transcriptvarcharhooks VARCHAR(65535)hooksvarchar_jsdata_synced TIMESTAMP_jsdata_syncedtimestampproduct_performanceproduct_performance18_jsdata_key VARCHAR(32) · primary key_jsdata_keyvarcharload_date DATEload_datedateproduct_id VARCHAR(64)product_idvarcharshop_id VARCHAR(64)shop_idvarcharwindow_from DATEwindow_fromdatewindow_to DATEwindow_todateproduct_name VARCHAR(2048)product_namevarcharprice DECIMAL(20,4)pricedecimalstatus INTEGERstatusintis_open_plan BOOLEANis_open_planbooltotal_gmv DECIMAL(20,4)total_gmvdecimalaffiliate_gmv DECIMAL(20,4)affiliate_gmvdecimalvideo_gmv DECIMAL(20,4)video_gmvdecimallive_gmv DECIMAL(20,4)live_gmvdecimalshop_tab_gmv DECIMAL(20,4)shop_tab_gmvdecimalshop_tab_impressions BIGINTshop_tab_impressionsbigintunits_sold BIGINTunits_soldbigint_jsdata_synced TIMESTAMP_jsdata_syncedtimestamp
Primary keyForeign keyReferencesJoins on (not a key)

Drag to pan, scroll or pinch to zoom, click a table to see what it joins to.

Table reference

4 tables · click a table for its columns
shop_stats_daily11 columnsshow in diagram

Primary key: _jsdata_key

ColumnTypeKeyDescription
_jsdata_keyPrimary key.varchar(32)PK Primary key.
shop_idvarchar(64)
stat_datedate
metric_keyvarchar(64)
metric_titlevarchar(256)
countdecimal(20,4)
total_countdecimal(20,4)
window_fromdate
window_todate
load_datedate
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
creator_performance43 columnsshow in diagram

Primary key: _jsdata_key

ColumnTypeKeyDescription
_jsdata_keyPrimary key.varchar(32)PK Primary key.
shop_idvarchar(64)
load_datedate
window_fromdate
window_todate
creator_oecuidvarchar(128)
handlevarchar(256)
nicknamevarchar(512)
msg_namevarchar(256)
gmvdecimal(20,4)
commissiondecimal(20,4)
units_soldbigint
units_sold_rangevarchar(64)
viewsbigint
likesbigint
commentsbigint
video_countbigint
live_countbigint
video_avg_view_cntdecimal(20,4)
video_engagementdecimal(20,4)
engagement_ratedecimal(20,6)
conversion_ratedecimal(20,6)
avg_gmv_per_viewdecimal(20,6)
avg_order_valuedecimal(20,4)
post_ratedecimal(20,6)
follower_cntbigint
med_gmv_revenuedecimal(20,4)
med_gmv_revenue_rangevarchar(64)
is_fast_growingboolean
agevarchar(64)
gendervarchar(64)
racevarchar(64)
languagevarchar(64)
economic_statusvarchar(64)
body_typevarchar(64)
face_visibilityvarchar(64)
tonevarchar(64)
top_follower_gendervarchar(64)
top_follower_agesvarchar(1024)
categoryvarchar(2048)
tagsvarchar(4096)
biovarchar(4096)
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
video_performance33 columnsshow in diagram

Primary key: _jsdata_key

ColumnTypeKeyDescription
_jsdata_keyPrimary key.varchar(32)PK Primary key.
shop_idvarchar(64)
load_dateJoins to product_performance.product_id,load_date. Joins to creator_performance.handle,load_date.dateFKJoins to product_performance.product_id,load_date. Joins to creator_performance.handle,load_date.
window_fromdate
window_todate
video_idvarchar(64)
handleJoins to creator_performance.handle,load_date.varchar(256)FKJoins to creator_performance.handle,load_date.
titlevarchar(4096)
post_timedate
product_idJoins to product_performance.product_id,load_date.varchar(64)FKJoins to product_performance.product_id,load_date.
productsvarchar(65535)
campaign_idvarchar(64)
gmvdecimal(20,4)
commissiondecimal(20,4)
units_soldbigint
viewsbigint
likesbigint
commentsbigint
ctrdecimal(20,6)
roidecimal(20,6)
cpadecimal(20,4)
ad_spenddecimal(20,4)
engagement_ratedecimal(20,6)
conversion_ratedecimal(20,6)
avg_gmv_per_viewdecimal(20,6)
avg_order_valuedecimal(20,4)
video_linkvarchar(1024)
expiration_datevarchar(64)
usage_rights_idvarchar(64)
content_overviewvarchar(65535)
transcriptvarchar(65535)
hooksvarchar(65535)
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
product_performance18 columnsshow in diagram

Primary key: _jsdata_key

ColumnTypeKeyDescription
_jsdata_keyPrimary key.varchar(32)PK Primary key.
shop_idvarchar(64)
load_datedate
window_fromdate
window_todate
product_idvarchar(64)
product_namevarchar(2048)
pricedecimal(20,4)
statusinteger
is_open_planboolean
total_gmvdecimal(20,4)
affiliate_gmvdecimal(20,4)
video_gmvdecimal(20,4)
live_gmvdecimal(20,4)
shop_tab_gmvdecimal(20,4)
shop_tab_impressionsbigint
units_soldbigint
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.

Connect Cruva All connectors