209 lines
17 KiB
XML
209 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
<!-- Generated by graphviz version 2.48.0 (0)
|
||
-->
|
||
<!-- Title: XStake Pages: 1 -->
|
||
<svg width="426pt" height="724pt"
|
||
viewBox="0.00 0.00 425.60 724.10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(28.8 695.3)">
|
||
<title>XStake</title>
|
||
<polygon fill="white" stroke="transparent" points="-28.8,28.8 -28.8,-695.3 396.8,-695.3 396.8,28.8 -28.8,28.8"/>
|
||
<text text-anchor="middle" x="184" y="-652.1" font-family="Arial Bold" font-size="13.00">XStake domain model</text>
|
||
<!-- m_AdminUser -->
|
||
<g id="node1" class="node">
|
||
<title>m_AdminUser</title>
|
||
<path fill="none" stroke="black" d="M12,-47C12,-47 150,-47 150,-47 156,-47 162,-53 162,-59 162,-59 162,-130 162,-130 162,-136 156,-142 150,-142 150,-142 12,-142 12,-142 6,-142 0,-136 0,-130 0,-130 0,-59 0,-59 0,-53 6,-47 12,-47"/>
|
||
<text text-anchor="start" x="49" y="-129.2" font-family="Arial Bold" font-size="11.00">AdminUser</text>
|
||
<polyline fill="none" stroke="black" points="0,-122 162,-122 "/>
|
||
<text text-anchor="start" x="7" y="-108.5" font-family="Arial" font-size="10.00">email </text>
|
||
<text text-anchor="start" x="34" y="-108.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗ U</text>
|
||
<text text-anchor="start" x="7" y="-95.5" font-family="Arial" font-size="10.00">encrypted_password </text>
|
||
<text text-anchor="start" x="101" y="-95.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="7" y="-82.5" font-family="Arial" font-size="10.00">remember_created_at </text>
|
||
<text text-anchor="start" x="105" y="-82.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||
<text text-anchor="start" x="7" y="-69.5" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
|
||
<text text-anchor="start" x="117" y="-69.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||
<text text-anchor="start" x="7" y="-56.5" font-family="Arial" font-size="10.00">reset_password_token </text>
|
||
<text text-anchor="start" x="109" y="-56.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||
</g>
|
||
<!-- m_Balance -->
|
||
<g id="node2" class="node">
|
||
<title>m_Balance</title>
|
||
<path fill="none" stroke="black" d="M223,-560C223,-560 343,-560 343,-560 349,-560 355,-566 355,-572 355,-572 355,-617 355,-617 355,-623 349,-629 343,-629 343,-629 223,-629 223,-629 217,-629 211,-623 211,-617 211,-617 211,-572 211,-572 211,-566 217,-560 223,-560"/>
|
||
<text text-anchor="start" x="259.5" y="-616.2" font-family="Arial Bold" font-size="11.00">Balance</text>
|
||
<polyline fill="none" stroke="black" points="211,-609 355,-609 "/>
|
||
<text text-anchor="start" x="218" y="-595.5" font-family="Arial" font-size="10.00">amount </text>
|
||
<text text-anchor="start" x="254" y="-595.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||
<text text-anchor="start" x="218" y="-582.5" font-family="Arial" font-size="10.00">currency_id </text>
|
||
<text text-anchor="start" x="272" y="-582.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
<text text-anchor="start" x="218" y="-569.5" font-family="Arial" font-size="10.00">user_id </text>
|
||
<text text-anchor="start" x="253" y="-569.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
</g>
|
||
<!-- m_BuyCryptoOrder -->
|
||
<g id="node3" class="node">
|
||
<title>m_BuyCryptoOrder</title>
|
||
<path fill="none" stroke="black" d="M210,-435C210,-435 356,-435 356,-435 362,-435 368,-441 368,-447 368,-447 368,-518 368,-518 368,-524 362,-530 356,-530 356,-530 210,-530 210,-530 204,-530 198,-524 198,-518 198,-518 198,-447 198,-447 198,-441 204,-435 210,-435"/>
|
||
<text text-anchor="start" x="237" y="-517.2" font-family="Arial Bold" font-size="11.00">BuyCryptoOrder</text>
|
||
<polyline fill="none" stroke="black" points="198,-510 368,-510 "/>
|
||
<text text-anchor="start" x="205" y="-496.5" font-family="Arial" font-size="10.00">currency_id </text>
|
||
<text text-anchor="start" x="259" y="-496.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
<text text-anchor="start" x="205" y="-483.5" font-family="Arial" font-size="10.00">paid_amount_cents </text>
|
||
<text text-anchor="start" x="293" y="-483.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||
<text text-anchor="start" x="205" y="-470.5" font-family="Arial" font-size="10.00">received_amount </text>
|
||
<text text-anchor="start" x="283" y="-470.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||
<text text-anchor="start" x="205" y="-457.5" font-family="Arial" font-size="10.00">status </text>
|
||
<text text-anchor="start" x="236" y="-457.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="205" y="-444.5" font-family="Arial" font-size="10.00">user_id </text>
|
||
<text text-anchor="start" x="240" y="-444.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
</g>
|
||
<!-- m_Currency -->
|
||
<g id="node4" class="node">
|
||
<title>m_Currency</title>
|
||
<path fill="none" stroke="black" d="M21,-398C21,-398 141,-398 141,-398 147,-398 153,-404 153,-410 153,-410 153,-429 153,-429 153,-435 147,-441 141,-441 141,-441 21,-441 21,-441 15,-441 9,-435 9,-429 9,-429 9,-410 9,-410 9,-404 15,-398 21,-398"/>
|
||
<text text-anchor="start" x="54.5" y="-428.2" font-family="Arial Bold" font-size="11.00">Currency</text>
|
||
<polyline fill="none" stroke="black" points="9,-421 153,-421 "/>
|
||
<text text-anchor="start" x="16" y="-407.5" font-family="Arial" font-size="10.00">name </text>
|
||
<text text-anchor="start" x="44" y="-407.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
</g>
|
||
<!-- m_Currency->m_Balance -->
|
||
<g id="edge9" class="edge">
|
||
<title>m_Currency->m_Balance</title>
|
||
<path fill="none" stroke="black" d="M98.77,-441.41C119.93,-468.12 158.38,-513.63 198,-545.5 201.86,-548.61 205.95,-551.65 210.15,-554.6"/>
|
||
<polygon fill="black" stroke="black" points="208.6,-557.35 217.82,-559.79 212.14,-552.14 208.6,-557.35"/>
|
||
</g>
|
||
<!-- m_Currency->m_BuyCryptoOrder -->
|
||
<g id="edge6" class="edge">
|
||
<title>m_Currency->m_BuyCryptoOrder</title>
|
||
<path fill="none" stroke="black" d="M150.27,-441C162.68,-444.91 175.82,-449.05 188.81,-453.14"/>
|
||
<polygon fill="black" stroke="black" points="188.23,-456.27 197.76,-455.97 190.13,-450.26 188.23,-456.27"/>
|
||
</g>
|
||
<!-- m_SellCryptoOrder -->
|
||
<g id="node6" class="node">
|
||
<title>m_SellCryptoOrder</title>
|
||
<path fill="none" stroke="black" d="M214.5,-310C214.5,-310 351.5,-310 351.5,-310 357.5,-310 363.5,-316 363.5,-322 363.5,-322 363.5,-393 363.5,-393 363.5,-399 357.5,-405 351.5,-405 351.5,-405 214.5,-405 214.5,-405 208.5,-405 202.5,-399 202.5,-393 202.5,-393 202.5,-322 202.5,-322 202.5,-316 208.5,-310 214.5,-310"/>
|
||
<text text-anchor="start" x="238" y="-392.2" font-family="Arial Bold" font-size="11.00">SellCryptoOrder</text>
|
||
<polyline fill="none" stroke="black" points="202.5,-385 363.5,-385 "/>
|
||
<text text-anchor="start" x="210" y="-371.5" font-family="Arial" font-size="10.00">currency_id </text>
|
||
<text text-anchor="start" x="264" y="-371.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
<text text-anchor="start" x="210" y="-358.5" font-family="Arial" font-size="10.00">paid_amount </text>
|
||
<text text-anchor="start" x="269" y="-358.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||
<text text-anchor="start" x="210" y="-345.5" font-family="Arial" font-size="10.00">received_amount_cents </text>
|
||
<text text-anchor="start" x="317" y="-345.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||
<text text-anchor="start" x="210" y="-332.5" font-family="Arial" font-size="10.00">status </text>
|
||
<text text-anchor="start" x="241" y="-332.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="210" y="-319.5" font-family="Arial" font-size="10.00">user_id </text>
|
||
<text text-anchor="start" x="245" y="-319.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
</g>
|
||
<!-- m_Currency->m_SellCryptoOrder -->
|
||
<g id="edge8" class="edge">
|
||
<title>m_Currency->m_SellCryptoOrder</title>
|
||
<path fill="none" stroke="black" d="M151.39,-397.99C165.03,-393.76 179.51,-389.27 193.68,-384.88"/>
|
||
<polygon fill="black" stroke="black" points="194.78,-387.84 202.45,-382.16 192.92,-381.82 194.78,-387.84"/>
|
||
</g>
|
||
<!-- m_StakeOrder -->
|
||
<g id="node7" class="node">
|
||
<title>m_StakeOrder</title>
|
||
<path fill="none" stroke="black" d="M223,-185C223,-185 343,-185 343,-185 349,-185 355,-191 355,-197 355,-197 355,-268 355,-268 355,-274 349,-280 343,-280 343,-280 223,-280 223,-280 217,-280 211,-274 211,-268 211,-268 211,-197 211,-197 211,-191 217,-185 223,-185"/>
|
||
<text text-anchor="start" x="251" y="-267.2" font-family="Arial Bold" font-size="11.00">StakeOrder</text>
|
||
<polyline fill="none" stroke="black" points="211,-260 355,-260 "/>
|
||
<text text-anchor="start" x="218" y="-246.5" font-family="Arial" font-size="10.00">amount </text>
|
||
<text text-anchor="start" x="254" y="-246.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||
<text text-anchor="start" x="218" y="-233.5" font-family="Arial" font-size="10.00">currency_id </text>
|
||
<text text-anchor="start" x="272" y="-233.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
|
||
<text text-anchor="start" x="218" y="-220.5" font-family="Arial" font-size="10.00">pool_name </text>
|
||
<text text-anchor="start" x="269" y="-220.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="218" y="-207.5" font-family="Arial" font-size="10.00">status </text>
|
||
<text text-anchor="start" x="249" y="-207.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="218" y="-194.5" font-family="Arial" font-size="10.00">user_id </text>
|
||
<text text-anchor="start" x="253" y="-194.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
</g>
|
||
<!-- m_Currency->m_StakeOrder -->
|
||
<g id="edge10" class="edge">
|
||
<title>m_Currency->m_StakeOrder</title>
|
||
<path fill="none" stroke="black" d="M100.24,-397.8C122.24,-372.15 160.91,-328.76 198,-295.5 201.47,-292.38 205.09,-289.26 208.79,-286.17"/>
|
||
<polygon fill="black" stroke="black" points="211.04,-288.4 215.99,-280.25 207.04,-283.53 211.04,-288.4"/>
|
||
</g>
|
||
<!-- m_FiatBalance -->
|
||
<g id="node5" class="node">
|
||
<title>m_FiatBalance</title>
|
||
<path fill="none" stroke="black" d="M223,-86C223,-86 343,-86 343,-86 349,-86 355,-92 355,-98 355,-98 355,-143 355,-143 355,-149 349,-155 343,-155 343,-155 223,-155 223,-155 217,-155 211,-149 211,-143 211,-143 211,-98 211,-98 211,-92 217,-86 223,-86"/>
|
||
<text text-anchor="start" x="250" y="-142.2" font-family="Arial Bold" font-size="11.00">FiatBalance</text>
|
||
<polyline fill="none" stroke="black" points="211,-135 355,-135 "/>
|
||
<text text-anchor="start" x="218" y="-121.5" font-family="Arial" font-size="10.00">amount_cents </text>
|
||
<text text-anchor="start" x="283" y="-121.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||
<text text-anchor="start" x="218" y="-108.5" font-family="Arial" font-size="10.00">amount_currency </text>
|
||
<text text-anchor="start" x="297" y="-108.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="218" y="-95.5" font-family="Arial" font-size="10.00">user_id </text>
|
||
<text text-anchor="start" x="253" y="-95.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
</g>
|
||
<!-- m_User -->
|
||
<g id="node8" class="node">
|
||
<title>m_User</title>
|
||
<path fill="none" stroke="black" d="M12,-172C12,-172 150,-172 150,-172 156,-172 162,-178 162,-184 162,-184 162,-281 162,-281 162,-287 156,-293 150,-293 150,-293 12,-293 12,-293 6,-293 0,-287 0,-281 0,-281 0,-184 0,-184 0,-178 6,-172 12,-172"/>
|
||
<text text-anchor="start" x="66.5" y="-280.2" font-family="Arial Bold" font-size="11.00">User</text>
|
||
<polyline fill="none" stroke="black" points="0,-273 162,-273 "/>
|
||
<text text-anchor="start" x="7" y="-259.5" font-family="Arial" font-size="10.00">email </text>
|
||
<text text-anchor="start" x="34" y="-259.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗ U</text>
|
||
<text text-anchor="start" x="7" y="-246.5" font-family="Arial" font-size="10.00">encrypted_password </text>
|
||
<text text-anchor="start" x="101" y="-246.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="7" y="-233.5" font-family="Arial" font-size="10.00">first_name </text>
|
||
<text text-anchor="start" x="56" y="-233.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="7" y="-220.5" font-family="Arial" font-size="10.00">last_name </text>
|
||
<text text-anchor="start" x="56" y="-220.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="7" y="-207.5" font-family="Arial" font-size="10.00">remember_created_at </text>
|
||
<text text-anchor="start" x="105" y="-207.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||
<text text-anchor="start" x="7" y="-194.5" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
|
||
<text text-anchor="start" x="117" y="-194.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||
<text text-anchor="start" x="7" y="-181.5" font-family="Arial" font-size="10.00">reset_password_token </text>
|
||
<text text-anchor="start" x="109" y="-181.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||
</g>
|
||
<!-- m_User->m_Balance -->
|
||
<g id="edge3" class="edge">
|
||
<title>m_User->m_Balance</title>
|
||
<path fill="none" stroke="black" d="M118.97,-293.21C134.07,-320.11 150.62,-352.6 162,-383.5 187.49,-452.71 154.51,-485.93 198,-545.5 200.01,-548.25 202.23,-550.88 204.6,-553.37"/>
|
||
<polygon fill="black" stroke="black" points="202.54,-555.76 211.23,-559.69 206.89,-551.2 202.54,-555.76"/>
|
||
</g>
|
||
<!-- m_User->m_BuyCryptoOrder -->
|
||
<g id="edge5" class="edge">
|
||
<title>m_User->m_BuyCryptoOrder</title>
|
||
<path fill="none" stroke="black" d="M111.75,-293.26C132.6,-332.2 162.94,-382.4 198,-420.5 200.55,-423.28 203.25,-426.01 206.04,-428.69"/>
|
||
<polygon fill="black" stroke="black" points="203.97,-431.07 212.73,-434.85 208.24,-426.43 203.97,-431.07"/>
|
||
</g>
|
||
<!-- m_User->m_FiatBalance -->
|
||
<g id="edge4" class="edge">
|
||
<title>m_User->m_FiatBalance</title>
|
||
<path fill="none" stroke="black" d="M162.2,-187.59C181.54,-176.76 201.91,-165.35 220.26,-155.07"/>
|
||
</g>
|
||
<!-- m_User->m_SellCryptoOrder -->
|
||
<g id="edge7" class="edge">
|
||
<title>m_User->m_SellCryptoOrder</title>
|
||
<path fill="none" stroke="black" d="M162.2,-282.62C173.96,-289.98 186.11,-297.57 197.95,-304.97"/>
|
||
<polygon fill="black" stroke="black" points="196.38,-307.7 205.68,-309.8 199.72,-302.36 196.38,-307.7"/>
|
||
</g>
|
||
<!-- m_User->m_StakeOrder -->
|
||
<g id="edge2" class="edge">
|
||
<title>m_User->m_StakeOrder</title>
|
||
<path fill="none" stroke="black" d="M162.2,-232.5C175.14,-232.5 188.54,-232.5 201.49,-232.5"/>
|
||
<polygon fill="black" stroke="black" points="201.83,-235.65 210.83,-232.5 201.83,-229.35 201.83,-235.65"/>
|
||
</g>
|
||
<!-- m_UserDocument -->
|
||
<g id="node9" class="node">
|
||
<title>m_UserDocument</title>
|
||
<path fill="none" stroke="black" d="M223,-0.5C223,-0.5 343,-0.5 343,-0.5 349,-0.5 355,-6.5 355,-12.5 355,-12.5 355,-44.5 355,-44.5 355,-50.5 349,-56.5 343,-56.5 343,-56.5 223,-56.5 223,-56.5 217,-56.5 211,-50.5 211,-44.5 211,-44.5 211,-12.5 211,-12.5 211,-6.5 217,-0.5 223,-0.5"/>
|
||
<text text-anchor="start" x="241.5" y="-43.7" font-family="Arial Bold" font-size="11.00">UserDocument</text>
|
||
<polyline fill="none" stroke="black" points="211,-36.5 355,-36.5 "/>
|
||
<text text-anchor="start" x="218" y="-23.5" font-family="Arial" font-size="10.00">status </text>
|
||
<text text-anchor="start" x="249" y="-23.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||
<text text-anchor="start" x="218" y="-10.5" font-family="Arial" font-size="10.00">user_id </text>
|
||
<text text-anchor="start" x="253" y="-10.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||
</g>
|
||
<!-- m_User->m_UserDocument -->
|
||
<g id="edge1" class="edge">
|
||
<title>m_User->m_UserDocument</title>
|
||
<path fill="none" stroke="black" d="M150.96,-171.77C154.91,-167.12 158.63,-162.35 162,-157.5 185.64,-123.47 169.85,-101.9 198,-71.5 201.12,-68.13 204.56,-64.98 208.22,-62.05"/>
|
||
<polygon fill="black" stroke="black" points="210.14,-64.56 215.5,-56.67 206.39,-59.49 210.14,-64.56"/>
|
||
</g>
|
||
</g>
|
||
</svg>
|