Changes between Version 1 and Version 2 of design


Ignore:
Timestamp:
12/26/25 02:25:48 (3 days ago)
Author:
231020
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • design

    v1 v2  
    22== Релациско мапирање
    33
    4 === Ознаки
     4=== Oзнаки
     5
     6 - PK (Primary Key): bold + underline
     7 - FK (Foreign Key): означени со * со табела во заграда
     8 - bold: задолжителен (NOT NULL) атрибут
    59
    610=== Табели
     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
    734
    835