| | 11 | - User(**__id__**, **username**, **password**, **email**, **role**) |
| | 12 | |
| | 13 | - Portfolio(**__id__**, balance, **user_id* (User)**) |
| | 14 | |
| | 15 | - PortfolioHolding(**__id__**, **quantity**, **avg_price**, **portfolio_id* (Portfolio)**, **stock_id**) |
| | 16 | |
| | 17 | - Stock(**__id__**, **symbol**, name, current_price, last_price, percentage, turnover, last_updated) |
| | 18 | |
| | 19 | - StockHistory(**__id__**, **price**, **timestamp**, stock_id) |
| | 20 | |
| | 21 | - TradeRequest(**__id__**, **type**, **status**, **quantity**, **price_per_unit**, timestamp, **user_id**, **portfolio_id**, **stock_id**) |
| | 22 | |
| | 23 | - Transaction(**__id__**, **type**, **quantity**, **price**, **timestamp**, **origin**, **user_id* (User)**, **stock_id* (Stock)**) |
| | 24 | |
| | 25 | - WatchlistEntry(__id__, price_above, price_below, **user_id* (User)**, **stock_id* (Stock)**) |
| | 26 | |
| | 27 | - PendingLink(__token__, **email**, **provider**, **expires_at**, **created_at**) |
| | 28 | |
| | 29 | |
| | 30 | |
| | 31 | |
| | 32 | |
| | 33 | |