Database Schema Overview
This document provides an overview of the database schema used by the Salescentri platform.
Core Tables
Wallets
Stores wallet information including balances and metadata.
| Column | Type | Description |
|---|---|---|
| id | uuid | Primary key |
| account_id | uuid | Reference to account |
| balance | decimal | Current balance |
| currency | varchar | Currency code |
| created_at | timestamp | Creation time |
| updated_at | timestamp | Last update time |
Transactions
Records of wallet transactions and balance changes.
Relationships
- One Account has many Wallets
- One Wallet has many Transactions