├── .gitignore ├── README.md ├── analyses └── .gitkeep ├── dbt_project.yml ├── extract_load_weather └── weather_data.py ├── macros ├── .gitkeep ├── generate_schema_name.sql └── positive_values.sql ├── models ├── intermediate │ ├── advanced_analytics │ │ ├── int_advanced_analytics.yml │ │ └── int_most_sold_product_per_zipcode.sql │ └── product │ │ ├── _int_product.yml │ │ ├── int_event_types_count.sql │ │ └── int_session_lengths.sql ├── marts │ ├── advanced_analytics │ │ ├── _advanced_analytics.yml │ │ └── adv_orders_weather_linear_regression.sql │ ├── core │ │ ├── _core.yml │ │ ├── dim_addresses.sql │ │ ├── dim_date.sql │ │ ├── dim_event_type.sql │ │ ├── dim_products.sql │ │ ├── dim_promos.sql │ │ ├── dim_shipping.sql │ │ ├── dim_status.sql │ │ ├── dim_time.sql │ │ ├── dim_users.sql │ │ ├── fct_budget.sql │ │ ├── fct_events.sql │ │ └── fct_order_items.sql │ ├── marketing │ │ ├── _marketing.yml │ │ └── mkt_customers.sql │ └── product │ │ ├── _product.yml │ │ └── prd_sessions.sql └── staging │ ├── google_sheets │ ├── _src_google_sheets.yml │ ├── _stg_google_sheets.yml │ └── stg_google_sheets__budget.sql │ ├── meteostat │ ├── _src_meteostat.yml │ ├── _stg_meteostat.yml │ └── stg_meteostat__weather_data.sql │ └── sql_server_dbo │ ├── _src_sql_server_dbo.yml │ ├── _stg_sql_server_dbo.yml │ ├── stg_sql_server_dbo__addresses.sql │ ├── stg_sql_server_dbo__events.sql │ ├── stg_sql_server_dbo__order_items.sql │ ├── stg_sql_server_dbo__orders.sql │ ├── stg_sql_server_dbo__products.sql │ ├── stg_sql_server_dbo__promos.sql │ └── stg_sql_server_dbo__users.sql ├── packages.yml ├── seeds └── .gitkeep ├── snapshots ├── .gitkeep ├── dim_products__snapshot.sql ├── dim_promos__snapshot.sql ├── dim_users__snapshot.sql └── fct_order_items__snapshot.sql └── tests ├── .gitkeep ├── stg_orders__dates_1.sql ├── stg_orders__dates_2.sql ├── stg_orders__order_total.sql ├── stg_orders__status_delivered_1.sql ├── stg_orders__status_delivered_2.sql ├── stg_orders__status_delivered_3.sql ├── stg_orders__status_delivered_4.sql ├── stg_orders__status_preparing_1.sql ├── stg_orders__status_preparing_2.sql ├── stg_orders__status_preparing_3.sql ├── stg_orders__status_preparing_4.sql ├── stg_orders__status_shipped_1.sql ├── stg_orders__status_shipped_2.sql └── stg_orders__status_shipped_3.sql /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/README.md -------------------------------------------------------------------------------- /analyses/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/dbt_project.yml -------------------------------------------------------------------------------- /extract_load_weather/weather_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/extract_load_weather/weather_data.py -------------------------------------------------------------------------------- /macros/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /macros/generate_schema_name.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/macros/generate_schema_name.sql -------------------------------------------------------------------------------- /macros/positive_values.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/macros/positive_values.sql -------------------------------------------------------------------------------- /models/intermediate/advanced_analytics/int_advanced_analytics.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/intermediate/advanced_analytics/int_advanced_analytics.yml -------------------------------------------------------------------------------- /models/intermediate/advanced_analytics/int_most_sold_product_per_zipcode.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/intermediate/advanced_analytics/int_most_sold_product_per_zipcode.sql -------------------------------------------------------------------------------- /models/intermediate/product/_int_product.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/intermediate/product/_int_product.yml -------------------------------------------------------------------------------- /models/intermediate/product/int_event_types_count.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/intermediate/product/int_event_types_count.sql -------------------------------------------------------------------------------- /models/intermediate/product/int_session_lengths.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/intermediate/product/int_session_lengths.sql -------------------------------------------------------------------------------- /models/marts/advanced_analytics/_advanced_analytics.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/advanced_analytics/_advanced_analytics.yml -------------------------------------------------------------------------------- /models/marts/advanced_analytics/adv_orders_weather_linear_regression.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/advanced_analytics/adv_orders_weather_linear_regression.sql -------------------------------------------------------------------------------- /models/marts/core/_core.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/_core.yml -------------------------------------------------------------------------------- /models/marts/core/dim_addresses.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_addresses.sql -------------------------------------------------------------------------------- /models/marts/core/dim_date.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_date.sql -------------------------------------------------------------------------------- /models/marts/core/dim_event_type.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_event_type.sql -------------------------------------------------------------------------------- /models/marts/core/dim_products.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_products.sql -------------------------------------------------------------------------------- /models/marts/core/dim_promos.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_promos.sql -------------------------------------------------------------------------------- /models/marts/core/dim_shipping.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_shipping.sql -------------------------------------------------------------------------------- /models/marts/core/dim_status.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_status.sql -------------------------------------------------------------------------------- /models/marts/core/dim_time.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_time.sql -------------------------------------------------------------------------------- /models/marts/core/dim_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/dim_users.sql -------------------------------------------------------------------------------- /models/marts/core/fct_budget.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/fct_budget.sql -------------------------------------------------------------------------------- /models/marts/core/fct_events.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/fct_events.sql -------------------------------------------------------------------------------- /models/marts/core/fct_order_items.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/core/fct_order_items.sql -------------------------------------------------------------------------------- /models/marts/marketing/_marketing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/marketing/_marketing.yml -------------------------------------------------------------------------------- /models/marts/marketing/mkt_customers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/marketing/mkt_customers.sql -------------------------------------------------------------------------------- /models/marts/product/_product.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/product/_product.yml -------------------------------------------------------------------------------- /models/marts/product/prd_sessions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/marts/product/prd_sessions.sql -------------------------------------------------------------------------------- /models/staging/google_sheets/_src_google_sheets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/google_sheets/_src_google_sheets.yml -------------------------------------------------------------------------------- /models/staging/google_sheets/_stg_google_sheets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/google_sheets/_stg_google_sheets.yml -------------------------------------------------------------------------------- /models/staging/google_sheets/stg_google_sheets__budget.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/google_sheets/stg_google_sheets__budget.sql -------------------------------------------------------------------------------- /models/staging/meteostat/_src_meteostat.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/meteostat/_src_meteostat.yml -------------------------------------------------------------------------------- /models/staging/meteostat/_stg_meteostat.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/meteostat/_stg_meteostat.yml -------------------------------------------------------------------------------- /models/staging/meteostat/stg_meteostat__weather_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/meteostat/stg_meteostat__weather_data.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/_src_sql_server_dbo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/_src_sql_server_dbo.yml -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/_stg_sql_server_dbo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/_stg_sql_server_dbo.yml -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__addresses.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__addresses.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__events.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__events.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__order_items.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__order_items.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__orders.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__products.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__products.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__promos.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__promos.sql -------------------------------------------------------------------------------- /models/staging/sql_server_dbo/stg_sql_server_dbo__users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/models/staging/sql_server_dbo/stg_sql_server_dbo__users.sql -------------------------------------------------------------------------------- /packages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/packages.yml -------------------------------------------------------------------------------- /seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /snapshots/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /snapshots/dim_products__snapshot.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/snapshots/dim_products__snapshot.sql -------------------------------------------------------------------------------- /snapshots/dim_promos__snapshot.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/snapshots/dim_promos__snapshot.sql -------------------------------------------------------------------------------- /snapshots/dim_users__snapshot.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/snapshots/dim_users__snapshot.sql -------------------------------------------------------------------------------- /snapshots/fct_order_items__snapshot.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/snapshots/fct_order_items__snapshot.sql -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/stg_orders__dates_1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__dates_1.sql -------------------------------------------------------------------------------- /tests/stg_orders__dates_2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__dates_2.sql -------------------------------------------------------------------------------- /tests/stg_orders__order_total.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__order_total.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_delivered_1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_delivered_1.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_delivered_2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_delivered_2.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_delivered_3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_delivered_3.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_delivered_4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_delivered_4.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_preparing_1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_preparing_1.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_preparing_2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_preparing_2.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_preparing_3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_preparing_3.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_preparing_4.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_preparing_4.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_shipped_1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_shipped_1.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_shipped_2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_shipped_2.sql -------------------------------------------------------------------------------- /tests/stg_orders__status_shipped_3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xikitoptr/ELT_e-commerce/HEAD/tests/stg_orders__status_shipped_3.sql --------------------------------------------------------------------------------