Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions models/80_marts/dim1_campaign.sql

This file was deleted.

14 changes: 0 additions & 14 deletions models/80_marts/dim1_campaign.yml

This file was deleted.

1 change: 0 additions & 1 deletion models/80_marts/fct_assets_locked.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ with
sequence_number as id,
canonical_segment_id as fk_dim1__users,
transaction_hash as fk_transaction_hash,
recipient as fk_dim1__recipient,
token_adress as fk_token_adress,
amount,
token_usd_value,
Expand Down
6 changes: 0 additions & 6 deletions models/80_marts/fct_assets_locked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ models:
meta: {}
tags: []
description: ''
- name: fk_dim1__recipient
data_type: STRING
config:
meta: {}
tags: []
description: ''
- name: fk_token_adress
data_type: STRING
config:
Expand Down
1 change: 0 additions & 1 deletion models/80_marts/fct_donated.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ with
select
transaction_hash as id,
canonical_segment_id as fk_dim1__users,
donor as fk_dim1__donor,
amount,
1 as donation_count,
date(record_timestamp) as record_date,
Expand Down
6 changes: 0 additions & 6 deletions models/80_marts/fct_donated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ models:
meta: {}
tags: []
description: ''
- name: fk_dim1__donor
data_type: STRING
config:
meta: {}
tags: []
description: ''
- name: fk_dim1__users
data_type: STRING
config:
Expand Down
1 change: 0 additions & 1 deletion models/80_marts/fct_liquidation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ with
id,
transaction_hash as fk_transaction_hash,
canonical_segment_id as fk_dim1__users,
borrower as fk_dim1__borrower,
coll_gas_compensation,
gas_compensation,
liquidated_principal,
Expand Down
6 changes: 0 additions & 6 deletions models/80_marts/fct_liquidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ models:
meta: {}
tags: []
description: ''
- name: fk_dim1__borrower
data_type: STRING
config:
meta: {}
tags: []
description: ''
- name: record_date
data_type: DATE
config:
Expand Down
5 changes: 4 additions & 1 deletion models/80_marts/fct_loans.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ with
select
transaction_hash as id,
canonical_segment_id as fk_dim1__users,
borrower as fk_dim1__borrower,
collateral_usd_value,
principal,
interest,
collateral,
stake,
1 as loan_count,
date(record_timestamp) as record_date,
case when operation = 'new_loan' then 1 else 0 end as new_loan_count,
Expand Down
22 changes: 20 additions & 2 deletions models/80_marts/fct_loans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,26 @@ models:
meta: {}
tags: []
description: ''
- name: fk_dim1__borrower
data_type: STRING
- name: principal
data_type: FLOAT64
config:
meta: {}
tags: []
description: ''
- name: interest
data_type: FLOAT64
config:
meta: {}
tags: []
description: ''
- name: collateral
data_type: FLOAT64
config:
meta: {}
tags: []
description: ''
- name: stake
data_type: FLOAT64
config:
meta: {}
tags: []
Expand Down
5 changes: 1 addition & 4 deletions models/80_marts/fct_orders.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ with
select
order_id as id,
canonical_segment_id as fk_dim1__users,
transaction_hash as fk_transaction_hash, -- check -->
-- transaction_hash or order_id as id
customer as fk_dim1__customer, -- check -->
-- customer or canonical_segment_id or both
transaction_hash as fk_transaction_hash,
product_id as fk_dim1__products,
price,
1 as order_count,
Expand Down
6 changes: 0 additions & 6 deletions models/80_marts/fct_orders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ models:
meta: {}
tags: []
description: ''
- name: fk_dim1__customer
data_type: STRING
config:
meta: {}
tags: []
description: ''
- name: fk_transaction_hash
data_type: STRING
config:
Expand Down