Changes between Version 5 and Version 6 of design
- Timestamp:
- 01/29/26 17:05:53 (10 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
design
v5 v6 9 9 10 10 === Табели 11 - User(**__id__**, **username**, **password**, **email**, **role**)11 - users(**__id__**, **username**, **password**, **email**, **role**) 12 12 13 - Portfolio(**__id__**, balance, **user_id* (User)**)13 - portfolios(**__id__**, balance, **user_id* (User)**) 14 14 15 - PortfolioHolding(**__id__**, **quantity**, **avg_price**, **portfolio_id* (Portfolio)**, **stock_id**)15 - portfolio_holdings(**__id__**, **quantity**, **avg_price**, **portfolio_id* (Portfolio)**, **stock_id**) 16 16 17 - Stock(**__id__**, **symbol**, name, current_price, last_price, percentage, turnover, last_updated)17 - stock(**__id__**, **symbol**, name, current_price, last_price, percentage, turnover, last_updated) 18 18 19 - StockHistory(**__id__**, **price**, **timestamp**, stock_id)19 - stock_history(**__id__**, **price**, **timestamp**, **stock_id*(Stock)) 20 20 21 - TradeRequest(**__id__**, **type**, **status**, **quantity**, **price_per_unit**, timestamp, **user_id**, **portfolio_id**, **stock_id**)21 - trade_request(**__id__**, **type**, **status**, **quantity**, **price_per_unit**, timestamp, **user_id**, **portfolio_id*(Portfolio), **stock_id**) 22 22 23 - Transaction(**__id__**, **type**, **quantity**, **price**, **timestamp**, **origin**, **user_id* (User)**, **stock_id* (Stock)**)23 - transaction(**__id__**, **type**, **quantity**, **price**, **timestamp**, **origin**, **user_id* (User)**, **stock_id* (Stock)**) 24 24 25 - WatchlistEntry(__id__, price_above, price_below, **user_id* (User)**, **stock_id* (Stock)**)25 - watchlist(__id__, price_above, price_below, **user_id* (User)**, **stock_id* (Stock)**) 26 26 27 - PendingLink(__token__, **email**, **provider**, **expires_at**, **created_at**)27 - oauth_pending_links(__token__, **email**, **provider**, **expires_at**, **created_at**,**user_id*(User)) 28 28 29 29 … … 35 35 36 36 === DDL скрипта за бришење на табелите и креирање на табелите 37 [[html(<a href="https://develop.finki.ukim.mk/projects_finished/TradingMK/attachment/wiki/design/ddl.sql">ddl.sql</a>)]] 37 [attachment:ddl.sql] 38 === DML скрипта за полнење на табелите со податоци 38 39 39 === DML скрипта за полнење на табелите со податоци 40 [[html(<a href="https://develop.finki.ukim.mk/projects_finished/TradingMK/attachment/wiki/design/dml.sql">dml.sql</a>)]] 40 [attachment:dml.sql] 41 41 42 42 == Релациски дијаграм 43 43 44 [[Image(" tradingmk - public.png")]]44 [[Image("relational_schema.png")]] 45 45
