add pix qr code to deposit order

This commit is contained in:
João Geonizeli
2021-09-06 00:38:48 -03:00
parent c7a799af1e
commit 3529773c61
23 changed files with 843 additions and 221 deletions

118
erd.svg
View File

@@ -4,12 +4,12 @@
<!-- Generated by graphviz version 2.48.0 (0)
-->
<!-- Title: XStake Pages: 1 -->
<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)">
<svg width="606pt" height="799pt"
viewBox="0.00 0.00 605.60 798.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 769.8)">
<title>XStake</title>
<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>
<polygon fill="white" stroke="transparent" points="-28.8,28.8 -28.8,-769.8 576.8,-769.8 576.8,28.8 -28.8,28.8"/>
<text text-anchor="middle" x="274" y="-726.6" font-family="Arial Bold" font-size="13.00">XStake domain model</text>
<!-- m_AdminUser -->
<g id="node1" class="node">
<title>m_AdminUser</title>
@@ -30,72 +30,74 @@
<!-- m_Balance -->
<g id="node2" class="node">
<title>m_Balance</title>
<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>
<path fill="none" stroke="black" d="M223,-647.5C223,-647.5 343,-647.5 343,-647.5 349,-647.5 355,-653.5 355,-659.5 355,-659.5 355,-691.5 355,-691.5 355,-697.5 349,-703.5 343,-703.5 343,-703.5 223,-703.5 223,-703.5 217,-703.5 211,-697.5 211,-691.5 211,-691.5 211,-659.5 211,-659.5 211,-653.5 217,-647.5 223,-647.5"/>
<text text-anchor="start" x="259.5" y="-690.7" font-family="Arial Bold" font-size="11.00">Balance</text>
<polyline fill="none" stroke="black" points="211,-683.5 355,-683.5 "/>
<text text-anchor="start" x="218" y="-670.5" font-family="Arial" font-size="10.00">amount </text>
<text text-anchor="start" x="254" y="-670.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10)</text>
<text text-anchor="start" x="218" y="-657.5" font-family="Arial" font-size="10.00">user_id </text>
<text text-anchor="start" x="253" y="-657.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
</g>
<!-- m_PaperTrail::Version -->
<g id="node6" class="node">
<title>m_PaperTrail::Version</title>
<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>
<path fill="none" stroke="black" d="M416,-410C416,-410 536,-410 536,-410 542,-410 548,-416 548,-422 548,-422 548,-493 548,-493 548,-499 542,-505 536,-505 536,-505 416,-505 416,-505 410,-505 404,-499 404,-493 404,-493 404,-422 404,-422 404,-416 410,-410 416,-410"/>
<text text-anchor="start" x="423.5" y="-492.2" font-family="Arial Bold" font-size="11.00">PaperTrail::Version</text>
<polyline fill="none" stroke="black" points="404,-485 548,-485 "/>
<text text-anchor="start" x="411" y="-471.5" font-family="Arial" font-size="10.00">event </text>
<text text-anchor="start" x="439" y="-471.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="411" y="-458.5" font-family="Arial" font-size="10.00">item_id </text>
<text text-anchor="start" x="446" y="-458.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
<text text-anchor="start" x="411" y="-445.5" font-family="Arial" font-size="10.00">item_type </text>
<text text-anchor="start" x="457" y="-445.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="411" y="-432.5" font-family="Arial" font-size="10.00">object </text>
<text text-anchor="start" x="441" y="-432.5" font-family="Arial Italic" font-size="10.00" fill="#999999">text</text>
<text text-anchor="start" x="411" y="-419.5" font-family="Arial" font-size="10.00">whodunnit </text>
<text text-anchor="start" x="459" y="-419.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
</g>
<!-- m_Balance&#45;&gt;m_PaperTrail::Version -->
<g id="edge1" class="edge">
<title>m_Balance&#45;&gt;m_PaperTrail::Version</title>
<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"/>
<path fill="none" stroke="black" d="M348.4,-647.33C355.4,-642.9 362.11,-637.96 368,-632.5 404.05,-599.08 432.34,-550.81 450.75,-513.42"/>
<polygon fill="black" stroke="black" points="453.67,-514.61 454.76,-505.14 448,-511.87 453.67,-514.61"/>
</g>
<!-- m_BuyCryptoOrder -->
<g id="node3" class="node">
<title>m_BuyCryptoOrder</title>
<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>
<path fill="none" stroke="black" d="M210,-535.5C210,-535.5 356,-535.5 356,-535.5 362,-535.5 368,-541.5 368,-547.5 368,-547.5 368,-605.5 368,-605.5 368,-611.5 362,-617.5 356,-617.5 356,-617.5 210,-617.5 210,-617.5 204,-617.5 198,-611.5 198,-605.5 198,-605.5 198,-547.5 198,-547.5 198,-541.5 204,-535.5 210,-535.5"/>
<text text-anchor="start" x="237" y="-604.7" font-family="Arial Bold" font-size="11.00">BuyCryptoOrder</text>
<polyline fill="none" stroke="black" points="198,-597.5 368,-597.5 "/>
<text text-anchor="start" x="205" y="-584.5" font-family="Arial" font-size="10.00">paid_amount_cents </text>
<text text-anchor="start" x="293" y="-584.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer</text>
<text text-anchor="start" x="205" y="-571.5" font-family="Arial" font-size="10.00">received_amount </text>
<text text-anchor="start" x="283" y="-571.5" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10)</text>
<text text-anchor="start" x="205" y="-558.5" font-family="Arial" font-size="10.00">status </text>
<text text-anchor="start" x="236" y="-558.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="205" y="-545.5" font-family="Arial" font-size="10.00">user_id </text>
<text text-anchor="start" x="240" y="-545.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>
<path fill="none" stroke="black" d="M214.5,-410C214.5,-410 351.5,-410 351.5,-410 357.5,-410 363.5,-416 363.5,-422 363.5,-422 363.5,-493 363.5,-493 363.5,-499 357.5,-505 351.5,-505 351.5,-505 214.5,-505 214.5,-505 208.5,-505 202.5,-499 202.5,-493 202.5,-493 202.5,-422 202.5,-422 202.5,-416 208.5,-410 214.5,-410"/>
<text text-anchor="start" x="245.5" y="-492.2" font-family="Arial Bold" font-size="11.00">DepositOrder</text>
<polyline fill="none" stroke="black" points="202.5,-485 363.5,-485 "/>
<text text-anchor="start" x="210" y="-471.5" font-family="Arial" font-size="10.00">paid_amount_cents </text>
<text text-anchor="start" x="298" y="-471.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer</text>
<text text-anchor="start" x="210" y="-458.5" font-family="Arial" font-size="10.00">received_amount_cents </text>
<text text-anchor="start" x="317" y="-458.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer</text>
<text text-anchor="start" x="210" y="-445.5" font-family="Arial" font-size="10.00">status </text>
<text text-anchor="start" x="241" y="-445.5" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="210" y="-432.5" font-family="Arial" font-size="10.00">transaction_id </text>
<text text-anchor="start" x="274" y="-432.5" font-family="Arial Italic" font-size="10.00" fill="#999999">uuid</text>
<text text-anchor="start" x="210" y="-419.5" font-family="Arial" font-size="10.00">user_id </text>
<text text-anchor="start" x="245" y="-419.5" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
</g>
<!-- m_DepositOrder&#45;&gt;m_PaperTrail::Version -->
<g id="edge2" class="edge">
<title>m_DepositOrder&#45;&gt;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"/>
<path fill="none" stroke="black" d="M363.62,-457.5C373.81,-457.5 384.24,-457.5 394.44,-457.5"/>
<polygon fill="black" stroke="black" points="394.74,-460.65 403.74,-457.5 394.74,-454.35 394.74,-460.65"/>
</g>
<!-- m_FiatBalance -->
<g id="node5" class="node">
@@ -113,8 +115,8 @@
<!-- m_FiatBalance&#45;&gt;m_PaperTrail::Version -->
<g id="edge3" class="edge">
<title>m_FiatBalance&#45;&gt;m_PaperTrail::Version</title>
<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"/>
<path fill="none" stroke="black" d="M342.86,-380.02C359.59,-389.83 378.09,-400.67 395.82,-411.07"/>
<polygon fill="black" stroke="black" points="394.54,-413.97 403.9,-415.81 397.73,-408.54 394.54,-413.97"/>
</g>
<!-- m_SellCryptoOrder -->
<g id="node7" class="node">
@@ -172,19 +174,19 @@
<!-- m_User&#45;&gt;m_Balance -->
<g id="edge6" class="edge">
<title>m_User&#45;&gt;m_Balance</title>
<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"/>
<path fill="none" stroke="black" d="M94.93,-412.53C110.13,-475.8 140.87,-570.04 198,-632.5 203.09,-638.06 209.06,-643.01 215.43,-647.39"/>
</g>
<!-- m_User&#45;&gt;m_BuyCryptoOrder -->
<g id="edge9" class="edge">
<title>m_User&#45;&gt;m_BuyCryptoOrder</title>
<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"/>
<path fill="none" stroke="black" d="M118.01,-412.84C138.55,-447.46 166.47,-488.88 198,-520.5 201.09,-523.59 204.37,-526.62 207.78,-529.55"/>
<polygon fill="black" stroke="black" points="205.99,-532.16 214.94,-535.45 210,-527.3 205.99,-532.16"/>
</g>
<!-- m_User&#45;&gt;m_DepositOrder -->
<g id="edge8" class="edge">
<title>m_User&#45;&gt;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"/>
<path fill="none" stroke="black" d="M162.2,-390.41C172.76,-396.33 183.63,-402.41 194.32,-408.4"/>
<polygon fill="black" stroke="black" points="193.05,-411.3 202.44,-412.95 196.12,-405.8 193.05,-411.3"/>
</g>
<!-- m_User&#45;&gt;m_FiatBalance -->
<g id="edge7" class="edge">

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB