Files
x-stake/erd.svg
2021-08-14 14:50:40 -03:00

122 lines
9.6 KiB
XML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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="400pt" height="415pt"
viewBox="0.00 0.00 399.60 414.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 385.8)">
<title>XStake</title>
<polygon fill="white" stroke="transparent" points="-28.8,28.8 -28.8,-385.8 370.8,-385.8 370.8,28.8 -28.8,28.8"/>
<text text-anchor="middle" x="171" y="-342.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,-0.5C12,-0.5 150,-0.5 150,-0.5 156,-0.5 162,-6.5 162,-12.5 162,-12.5 162,-83.5 162,-83.5 162,-89.5 156,-95.5 150,-95.5 150,-95.5 12,-95.5 12,-95.5 6,-95.5 0,-89.5 0,-83.5 0,-83.5 0,-12.5 0,-12.5 0,-6.5 6,-0.5 12,-0.5"/>
<text text-anchor="start" x="49" y="-82.7" font-family="Arial Bold" font-size="11.00">AdminUser</text>
<polyline fill="none" stroke="black" points="0,-75.5 162,-75.5 "/>
<text text-anchor="start" x="7" y="-62" font-family="Arial" font-size="10.00">email </text>
<text text-anchor="start" x="34" y="-62" font-family="Arial Italic" font-size="10.00" fill="#999999">string U</text>
<text text-anchor="start" x="7" y="-49" font-family="Arial" font-size="10.00">encrypted_password </text>
<text text-anchor="start" x="101" y="-49" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="7" y="-36" font-family="Arial" font-size="10.00">remember_created_at </text>
<text text-anchor="start" x="105" y="-36" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
<text text-anchor="start" x="7" y="-23" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
<text text-anchor="start" x="117" y="-23" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
<text text-anchor="start" x="7" y="-10" font-family="Arial" font-size="10.00">reset_password_token </text>
<text text-anchor="start" x="109" y="-10" 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="M210,-250.5C210,-250.5 330,-250.5 330,-250.5 336,-250.5 342,-256.5 342,-262.5 342,-262.5 342,-307.5 342,-307.5 342,-313.5 336,-319.5 330,-319.5 330,-319.5 210,-319.5 210,-319.5 204,-319.5 198,-313.5 198,-307.5 198,-307.5 198,-262.5 198,-262.5 198,-256.5 204,-250.5 210,-250.5"/>
<text text-anchor="start" x="246.5" y="-306.7" font-family="Arial Bold" font-size="11.00">Balance</text>
<polyline fill="none" stroke="black" points="198,-299.5 342,-299.5 "/>
<text text-anchor="start" x="205" y="-286" font-family="Arial" font-size="10.00">amount </text>
<text text-anchor="start" x="241" y="-286" font-family="Arial Italic" font-size="10.00" fill="#999999">decimal (20,10)</text>
<text text-anchor="start" x="205" y="-273" font-family="Arial" font-size="10.00">currency_id </text>
<text text-anchor="start" x="259" y="-273" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
<text text-anchor="start" x="205" y="-260" font-family="Arial" font-size="10.00">user_id </text>
<text text-anchor="start" x="240" y="-260" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
</g>
<!-- m_Currency -->
<g id="node3" class="node">
<title>m_Currency</title>
<path fill="none" stroke="black" d="M21,-276.5C21,-276.5 141,-276.5 141,-276.5 147,-276.5 153,-282.5 153,-288.5 153,-288.5 153,-307.5 153,-307.5 153,-313.5 147,-319.5 141,-319.5 141,-319.5 21,-319.5 21,-319.5 15,-319.5 9,-313.5 9,-307.5 9,-307.5 9,-288.5 9,-288.5 9,-282.5 15,-276.5 21,-276.5"/>
<text text-anchor="start" x="54.5" y="-306.7" font-family="Arial Bold" font-size="11.00">Currency</text>
<polyline fill="none" stroke="black" points="9,-299.5 153,-299.5 "/>
<text text-anchor="start" x="16" y="-286" font-family="Arial" font-size="10.00">name </text>
<text text-anchor="start" x="44" y="-286" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
</g>
<!-- m_Currency&#45;&gt;m_Balance -->
<g id="edge4" class="edge">
<title>m_Currency&#45;&gt;m_Balance</title>
<path fill="none" stroke="black" d="M153.23,-293.05C164.91,-292.24 177.08,-291.39 188.96,-290.56"/>
<polygon fill="black" stroke="black" points="189.21,-293.7 197.97,-289.94 188.77,-287.42 189.21,-293.7"/>
</g>
<!-- m_FiatBalance -->
<g id="node4" class="node">
<title>m_FiatBalance</title>
<path fill="none" stroke="black" d="M210,-151.5C210,-151.5 330,-151.5 330,-151.5 336,-151.5 342,-157.5 342,-163.5 342,-163.5 342,-208.5 342,-208.5 342,-214.5 336,-220.5 330,-220.5 330,-220.5 210,-220.5 210,-220.5 204,-220.5 198,-214.5 198,-208.5 198,-208.5 198,-163.5 198,-163.5 198,-157.5 204,-151.5 210,-151.5"/>
<text text-anchor="start" x="237" y="-207.7" font-family="Arial Bold" font-size="11.00">FiatBalance</text>
<polyline fill="none" stroke="black" points="198,-200.5 342,-200.5 "/>
<text text-anchor="start" x="205" y="-187" font-family="Arial" font-size="10.00">amount_cents </text>
<text text-anchor="start" x="270" y="-187" font-family="Arial Italic" font-size="10.00" fill="#999999">integer</text>
<text text-anchor="start" x="205" y="-174" font-family="Arial" font-size="10.00">amount_currency </text>
<text text-anchor="start" x="284" y="-174" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="205" y="-161" font-family="Arial" font-size="10.00">user_id </text>
<text text-anchor="start" x="240" y="-161" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
</g>
<!-- m_User -->
<g id="node5" class="node">
<title>m_User</title>
<path fill="none" stroke="black" d="M12,-125.5C12,-125.5 150,-125.5 150,-125.5 156,-125.5 162,-131.5 162,-137.5 162,-137.5 162,-234.5 162,-234.5 162,-240.5 156,-246.5 150,-246.5 150,-246.5 12,-246.5 12,-246.5 6,-246.5 0,-240.5 0,-234.5 0,-234.5 0,-137.5 0,-137.5 0,-131.5 6,-125.5 12,-125.5"/>
<text text-anchor="start" x="66.5" y="-233.7" font-family="Arial Bold" font-size="11.00">User</text>
<polyline fill="none" stroke="black" points="0,-226.5 162,-226.5 "/>
<text text-anchor="start" x="7" y="-213" font-family="Arial" font-size="10.00">email </text>
<text text-anchor="start" x="34" y="-213" font-family="Arial Italic" font-size="10.00" fill="#999999">string U</text>
<text text-anchor="start" x="7" y="-200" font-family="Arial" font-size="10.00">encrypted_password </text>
<text text-anchor="start" x="101" y="-200" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="7" y="-187" font-family="Arial" font-size="10.00">first_name </text>
<text text-anchor="start" x="56" y="-187" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="7" y="-174" font-family="Arial" font-size="10.00">last_name </text>
<text text-anchor="start" x="56" y="-174" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="7" y="-161" font-family="Arial" font-size="10.00">remember_created_at </text>
<text text-anchor="start" x="105" y="-161" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
<text text-anchor="start" x="7" y="-148" font-family="Arial" font-size="10.00">reset_password_sent_at </text>
<text text-anchor="start" x="117" y="-148" font-family="Arial Italic" font-size="10.00" fill="#999999">datetime</text>
<text text-anchor="start" x="7" y="-135" font-family="Arial" font-size="10.00">reset_password_token </text>
<text text-anchor="start" x="109" y="-135" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
</g>
<!-- m_User&#45;&gt;m_Balance -->
<g id="edge2" class="edge">
<title>m_User&#45;&gt;m_Balance</title>
<path fill="none" stroke="black" d="M162.12,-228.42C173.29,-234.33 184.71,-240.38 195.75,-246.22"/>
<polygon fill="black" stroke="black" points="194.27,-249 203.7,-250.43 197.22,-243.44 194.27,-249"/>
</g>
<!-- m_User&#45;&gt;m_FiatBalance -->
<g id="edge3" class="edge">
<title>m_User&#45;&gt;m_FiatBalance</title>
<path fill="none" stroke="black" d="M162.12,-186C174.01,-186 186.21,-186 197.9,-186"/>
</g>
<!-- m_UserDocument -->
<g id="node6" class="node">
<title>m_UserDocument</title>
<path fill="none" stroke="black" d="M210,-66C210,-66 330,-66 330,-66 336,-66 342,-72 342,-78 342,-78 342,-110 342,-110 342,-116 336,-122 330,-122 330,-122 210,-122 210,-122 204,-122 198,-116 198,-110 198,-110 198,-78 198,-78 198,-72 204,-66 210,-66"/>
<text text-anchor="start" x="228.5" y="-109.2" font-family="Arial Bold" font-size="11.00">UserDocument</text>
<polyline fill="none" stroke="black" points="198,-102 342,-102 "/>
<text text-anchor="start" x="205" y="-89" font-family="Arial" font-size="10.00">status </text>
<text text-anchor="start" x="236" y="-89" font-family="Arial Italic" font-size="10.00" fill="#999999">string</text>
<text text-anchor="start" x="205" y="-76" font-family="Arial" font-size="10.00">user_id </text>
<text text-anchor="start" x="240" y="-76" font-family="Arial Italic" font-size="10.00" fill="#999999">integer (8) FK</text>
</g>
<!-- m_User&#45;&gt;m_UserDocument -->
<g id="edge1" class="edge">
<title>m_User&#45;&gt;m_UserDocument</title>
<path fill="none" stroke="black" d="M162.12,-146.58C175.99,-139.76 190.27,-132.73 203.69,-126.13"/>
<polygon fill="black" stroke="black" points="205.24,-128.88 211.92,-122.08 202.46,-123.23 205.24,-128.88"/>
</g>
</g>
</svg>