Diagrams
Visual representations of the IWM Platform architecture and flows.
User Flow Overview
Complete user journey diagram showing region selection, authentication, platform navigation, KYC flow, and partner activation.
Source file: docs/diagrams/user-flow.mmd
Full diagram: See
docs/diagrams/user-flow.mmdfor the complete Mermaid source with all flows.
System Architecture
High-level overview of system components and their relationships.
Module Communication
How modules communicate: async events vs sync injection.
Clean Architecture
Request flow through architectural layers.
Database Schemas
Schema relationships across domains.
Order State Machine
Order lifecycle and state transitions.
MLM Tree (Closure Table)
Partner hierarchy and closure table structure.
Commission Flow
Async commission calculation process.
Payout Flow
Partner payout request and processing.
Auth Flow
Authentication flows: registration, login, refresh.