Skip to content

Commit

Permalink
Use images instead of direct mermaid js code blocks until it is fully…
Browse files Browse the repository at this point in the history
… supported
  • Loading branch information
deadwards90 committed Jul 29, 2021
1 parent 0e61d88 commit df25b4b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
Binary file added assets/images/accounts/JISA-ER.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/accounts/Status-SD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions diagrams/account-jisa-er.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
erDiagram
Child ||--|| JISA : owns
RegisteredContact ||--|| JISA : "contact of"
JISA ||--o{ Portfolios : "owns"
10 changes: 10 additions & 0 deletions diagrams/account-status.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
stateDiagram-v2
[*] --> Pending
Pending --> Active
Pending --> Suspended
Pending --> Closing
Active --> Suspended
Active --> Closing
Suspended --> Active
Suspended --> Closing
Closing --> Closed
22 changes: 3 additions & 19 deletions docs/accounts/Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ tags: [Accounts]

Accounts are an entity which hold information about the type product a client may wish to open, and validate that one of more parties can open a product of that type. Each account can have multiple parties and also have multiple Portfolios.

For example, here is how a JISA could look
For example, here are the links that a JISA would have

```mermaid
erDiagram
Child ||--|| JISA : owns
RegisteredContact ||--|| JISA : "contact of"
JISA ||--o{ Portfolios : "owns"
```
![Account-JISA-ER](../../assets/images/accounts/JISA-ER.png)

Or put simply, a JISA is owned by a child and has a registered contact associated with it. It can have one or more portfolios attached to it.

Expand All @@ -33,18 +28,7 @@ Each of these will have their own requirements for opening, which will be checke
## Account Lifecycle

```mermaid
stateDiagram-v2
[*] --> Pending
Pending --> Active
Pending --> Suspended
Pending --> Closing
Active --> Suspended
Active --> Closing
Suspended --> Active
Suspended --> Closing
Closing --> Closed
```
![Account-Status-SD](../../assets/images/accounts/Status-SD.png)

| Status | Explanation |
|---|---|
Expand Down

0 comments on commit df25b4b

Please sign in to comment.