-
Notifications
You must be signed in to change notification settings - Fork 1
/
app_diagram.yuml.me
28 lines (19 loc) · 1.19 KB
/
app_diagram.yuml.me
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[PortfolioEntry|id: int;symbol: string;name: string;portfolio_id: int]
[MarketOrder|id: int;filledPrice: decimal;fee: decimal;size: decimal,date: datetime;buy: bool;portfolio_entry_id: int]
[Portfolio|id: int; name: string;description: string;currencyCode: int]
[Portfolio]<>-0..*>[PortfolioEntry]
[PortfolioEntry]<>-0..*>[MarketOrder]
[PortfolioRepository]
[PortfolioEntryRepository]
[MarketOrderRepository]
[PortfolioRepository] -> [Portfolio]
[PortfolioEntryRepository] -> [PortfolioEntry]
[MarketOrderRepository] -> [MarketOrder]
[PortfolioService|createPortfolio();updatePortfolio();deletePortfolio();getPortfolio();getAllPortfolios()]
[PortfolioEntryService|addEntryTo(entry;portfolio_id: int); updateEntry(entry);deleteEntry(entry);getPortfolioEntries(portfolio_id: int)]
[MarketOrderService|addOrder(order
portfolio_entry_id: int);updateOrder(order);deleteOrder(order);getAllPortfolioEntryOrders(portfolio_entry_id: int)]
[SummaryService|getMarketOrderSummary(order, assetPrice);getPortfolioEntrySummary(orders, assetPrice);getPortfolioSummary(summaries)]
[PortfolioService] -> [PortfolioRepository]
[PortfolioEntryService] -> [PortfolioEntryRepository]
[MarketOrderService] -> [MarketOrderRepository]