add DepositOrder model and query
This commit is contained in:
219
erd.svg
219
erd.svg
@@ -1,83 +1,104 @@
|
||||
<?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.43.0 (0)
|
||||
<!-- Generated by graphviz version 2.48.0 (0)
|
||||
-->
|
||||
<!-- Title: XStake Pages: 1 -->
|
||||
<svg width="606pt" height="674pt"
|
||||
viewBox="0.00 0.00 605.60 673.60" 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 644.8)">
|
||||
<svg width="606pt" height="786pt"
|
||||
viewBox="0.00 0.00 605.60 785.60" 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 756.8)">
|
||||
<title>XStake</title>
|
||||
<polygon fill="white" stroke="transparent" points="-28.8,28.8 -28.8,-644.8 576.8,-644.8 576.8,28.8 -28.8,28.8"/>
|
||||
<text text-anchor="middle" x="274" y="-601.6" font-family="Arial Bold" font-size="13.00">XStake domain model</text>
|
||||
<polygon fill="white" stroke="transparent" points="-28.8,28.8 -28.8,-756.8 576.8,-756.8 576.8,28.8 -28.8,28.8"/>
|
||||
<text text-anchor="middle" x="274" y="-713.6" 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,-100C12,-100 150,-100 150,-100 156,-100 162,-106 162,-112 162,-112 162,-183 162,-183 162,-189 156,-195 150,-195 150,-195 12,-195 12,-195 6,-195 0,-189 0,-183 0,-183 0,-112 0,-112 0,-106 6,-100 12,-100"/>
|
||||
<text text-anchor="start" x="49" y="-182.2" font-family="Arial Bold" font-size="11.00">AdminUser</text>
|
||||
<polyline fill="none" stroke="black" points="0,-175 162,-175 "/>
|
||||
<text text-anchor="start" x="7" y="-161.5" font-family="Arial" font-size="10.00">email </text>
|
||||
<text text-anchor="start" x="34" y="-161.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗ U</text>
|
||||
<text text-anchor="start" x="7" y="-148.5" font-family="Arial" font-size="10.00">encrypted_password </text>
|
||||
<text text-anchor="start" x="101" y="-148.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-135.5" font-family="Arial" font-size="10.00">remember_created_at </text>
|
||||
<text text-anchor="start" x="105" y="-135.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-122.5" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
|
||||
<text text-anchor="start" x="117" y="-122.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-109.5" font-family="Arial" font-size="10.00">reset_password_token </text>
|
||||
<text text-anchor="start" x="109" y="-109.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
<path fill="none" stroke="black" d="M12,-153C12,-153 150,-153 150,-153 156,-153 162,-159 162,-165 162,-165 162,-236 162,-236 162,-242 156,-248 150,-248 150,-248 12,-248 12,-248 6,-248 0,-242 0,-236 0,-236 0,-165 0,-165 0,-159 6,-153 12,-153"/>
|
||||
<text text-anchor="start" x="49" y="-235.2" font-family="Arial Bold" font-size="11.00">AdminUser</text>
|
||||
<polyline fill="none" stroke="black" points="0,-228 162,-228 "/>
|
||||
<text text-anchor="start" x="7" y="-214.5" font-family="Arial" font-size="10.00">email </text>
|
||||
<text text-anchor="start" x="34" y="-214.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗ U</text>
|
||||
<text text-anchor="start" x="7" y="-201.5" font-family="Arial" font-size="10.00">encrypted_password </text>
|
||||
<text text-anchor="start" x="101" y="-201.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-188.5" font-family="Arial" font-size="10.00">remember_created_at </text>
|
||||
<text text-anchor="start" x="105" y="-188.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-175.5" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
|
||||
<text text-anchor="start" x="117" y="-175.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-162.5" font-family="Arial" font-size="10.00">reset_password_token </text>
|
||||
<text text-anchor="start" x="109" y="-162.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,-522.5C223,-522.5 343,-522.5 343,-522.5 349,-522.5 355,-528.5 355,-534.5 355,-534.5 355,-566.5 355,-566.5 355,-572.5 349,-578.5 343,-578.5 343,-578.5 223,-578.5 223,-578.5 217,-578.5 211,-572.5 211,-566.5 211,-566.5 211,-534.5 211,-534.5 211,-528.5 217,-522.5 223,-522.5"/>
|
||||
<text text-anchor="start" x="259.5" y="-565.7" font-family="Arial Bold" font-size="11.00">Balance</text>
|
||||
<polyline fill="none" stroke="black" points="211,-558.5 355,-558.5 "/>
|
||||
<text text-anchor="start" x="218" y="-545.5" font-family="Arial" font-size="10.00">amount </text>
|
||||
<text text-anchor="start" x="254" y="-545.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||||
<text text-anchor="start" x="218" y="-532.5" font-family="Arial" font-size="10.00">user_id </text>
|
||||
<text text-anchor="start" x="253" y="-532.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
<path fill="none" stroke="black" d="M223,-634.5C223,-634.5 343,-634.5 343,-634.5 349,-634.5 355,-640.5 355,-646.5 355,-646.5 355,-678.5 355,-678.5 355,-684.5 349,-690.5 343,-690.5 343,-690.5 223,-690.5 223,-690.5 217,-690.5 211,-684.5 211,-678.5 211,-678.5 211,-646.5 211,-646.5 211,-640.5 217,-634.5 223,-634.5"/>
|
||||
<text text-anchor="start" x="259.5" y="-677.7" font-family="Arial Bold" font-size="11.00">Balance</text>
|
||||
<polyline fill="none" stroke="black" points="211,-670.5 355,-670.5 "/>
|
||||
<text text-anchor="start" x="218" y="-657.5" font-family="Arial" font-size="10.00">amount </text>
|
||||
<text text-anchor="start" x="254" y="-657.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||||
<text text-anchor="start" x="218" y="-644.5" font-family="Arial" font-size="10.00">user_id </text>
|
||||
<text text-anchor="start" x="253" y="-644.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
</g>
|
||||
<!-- m_PaperTrail::Version -->
|
||||
<g id="node5" class="node">
|
||||
<g id="node6" class="node">
|
||||
<title>m_PaperTrail::Version</title>
|
||||
<path fill="none" stroke="black" d="M416,-400C416,-400 536,-400 536,-400 542,-400 548,-406 548,-412 548,-412 548,-483 548,-483 548,-489 542,-495 536,-495 536,-495 416,-495 416,-495 410,-495 404,-489 404,-483 404,-483 404,-412 404,-412 404,-406 410,-400 416,-400"/>
|
||||
<text text-anchor="start" x="423.5" y="-482.2" font-family="Arial Bold" font-size="11.00">PaperTrail::Version</text>
|
||||
<polyline fill="none" stroke="black" points="404,-475 548,-475 "/>
|
||||
<text text-anchor="start" x="411" y="-461.5" font-family="Arial" font-size="10.00">event </text>
|
||||
<text text-anchor="start" x="439" y="-461.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="411" y="-448.5" font-family="Arial" font-size="10.00">item_id </text>
|
||||
<text text-anchor="start" x="446" y="-448.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
<text text-anchor="start" x="411" y="-435.5" font-family="Arial" font-size="10.00">item_type </text>
|
||||
<text text-anchor="start" x="457" y="-435.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="411" y="-422.5" font-family="Arial" font-size="10.00">object </text>
|
||||
<text text-anchor="start" x="441" y="-422.5" font-family="Arial Italic" font-size="10.00" fill="#999999">text</text>
|
||||
<text text-anchor="start" x="411" y="-409.5" font-family="Arial" font-size="10.00">whodunnit </text>
|
||||
<text text-anchor="start" x="459" y="-409.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
<path fill="none" stroke="black" d="M416,-404C416,-404 536,-404 536,-404 542,-404 548,-410 548,-416 548,-416 548,-487 548,-487 548,-493 542,-499 536,-499 536,-499 416,-499 416,-499 410,-499 404,-493 404,-487 404,-487 404,-416 404,-416 404,-410 410,-404 416,-404"/>
|
||||
<text text-anchor="start" x="423.5" y="-486.2" font-family="Arial Bold" font-size="11.00">PaperTrail::Version</text>
|
||||
<polyline fill="none" stroke="black" points="404,-479 548,-479 "/>
|
||||
<text text-anchor="start" x="411" y="-465.5" font-family="Arial" font-size="10.00">event </text>
|
||||
<text text-anchor="start" x="439" y="-465.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="411" y="-452.5" font-family="Arial" font-size="10.00">item_id </text>
|
||||
<text text-anchor="start" x="446" y="-452.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
<text text-anchor="start" x="411" y="-439.5" font-family="Arial" font-size="10.00">item_type </text>
|
||||
<text text-anchor="start" x="457" y="-439.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="411" y="-426.5" font-family="Arial" font-size="10.00">object </text>
|
||||
<text text-anchor="start" x="441" y="-426.5" font-family="Arial Italic" font-size="10.00" fill="#999999">text</text>
|
||||
<text text-anchor="start" x="411" y="-413.5" font-family="Arial" font-size="10.00">whodunnit </text>
|
||||
<text text-anchor="start" x="459" y="-413.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
</g>
|
||||
<!-- m_Balance->m_PaperTrail::Version -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>m_Balance->m_PaperTrail::Version</title>
|
||||
<path fill="none" stroke="black" d="M339.73,-522.35C349.2,-517.46 358.9,-512.38 368,-507.5 377,-502.67 386.38,-497.55 395.69,-492.41"/>
|
||||
<polygon fill="black" stroke="black" points="397.49,-495.02 403.84,-487.9 394.44,-489.5 397.49,-495.02"/>
|
||||
<path fill="none" stroke="black" d="M347.87,-634.49C355.05,-630.01 361.94,-625.01 368,-619.5 402.57,-588.04 430.46,-542.97 449.09,-507.43"/>
|
||||
<polygon fill="black" stroke="black" points="452.07,-508.52 453.39,-499.08 446.47,-505.63 452.07,-508.52"/>
|
||||
</g>
|
||||
<!-- m_BuyCryptoOrder -->
|
||||
<g id="node3" class="node">
|
||||
<title>m_BuyCryptoOrder</title>
|
||||
<path fill="none" stroke="black" d="M210,-410.5C210,-410.5 356,-410.5 356,-410.5 362,-410.5 368,-416.5 368,-422.5 368,-422.5 368,-480.5 368,-480.5 368,-486.5 362,-492.5 356,-492.5 356,-492.5 210,-492.5 210,-492.5 204,-492.5 198,-486.5 198,-480.5 198,-480.5 198,-422.5 198,-422.5 198,-416.5 204,-410.5 210,-410.5"/>
|
||||
<text text-anchor="start" x="237" y="-479.7" font-family="Arial Bold" font-size="11.00">BuyCryptoOrder</text>
|
||||
<polyline fill="none" stroke="black" points="198,-472.5 368,-472.5 "/>
|
||||
<text text-anchor="start" x="205" y="-459.5" font-family="Arial" font-size="10.00">paid_amount_cents </text>
|
||||
<text text-anchor="start" x="293" y="-459.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||||
<text text-anchor="start" x="205" y="-446.5" font-family="Arial" font-size="10.00">received_amount </text>
|
||||
<text text-anchor="start" x="283" y="-446.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||||
<text text-anchor="start" x="205" y="-433.5" font-family="Arial" font-size="10.00">status </text>
|
||||
<text text-anchor="start" x="236" y="-433.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="205" y="-420.5" font-family="Arial" font-size="10.00">user_id </text>
|
||||
<text text-anchor="start" x="240" y="-420.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
<path fill="none" stroke="black" d="M210,-522.5C210,-522.5 356,-522.5 356,-522.5 362,-522.5 368,-528.5 368,-534.5 368,-534.5 368,-592.5 368,-592.5 368,-598.5 362,-604.5 356,-604.5 356,-604.5 210,-604.5 210,-604.5 204,-604.5 198,-598.5 198,-592.5 198,-592.5 198,-534.5 198,-534.5 198,-528.5 204,-522.5 210,-522.5"/>
|
||||
<text text-anchor="start" x="237" y="-591.7" font-family="Arial Bold" font-size="11.00">BuyCryptoOrder</text>
|
||||
<polyline fill="none" stroke="black" points="198,-584.5 368,-584.5 "/>
|
||||
<text text-anchor="start" x="205" y="-571.5" font-family="Arial" font-size="10.00">paid_amount_cents </text>
|
||||
<text text-anchor="start" x="293" y="-571.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||||
<text text-anchor="start" x="205" y="-558.5" font-family="Arial" font-size="10.00">received_amount </text>
|
||||
<text text-anchor="start" x="283" y="-558.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10) ∗</text>
|
||||
<text text-anchor="start" x="205" y="-545.5" font-family="Arial" font-size="10.00">status </text>
|
||||
<text text-anchor="start" x="236" y="-545.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="205" y="-532.5" font-family="Arial" font-size="10.00">user_id </text>
|
||||
<text text-anchor="start" x="240" y="-532.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
</g>
|
||||
<!-- m_DepositOrder -->
|
||||
<g id="node4" class="node">
|
||||
<title>m_DepositOrder</title>
|
||||
<path fill="none" stroke="black" d="M214.5,-410.5C214.5,-410.5 351.5,-410.5 351.5,-410.5 357.5,-410.5 363.5,-416.5 363.5,-422.5 363.5,-422.5 363.5,-480.5 363.5,-480.5 363.5,-486.5 357.5,-492.5 351.5,-492.5 351.5,-492.5 214.5,-492.5 214.5,-492.5 208.5,-492.5 202.5,-486.5 202.5,-480.5 202.5,-480.5 202.5,-422.5 202.5,-422.5 202.5,-416.5 208.5,-410.5 214.5,-410.5"/>
|
||||
<text text-anchor="start" x="245.5" y="-479.7" font-family="Arial Bold" font-size="11.00">DepositOrder</text>
|
||||
<polyline fill="none" stroke="black" points="202.5,-472.5 363.5,-472.5 "/>
|
||||
<text text-anchor="start" x="210" y="-459.5" font-family="Arial" font-size="10.00">paid_amount_cents </text>
|
||||
<text text-anchor="start" x="298" y="-459.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||||
<text text-anchor="start" x="210" y="-446.5" font-family="Arial" font-size="10.00">received_amount_cents </text>
|
||||
<text text-anchor="start" x="317" y="-446.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer ∗</text>
|
||||
<text text-anchor="start" x="210" y="-433.5" font-family="Arial" font-size="10.00">status </text>
|
||||
<text text-anchor="start" x="241" y="-433.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="210" y="-420.5" font-family="Arial" font-size="10.00">user_id </text>
|
||||
<text text-anchor="start" x="245" y="-420.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
</g>
|
||||
<!-- m_DepositOrder->m_PaperTrail::Version -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>m_DepositOrder->m_PaperTrail::Version</title>
|
||||
<path fill="none" stroke="black" d="M363.62,-451.5C373.81,-451.5 384.24,-451.5 394.44,-451.5"/>
|
||||
<polygon fill="black" stroke="black" points="394.74,-454.65 403.74,-451.5 394.74,-448.35 394.74,-454.65"/>
|
||||
</g>
|
||||
<!-- m_FiatBalance -->
|
||||
<g id="node4" class="node">
|
||||
<g id="node5" class="node">
|
||||
<title>m_FiatBalance</title>
|
||||
<path fill="none" stroke="black" d="M223,-311C223,-311 343,-311 343,-311 349,-311 355,-317 355,-323 355,-323 355,-368 355,-368 355,-374 349,-380 343,-380 343,-380 223,-380 223,-380 217,-380 211,-374 211,-368 211,-368 211,-323 211,-323 211,-317 217,-311 223,-311"/>
|
||||
<text text-anchor="start" x="250" y="-367.2" font-family="Arial Bold" font-size="11.00">FiatBalance</text>
|
||||
@@ -90,13 +111,13 @@
|
||||
<text text-anchor="start" x="253" y="-320.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
</g>
|
||||
<!-- m_FiatBalance->m_PaperTrail::Version -->
|
||||
<g id="edge2" class="edge">
|
||||
<g id="edge3" class="edge">
|
||||
<title>m_FiatBalance->m_PaperTrail::Version</title>
|
||||
<path fill="none" stroke="black" d="M348.66,-380.03C363.78,-388.1 380.05,-396.79 395.72,-405.16"/>
|
||||
<polygon fill="black" stroke="black" points="394.42,-408.04 403.84,-409.5 397.39,-402.48 394.42,-408.04"/>
|
||||
<path fill="none" stroke="black" d="M346.28,-380.06C362.09,-388.84 379.29,-398.38 395.81,-407.55"/>
|
||||
<polygon fill="black" stroke="black" points="394.46,-410.41 403.86,-412.02 397.52,-404.9 394.46,-410.41"/>
|
||||
</g>
|
||||
<!-- m_SellCryptoOrder -->
|
||||
<g id="node6" class="node">
|
||||
<g id="node7" class="node">
|
||||
<title>m_SellCryptoOrder</title>
|
||||
<path fill="none" stroke="black" d="M214.5,-198.5C214.5,-198.5 351.5,-198.5 351.5,-198.5 357.5,-198.5 363.5,-204.5 363.5,-210.5 363.5,-210.5 363.5,-268.5 363.5,-268.5 363.5,-274.5 357.5,-280.5 351.5,-280.5 351.5,-280.5 214.5,-280.5 214.5,-280.5 208.5,-280.5 202.5,-274.5 202.5,-268.5 202.5,-268.5 202.5,-210.5 202.5,-210.5 202.5,-204.5 208.5,-198.5 214.5,-198.5"/>
|
||||
<text text-anchor="start" x="238" y="-267.7" font-family="Arial Bold" font-size="11.00">SellCryptoOrder</text>
|
||||
@@ -111,7 +132,7 @@
|
||||
<text text-anchor="start" x="245" y="-208.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
</g>
|
||||
<!-- m_StakeOrder -->
|
||||
<g id="node7" class="node">
|
||||
<g id="node8" class="node">
|
||||
<title>m_StakeOrder</title>
|
||||
<path fill="none" stroke="black" d="M223,-86.5C223,-86.5 343,-86.5 343,-86.5 349,-86.5 355,-92.5 355,-98.5 355,-98.5 355,-156.5 355,-156.5 355,-162.5 349,-168.5 343,-168.5 343,-168.5 223,-168.5 223,-168.5 217,-168.5 211,-162.5 211,-156.5 211,-156.5 211,-98.5 211,-98.5 211,-92.5 217,-86.5 223,-86.5"/>
|
||||
<text text-anchor="start" x="251" y="-155.7" font-family="Arial Bold" font-size="11.00">StakeOrder</text>
|
||||
@@ -126,58 +147,64 @@
|
||||
<text text-anchor="start" x="253" y="-96.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) ∗ FK</text>
|
||||
</g>
|
||||
<!-- m_User -->
|
||||
<g id="node8" class="node">
|
||||
<g id="node9" class="node">
|
||||
<title>m_User</title>
|
||||
<path fill="none" stroke="black" d="M12,-225.5C12,-225.5 150,-225.5 150,-225.5 156,-225.5 162,-231.5 162,-237.5 162,-237.5 162,-347.5 162,-347.5 162,-353.5 156,-359.5 150,-359.5 150,-359.5 12,-359.5 12,-359.5 6,-359.5 0,-353.5 0,-347.5 0,-347.5 0,-237.5 0,-237.5 0,-231.5 6,-225.5 12,-225.5"/>
|
||||
<text text-anchor="start" x="66.5" y="-346.7" font-family="Arial Bold" font-size="11.00">User</text>
|
||||
<polyline fill="none" stroke="black" points="0,-339.5 162,-339.5 "/>
|
||||
<text text-anchor="start" x="7" y="-326.5" font-family="Arial" font-size="10.00">email </text>
|
||||
<text text-anchor="start" x="34" y="-326.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗ U</text>
|
||||
<text text-anchor="start" x="7" y="-313.5" font-family="Arial" font-size="10.00">encrypted_password </text>
|
||||
<text text-anchor="start" x="101" y="-313.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-300.5" font-family="Arial" font-size="10.00">first_name </text>
|
||||
<text text-anchor="start" x="56" y="-300.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-287.5" font-family="Arial" font-size="10.00">last_name </text>
|
||||
<text text-anchor="start" x="56" y="-287.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-274.5" font-family="Arial" font-size="10.00">remember_created_at </text>
|
||||
<text text-anchor="start" x="105" y="-274.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-261.5" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
|
||||
<text text-anchor="start" x="117" y="-261.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-248.5" font-family="Arial" font-size="10.00">reset_password_token </text>
|
||||
<text text-anchor="start" x="109" y="-248.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
<text text-anchor="start" x="7" y="-235.5" font-family="Arial" font-size="10.00">wallet_address </text>
|
||||
<text text-anchor="start" x="76" y="-235.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
<path fill="none" stroke="black" d="M12,-278.5C12,-278.5 150,-278.5 150,-278.5 156,-278.5 162,-284.5 162,-290.5 162,-290.5 162,-400.5 162,-400.5 162,-406.5 156,-412.5 150,-412.5 150,-412.5 12,-412.5 12,-412.5 6,-412.5 0,-406.5 0,-400.5 0,-400.5 0,-290.5 0,-290.5 0,-284.5 6,-278.5 12,-278.5"/>
|
||||
<text text-anchor="start" x="66.5" y="-399.7" font-family="Arial Bold" font-size="11.00">User</text>
|
||||
<polyline fill="none" stroke="black" points="0,-392.5 162,-392.5 "/>
|
||||
<text text-anchor="start" x="7" y="-379.5" font-family="Arial" font-size="10.00">email </text>
|
||||
<text text-anchor="start" x="34" y="-379.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗ U</text>
|
||||
<text text-anchor="start" x="7" y="-366.5" font-family="Arial" font-size="10.00">encrypted_password </text>
|
||||
<text text-anchor="start" x="101" y="-366.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-353.5" font-family="Arial" font-size="10.00">first_name </text>
|
||||
<text text-anchor="start" x="56" y="-353.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-340.5" font-family="Arial" font-size="10.00">last_name </text>
|
||||
<text text-anchor="start" x="56" y="-340.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string ∗</text>
|
||||
<text text-anchor="start" x="7" y="-327.5" font-family="Arial" font-size="10.00">remember_created_at </text>
|
||||
<text text-anchor="start" x="105" y="-327.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-314.5" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
|
||||
<text text-anchor="start" x="117" y="-314.5" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
|
||||
<text text-anchor="start" x="7" y="-301.5" font-family="Arial" font-size="10.00">reset_password_token </text>
|
||||
<text text-anchor="start" x="109" y="-301.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
<text text-anchor="start" x="7" y="-288.5" font-family="Arial" font-size="10.00">wallet_address </text>
|
||||
<text text-anchor="start" x="76" y="-288.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
|
||||
</g>
|
||||
<!-- m_User->m_Balance -->
|
||||
<g id="edge5" class="edge">
|
||||
<g id="edge6" class="edge">
|
||||
<title>m_User->m_Balance</title>
|
||||
<path fill="none" stroke="black" d="M105.93,-359.84C125.07,-405.99 155.71,-466.12 198,-507.5 203.62,-513 210.09,-517.95 216.88,-522.36"/>
|
||||
<path fill="none" stroke="black" d="M96.54,-412.71C112.55,-473.07 143.56,-560.96 198,-619.5 203.13,-625.02 209.13,-629.94 215.52,-634.31"/>
|
||||
</g>
|
||||
<!-- m_User->m_BuyCryptoOrder -->
|
||||
<g id="edge7" class="edge">
|
||||
<g id="edge9" class="edge">
|
||||
<title>m_User->m_BuyCryptoOrder</title>
|
||||
<path fill="none" stroke="black" d="M154.65,-359.73C168.74,-371.99 183.61,-384.4 198,-395.5 202.09,-398.65 206.35,-401.83 210.69,-404.97"/>
|
||||
<polygon fill="black" stroke="black" points="208.89,-407.55 218.05,-410.22 212.55,-402.42 208.89,-407.55"/>
|
||||
<path fill="none" stroke="black" d="M122.25,-412.83C142.63,-443.73 169.16,-479.6 198,-507.5 201.14,-510.54 204.47,-513.52 207.91,-516.42"/>
|
||||
<polygon fill="black" stroke="black" points="206.16,-519.05 215.13,-522.26 210.12,-514.15 206.16,-519.05"/>
|
||||
</g>
|
||||
<!-- m_User->m_DepositOrder -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>m_User->m_DepositOrder</title>
|
||||
<path fill="none" stroke="black" d="M162.2,-388C173.39,-393.94 184.93,-400.05 196.22,-406.04"/>
|
||||
<polygon fill="black" stroke="black" points="194.96,-408.93 204.39,-410.37 197.91,-403.37 194.96,-408.93"/>
|
||||
</g>
|
||||
<!-- m_User->m_FiatBalance -->
|
||||
<g id="edge6" class="edge">
|
||||
<g id="edge7" class="edge">
|
||||
<title>m_User->m_FiatBalance</title>
|
||||
<path fill="none" stroke="black" d="M162.2,-313.75C178.28,-318.01 195.08,-322.46 210.83,-326.64"/>
|
||||
<path fill="none" stroke="black" d="M162.2,-345.5C178.28,-345.5 195.08,-345.5 210.83,-345.5"/>
|
||||
</g>
|
||||
<!-- m_User->m_SellCryptoOrder -->
|
||||
<g id="edge8" class="edge">
|
||||
<g id="edge10" class="edge">
|
||||
<title>m_User->m_SellCryptoOrder</title>
|
||||
<path fill="none" stroke="black" d="M162.2,-271.25C172.55,-268.5 183.21,-265.68 193.69,-262.9"/>
|
||||
<polygon fill="black" stroke="black" points="194.55,-265.93 202.44,-260.58 192.93,-259.84 194.55,-265.93"/>
|
||||
<path fill="none" stroke="black" d="M162.2,-303C173.39,-297.06 184.93,-290.95 196.22,-284.96"/>
|
||||
<polygon fill="black" stroke="black" points="197.91,-287.63 204.39,-280.63 194.96,-282.07 197.91,-287.63"/>
|
||||
</g>
|
||||
<!-- m_User->m_StakeOrder -->
|
||||
<g id="edge4" class="edge">
|
||||
<g id="edge5" class="edge">
|
||||
<title>m_User->m_StakeOrder</title>
|
||||
<path fill="none" stroke="black" d="M149.62,-225.41C165.09,-211.08 181.77,-196.39 198,-183.5 202.04,-180.29 206.27,-177.07 210.58,-173.9"/>
|
||||
<polygon fill="black" stroke="black" points="212.46,-176.43 217.91,-168.6 208.77,-171.32 212.46,-176.43"/>
|
||||
<path fill="none" stroke="black" d="M151.11,-278.14C154.97,-273.33 158.64,-268.43 162,-263.5 183.95,-231.28 172.8,-213.25 198,-183.5 200.49,-180.57 203.16,-177.72 205.98,-174.98"/>
|
||||
<polygon fill="black" stroke="black" points="208.27,-177.15 212.78,-168.75 204.01,-172.51 208.27,-177.15"/>
|
||||
</g>
|
||||
<!-- m_UserDocument -->
|
||||
<g id="node9" class="node">
|
||||
<g id="node10" 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>
|
||||
@@ -188,10 +215,10 @@
|
||||
<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="edge3" class="edge">
|
||||
<g id="edge4" class="edge">
|
||||
<title>m_User->m_UserDocument</title>
|
||||
<path fill="none" stroke="black" d="M152.47,-225.27C155.95,-220.46 159.17,-215.52 162,-210.5 193.33,-154.91 158.09,-121.3 198,-71.5 200.61,-68.25 203.52,-65.22 206.66,-62.4"/>
|
||||
<polygon fill="black" stroke="black" points="208.86,-64.67 213.87,-56.55 204.89,-59.78 208.86,-64.67"/>
|
||||
<path fill="none" stroke="black" d="M152.88,-278.49C156.26,-273.63 159.34,-268.62 162,-263.5 202.03,-186.46 146.05,-141.06 198,-71.5 200.37,-68.33 203.04,-65.37 205.94,-62.61"/>
|
||||
<polygon fill="black" stroke="black" points="208.26,-64.78 213.07,-56.55 204.17,-59.98 208.26,-64.78"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user