Database Schema
PostgreSQL — 52 tables with full column definitions, constraints, indexes, and relationships.
Table Relationships
users ─────────────┬──────────────────────────────────────────────────────┐
│ │ │
│ 1:N │ 1:1 │ 1:N
▼ ▼ ▼
kyc_applications businesses ──────┐ admin_permissions
│ │
│ 1:1 │ 1:N
▼ ▼
data_rooms tokens ─────────────────┐
│ │ │
┌───────┴───────┐ │ 1:N │ 1:N
▼ ▼ ▼ ▼
data_room_documents data_room_access token_allocations orders
│ (matched)
wallets ◄─── users × tokens (1 row per holding) ▼
│ trades
▼
wallet_transactions ◄──────────────────────────────────────┘
audit_logs ◄─── logs ALL sensitive actions across entire platform
user_consents / data_subject_requests / breach_logs ◄─── PDPL complianceSchema Statistics
52
Tables
582
Total Columns
110
Indexes
99
Foreign Keys