Batch Layer
Conceptual Model¶
Entity Relationship Diagram¶
Entity Descriptions and Relationships¶
STABLECOIN - Represents each stablecoin type (crvUSD, GHO, frxUSD, etc.)
SUPPLY - The circulating/total supply of a stablecoin at a point in time - Relationship: Stablecoin EXISTS WITH Supply
TRANSFER - Transfer of stablecoins between addresses - Relationship: Address SENDS/RECEIVES Stablecoin
ADDRESS - Wallet or contract address that holds/transacts stablecoins - Relationship: Address HOLDS Stablecoin
Logical Model¶
Platform-independent detailed design with normalization
Why dimensional model?¶
- Analyzing stablecoin transactions, transfers, and market behavior, suitable for OLAP queries (aggregations, time-series analysis)
- 3NF optimizes for OLTP (transactional systems) with normalized tables to prevent data anomalies during writes
- OBT can work for simple analytics, this project has multiple business processes (transfers, contract interactions, time-based trends) that would create a massively denormalized table with sparse columns and data duplication.
- Data Vault: Frequent schema changes
- Intuitive star schema: