|
1 | 1 | models:
|
2 | 2 | - name: stg_goldsky_borrower_operations_mezo__trove_updated
|
3 |
| - description: Processes raw trove updated data from borrower operations, transforming and normalizing currency fields for downstream analysis. |
| 3 | + description: >- |
| 4 | + Processes raw trove updated data from borrower operations, transforming and normalizing currency |
| 5 | + fields for downstream analysis. |
4 | 6 | columns:
|
5 | 7 | - name: block
|
6 | 8 | description: Block number in which this event occurred
|
7 |
| - |
| 9 | + data_type: INT64 |
8 | 10 | - name: block_number
|
9 | 11 | description: Block number as a high-precision numeric value
|
10 |
| - |
| 12 | + data_type: BIGNUMERIC |
11 | 13 | - name: transaction_hash
|
12 | 14 | description: Hash of the transaction that emitted this event
|
13 | 15 | data_tests:
|
14 | 16 | - not_null
|
15 | 17 |
|
| 18 | + data_type: STRING |
16 | 19 | - name: contract_id
|
17 | 20 | description: Address of the contract that emitted the event
|
18 | 21 | data_tests:
|
19 | 22 | - not_null
|
20 | 23 |
|
| 24 | + data_type: STRING |
21 | 25 | - name: borrower
|
22 | 26 | description: Address of the borrower
|
23 | 27 | data_tests:
|
24 | 28 | - not_null
|
25 | 29 |
|
| 30 | + data_type: STRING |
| 31 | + - name: last_interest_update_time |
| 32 | + description: Timestamp of the last interest update |
| 33 | + data_type: BIGNUMERIC |
| 34 | + - name: _gs_chain |
| 35 | + description: Chain where the event originated, e.g., 'mezo' |
| 36 | + data_type: STRING |
| 37 | + - name: _gs_gid |
| 38 | + description: Unique identifier from Goldsky for the event |
| 39 | + data_type: STRING |
| 40 | + - name: record_timestamp |
| 41 | + description: Timestamp of the event formatted as a datetime |
| 42 | + data_tests: |
| 43 | + - not_null |
| 44 | + data_type: TIMESTAMP |
| 45 | + - name: operation |
| 46 | + description: Type of operation performed on the trove |
| 47 | + data_type: STRING |
26 | 48 | - name: principal
|
27 | 49 | description: Principal debt amount (normalized currency)
|
28 | 50 | data_tests:
|
29 | 51 | - not_null
|
30 | 52 |
|
| 53 | + data_type: NUMERIC |
31 | 54 | - name: interest
|
32 | 55 | description: Interest amount (normalized currency)
|
33 |
| - |
| 56 | + data_type: NUMERIC |
34 | 57 | - name: collateral
|
35 | 58 | description: Collateral amount (normalized currency)
|
36 | 59 | data_tests:
|
37 | 60 | - not_null
|
38 | 61 |
|
| 62 | + data_type: NUMERIC |
39 | 63 | - name: stake
|
40 | 64 | description: Stake amount (normalized currency)
|
41 |
| - |
42 |
| - - name: interest_rate |
43 |
| - description: Interest rate for the trove. |
44 |
| - |
45 |
| - - name: last_interest_update_time |
46 |
| - description: Timestamp of the last interest update |
47 |
| - |
48 |
| - - name: operation |
49 |
| - description: Type of operation performed on the trove |
50 |
| - |
51 |
| - - name: _gs_chain |
52 |
| - description: Chain where the event originated, e.g., 'mezo' |
53 |
| - |
54 |
| - - name: _gs_gid |
55 |
| - description: Unique identifier from Goldsky for the event |
56 |
| - |
57 |
| - - name: record_timestamp |
58 |
| - description: Timestamp of the event formatted as a datetime |
59 |
| - data_tests: |
60 |
| - - not_null |
| 65 | + data_type: NUMERIC |
0 commit comments