<?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 12.1.2 (20240928.0832)
 -->
<!-- Title: public.voucher Pages: 1 -->
<svg width="1676pt" height="2115pt"
 viewBox="0.00 0.00 1675.91 2115.20" 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(4 2111.2)">
<title>public.voucher</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-2111.2 1671.91,-2111.2 1671.91,4 -4,4"/>
<!-- public.voucher -->
<g id="node1" class="node">
<title>public.voucher</title>
<polygon fill="#efefef" stroke="none" points="667.03,-1405.4 667.03,-1441 935.47,-1441 935.47,-1405.4 667.03,-1405.4"/>
<polygon fill="none" stroke="black" points="667.03,-1405.4 667.03,-1441 935.47,-1441 935.47,-1405.4 667.03,-1405.4"/>
<text text-anchor="start" x="685.27" y="-1418.8" font-family="Arial Bold" font-size="18.00">public.voucher</text>
<text text-anchor="start" x="792.74" y="-1418.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="823.86" y="-1418.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="667.03,-1374.6 667.03,-1405.4 935.47,-1405.4 935.47,-1374.6 667.03,-1374.6"/>
<text text-anchor="start" x="674.03" y="-1386.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="688.82" y="-1386.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="667.03,-1343.8 667.03,-1374.6 935.47,-1374.6 935.47,-1343.8 667.03,-1343.8"/>
<text text-anchor="start" x="674.03" y="-1356" font-family="Arial" font-size="14.00">code </text>
<text text-anchor="start" x="708.28" y="-1356" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="667.03,-1313 667.03,-1343.8 935.47,-1343.8 935.47,-1313 667.03,-1313"/>
<text text-anchor="start" x="674.03" y="-1325.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="734.73" y="-1325.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="667.03,-1282.2 667.03,-1313 935.47,-1313 935.47,-1282.2 667.03,-1282.2"/>
<text text-anchor="start" x="674.03" y="-1294.4" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="779.1" y="-1294.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="667.03,-1251.4 667.03,-1282.2 935.47,-1282.2 935.47,-1251.4 667.03,-1251.4"/>
<text text-anchor="start" x="674.03" y="-1263.6" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="786.09" y="-1263.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="667.03,-1220.6 667.03,-1251.4 935.47,-1251.4 935.47,-1220.6 667.03,-1220.6"/>
<text text-anchor="start" x="674.03" y="-1232.8" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="699.71" y="-1232.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="667.03,-1189.8 667.03,-1220.6 935.47,-1220.6 935.47,-1189.8 667.03,-1189.8"/>
<text text-anchor="start" x="674.03" y="-1202" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="704.38" y="-1202" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="667.03,-1159 667.03,-1189.8 935.47,-1189.8 935.47,-1159 667.03,-1159"/>
<text text-anchor="start" x="674.03" y="-1171.2" font-family="Arial" font-size="14.00">percentage </text>
<text text-anchor="start" x="747.98" y="-1171.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="667.03,-1128.2 667.03,-1159 935.47,-1159 935.47,-1128.2 667.03,-1128.2"/>
<text text-anchor="start" x="674.03" y="-1140.4" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="765.87" y="-1140.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="667.03,-1097.4 667.03,-1128.2 935.47,-1128.2 935.47,-1097.4 667.03,-1097.4"/>
<text text-anchor="start" x="674.03" y="-1109.6" font-family="Arial" font-size="14.00">expires_at </text>
<text text-anchor="start" x="742.51" y="-1109.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="667.03,-1066.6 667.03,-1097.4 935.47,-1097.4 935.47,-1066.6 667.03,-1066.6"/>
<text text-anchor="start" x="674.03" y="-1078.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="744.08" y="-1078.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="667.03,-1035.8 667.03,-1066.6 935.47,-1066.6 935.47,-1035.8 667.03,-1035.8"/>
<text text-anchor="start" x="674.03" y="-1048" font-family="Arial" font-size="14.00">blocked_by_id </text>
<text text-anchor="start" x="767.43" y="-1048" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="667.03,-1005 667.03,-1035.8 935.47,-1035.8 935.47,-1005 667.03,-1005"/>
<text text-anchor="start" x="674.03" y="-1017.2" font-family="Arial" font-size="14.00">blocked_at </text>
<text text-anchor="start" x="745.64" y="-1017.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="667.03,-974.2 667.03,-1005 935.47,-1005 935.47,-974.2 667.03,-974.2"/>
<text text-anchor="start" x="674.03" y="-986.4" font-family="Arial" font-size="14.00">allowed_redemptions </text>
<text text-anchor="start" x="810.22" y="-986.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="667.03,-943.4 667.03,-974.2 935.47,-974.2 935.47,-943.4 667.03,-943.4"/>
<text text-anchor="start" x="674.03" y="-955.6" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="705.17" y="-955.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="667.03,-912.6 667.03,-943.4 935.47,-943.4 935.47,-912.6 667.03,-912.6"/>
<text text-anchor="start" x="674.03" y="-924.8" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="715.27" y="-924.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="667.03,-881.8 667.03,-912.6 935.47,-912.6 935.47,-881.8 667.03,-881.8"/>
<text text-anchor="start" x="674.03" y="-894" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="703.6" y="-894" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="667.03,-851 667.03,-881.8 935.47,-881.8 935.47,-851 667.03,-851"/>
<text text-anchor="start" x="674.03" y="-863.2" font-family="Arial" font-size="14.00">max_redemptions_per_user </text>
<text text-anchor="start" x="852.24" y="-863.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="667.03,-820.2 667.03,-851 935.47,-851 935.47,-820.2 667.03,-820.2"/>
<text text-anchor="start" x="674.03" y="-832.4" font-family="Arial" font-size="14.00">original_kind </text>
<text text-anchor="start" x="756.53" y="-832.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="665.53,-818.7 665.53,-1442.5 936.97,-1442.5 936.97,-818.7 665.53,-818.7"/>
</g>
<!-- public.user -->
<g id="node6" class="node">
<title>public.user</title>
<polygon fill="#efefef" stroke="none" points="604.38,-659.2 604.38,-694.8 998.12,-694.8 998.12,-659.2 604.38,-659.2"/>
<polygon fill="none" stroke="black" points="604.38,-659.2 604.38,-694.8 998.12,-694.8 998.12,-659.2 604.38,-659.2"/>
<text text-anchor="start" x="699.27" y="-672.6" font-family="Arial Bold" font-size="18.00">public.user</text>
<text text-anchor="start" x="778.75" y="-672.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="809.86" y="-672.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="604.38,-628.4 604.38,-659.2 998.12,-659.2 998.12,-628.4 604.38,-628.4"/>
<text text-anchor="start" x="611.38" y="-640.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="626.17" y="-640.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="604.38,-597.6 604.38,-628.4 998.12,-628.4 998.12,-597.6 604.38,-597.6"/>
<text text-anchor="start" x="611.38" y="-609.8" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="680.63" y="-609.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-566.8 604.38,-597.6 998.12,-597.6 998.12,-566.8 604.38,-566.8"/>
<text text-anchor="start" x="611.38" y="-579" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="679.86" y="-579" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-536 604.38,-566.8 998.12,-566.8 998.12,-536 604.38,-536"/>
<text text-anchor="start" x="611.38" y="-548.2" font-family="Arial" font-size="14.00">email </text>
<text text-anchor="start" x="648.72" y="-548.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-505.2 604.38,-536 998.12,-536 998.12,-505.2 604.38,-505.2"/>
<text text-anchor="start" x="611.38" y="-517.4" font-family="Arial" font-size="14.00">gender </text>
<text text-anchor="start" x="658.86" y="-517.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-474.4 604.38,-505.2 998.12,-505.2 998.12,-474.4 604.38,-474.4"/>
<text text-anchor="start" x="611.38" y="-486.6" font-family="Arial" font-size="14.00">birthday </text>
<text text-anchor="start" x="665.08" y="-486.6" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="604.38,-443.6 604.38,-474.4 998.12,-474.4 998.12,-443.6 604.38,-443.6"/>
<text text-anchor="start" x="611.38" y="-455.8" font-family="Arial" font-size="14.00">skill_level </text>
<text text-anchor="start" x="675.18" y="-455.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-412.8 604.38,-443.6 998.12,-443.6 998.12,-412.8 604.38,-412.8"/>
<text text-anchor="start" x="611.38" y="-425" font-family="Arial" font-size="14.00">is_age_public </text>
<text text-anchor="start" x="700.89" y="-425" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="604.38,-382 604.38,-412.8 998.12,-412.8 998.12,-382 604.38,-382"/>
<text text-anchor="start" x="611.38" y="-394.2" font-family="Arial" font-size="14.00">profile_image_path </text>
<text text-anchor="start" x="734.35" y="-394.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-351.2 604.38,-382 998.12,-382 998.12,-351.2 604.38,-351.2"/>
<text text-anchor="start" x="611.38" y="-363.4" font-family="Arial" font-size="14.00">is_marketing_consent_granted </text>
<text text-anchor="start" x="806.72" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="604.38,-320.4 604.38,-351.2 998.12,-351.2 998.12,-320.4 604.38,-320.4"/>
<text text-anchor="start" x="611.38" y="-332.6" font-family="Arial" font-size="14.00">marketing_consent_granted_at </text>
<text text-anchor="start" x="808.29" y="-332.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="604.38,-289.6 604.38,-320.4 998.12,-320.4 998.12,-289.6 604.38,-289.6"/>
<text text-anchor="start" x="611.38" y="-301.8" font-family="Arial" font-size="14.00">get_stream_token </text>
<text text-anchor="start" x="727.34" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="604.38,-258.8 604.38,-289.6 998.12,-289.6 998.12,-258.8 604.38,-258.8"/>
<text text-anchor="start" x="611.38" y="-271" font-family="Arial" font-size="14.00">email_address_id </text>
<text text-anchor="start" x="725" y="-271" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="604.38,-228 604.38,-258.8 998.12,-258.8 998.12,-228 604.38,-228"/>
<text text-anchor="start" x="611.38" y="-240.2" font-family="Arial" font-size="14.00">preferred_playing_times </text>
<text text-anchor="start" x="765.46" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="604.38,-197.2 604.38,-228 998.12,-228 998.12,-197.2 604.38,-197.2"/>
<text text-anchor="start" x="611.38" y="-209.4" font-family="Arial" font-size="14.00">dominant_hands </text>
<text text-anchor="start" x="718.79" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="604.38,-166.4 604.38,-197.2 998.12,-197.2 998.12,-166.4 604.38,-166.4"/>
<text text-anchor="start" x="611.38" y="-178.6" font-family="Arial" font-size="14.00">locale </text>
<text text-anchor="start" x="651.85" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="604.38,-135.6 604.38,-166.4 998.12,-166.4 998.12,-135.6 604.38,-135.6"/>
<text text-anchor="start" x="611.38" y="-147.8" font-family="Arial" font-size="14.00">is_deleted </text>
<text text-anchor="start" x="679.1" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="604.38,-104.8 604.38,-135.6 998.12,-135.6 998.12,-104.8 604.38,-104.8"/>
<text text-anchor="start" x="611.38" y="-117" font-family="Arial" font-size="14.00">deleted_at </text>
<text text-anchor="start" x="680.66" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="604.38,-74 604.38,-104.8 998.12,-104.8 998.12,-74 604.38,-74"/>
<text text-anchor="start" x="611.38" y="-86.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="681.43" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="604.38,-43.2 604.38,-74 998.12,-74 998.12,-43.2 604.38,-43.2"/>
<text text-anchor="start" x="611.38" y="-55.4" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="709.45" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge5" class="edge">
<title>public.voucher:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M946.67,-1328.14C1243.37,-1313.11 1301.23,-643.8 999.12,-643.8"/>
<polygon fill="black" stroke="black" points="946.8,-1328.14 936.69,-1323.89 941.47,-1328.27 937.14,-1328.38 937.14,-1328.38 937.14,-1328.38 941.47,-1328.27 936.92,-1332.89 946.8,-1328.14"/>
<text text-anchor="start" x="943.47" y="-1338.4" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge6" class="edge">
<title>public.voucher:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M946.85,-1143.24C1162.23,-1128.1 1219.5,-643.8 999.12,-643.8"/>
<polygon fill="black" stroke="black" points="946.8,-1143.24 936.65,-1139.09 941.47,-1143.43 937.14,-1143.58 937.14,-1143.58 937.14,-1143.58 941.47,-1143.43 936.96,-1148.09 946.8,-1143.24"/>
<text text-anchor="start" x="943.47" y="-1153.6" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge7" class="edge">
<title>public.voucher:blocked_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M946.81,-1050.76C1121.96,-1035.83 1178.83,-643.8 999.12,-643.8"/>
<polygon fill="black" stroke="black" points="946.8,-1050.76 936.62,-1046.69 941.47,-1050.99 937.14,-1051.17 937.14,-1051.17 937.14,-1051.17 941.47,-1050.99 937,-1055.68 946.8,-1050.76"/>
<text text-anchor="start" x="943.47" y="-1061.2" font-family="Arial" font-size="10.00">FOREIGN KEY (blocked_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.payment -->
<g id="node2" class="node">
<title>public.payment</title>
<polygon fill="#efefef" stroke="none" points="43.2,-1997.6 43.2,-2033.2 309.3,-2033.2 309.3,-1997.6 43.2,-1997.6"/>
<polygon fill="none" stroke="black" points="43.2,-1997.6 43.2,-2033.2 309.3,-2033.2 309.3,-1997.6 43.2,-1997.6"/>
<text text-anchor="start" x="58.27" y="-2011" font-family="Arial Bold" font-size="18.00">public.payment</text>
<text text-anchor="start" x="169.74" y="-2011" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="200.86" y="-2011" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="43.2,-1966.8 43.2,-1997.6 309.3,-1997.6 309.3,-1966.8 43.2,-1966.8"/>
<text text-anchor="start" x="50.2" y="-1979" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="64.99" y="-1979" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1936 43.2,-1966.8 309.3,-1966.8 309.3,-1936 43.2,-1936"/>
<text text-anchor="start" x="50.2" y="-1948.2" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="91.44" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1905.2 43.2,-1936 309.3,-1936 309.3,-1905.2 43.2,-1905.2"/>
<text text-anchor="start" x="50.2" y="-1917.4" font-family="Arial" font-size="14.00">total_amount </text>
<text text-anchor="start" x="135.03" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="43.2,-1874.4 43.2,-1905.2 309.3,-1905.2 309.3,-1874.4 43.2,-1874.4"/>
<text text-anchor="start" x="50.2" y="-1886.6" font-family="Arial" font-size="14.00">total_currency </text>
<text text-anchor="start" x="142.02" y="-1886.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="43.2,-1843.6 43.2,-1874.4 309.3,-1874.4 309.3,-1843.6 43.2,-1843.6"/>
<text text-anchor="start" x="50.2" y="-1855.8" font-family="Arial" font-size="14.00">stripe_client_secret </text>
<text text-anchor="start" x="174.7" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1812.8 43.2,-1843.6 309.3,-1843.6 309.3,-1812.8 43.2,-1812.8"/>
<text text-anchor="start" x="50.2" y="-1825" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="98.45" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-1782 43.2,-1812.8 309.3,-1812.8 309.3,-1782 43.2,-1782"/>
<text text-anchor="start" x="50.2" y="-1794.2" font-family="Arial" font-size="14.00">paid_at </text>
<text text-anchor="start" x="100.02" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-1751.2 43.2,-1782 309.3,-1782 309.3,-1751.2 43.2,-1751.2"/>
<text text-anchor="start" x="50.2" y="-1763.4" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="122.58" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1720.4 43.2,-1751.2 309.3,-1751.2 309.3,-1720.4 43.2,-1720.4"/>
<text text-anchor="start" x="50.2" y="-1732.6" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="210.52" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1689.6 43.2,-1720.4 309.3,-1720.4 309.3,-1689.6 43.2,-1689.6"/>
<text text-anchor="start" x="50.2" y="-1701.8" font-family="Arial" font-size="14.00">payment_source </text>
<text text-anchor="start" x="157.59" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1658.8 43.2,-1689.6 309.3,-1689.6 309.3,-1658.8 43.2,-1658.8"/>
<text text-anchor="start" x="50.2" y="-1671" font-family="Arial" font-size="14.00">expired_at </text>
<text text-anchor="start" x="119.47" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-1628 43.2,-1658.8 309.3,-1658.8 309.3,-1628 43.2,-1628"/>
<text text-anchor="start" x="50.2" y="-1640.2" font-family="Arial" font-size="14.00">voucher_redemption_id </text>
<text text-anchor="start" x="200.41" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1597.2 43.2,-1628 309.3,-1628 309.3,-1597.2 43.2,-1597.2"/>
<text text-anchor="start" x="50.2" y="-1609.4" font-family="Arial" font-size="14.00">cart_id </text>
<text text-anchor="start" x="96.11" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.payment&#45;&gt;public.voucher -->
<g id="edge1" class="edge">
<title>public.payment:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M320.53,-1766.09C412.46,-1756.21 293.85,-1606.11 361.25,-1523.2 454.5,-1408.49 518.2,-1390 666.03,-1390"/>
<polygon fill="black" stroke="black" points="320.62,-1766.08 310.41,-1762.09 315.3,-1766.35 310.97,-1766.57 310.97,-1766.57 310.97,-1766.57 315.3,-1766.35 310.86,-1771.08 320.62,-1766.08"/>
<text text-anchor="start" x="317.3" y="-1776.6" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.voucher_redemption -->
<g id="node3" class="node">
<title>public.voucher_redemption</title>
<polygon fill="#efefef" stroke="none" points="413.79,-1889.8 413.79,-1925.4 750.72,-1925.4 750.72,-1889.8 413.79,-1889.8"/>
<polygon fill="none" stroke="black" points="413.79,-1889.8 413.79,-1925.4 750.72,-1925.4 750.72,-1889.8 413.79,-1889.8"/>
<text text-anchor="start" x="420.79" y="-1903.2" font-family="Arial Bold" font-size="18.00">public.voucher_redemption</text>
<text text-anchor="start" x="619.23" y="-1903.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="650.34" y="-1903.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="413.79,-1859 413.79,-1889.8 750.72,-1889.8 750.72,-1859 413.79,-1859"/>
<text text-anchor="start" x="420.79" y="-1871.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="435.57" y="-1871.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="413.79,-1828.2 413.79,-1859 750.72,-1859 750.72,-1828.2 413.79,-1828.2"/>
<text text-anchor="start" x="420.79" y="-1840.4" font-family="Arial" font-size="14.00">redeemed_by_id </text>
<text text-anchor="start" x="528.97" y="-1840.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="413.79,-1797.4 413.79,-1828.2 750.72,-1828.2 750.72,-1797.4 413.79,-1797.4"/>
<text text-anchor="start" x="420.79" y="-1809.6" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="493.17" y="-1809.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="413.79,-1766.6 413.79,-1797.4 750.72,-1797.4 750.72,-1766.6 413.79,-1766.6"/>
<text text-anchor="start" x="420.79" y="-1778.8" font-family="Arial" font-size="14.00">redeemed_at </text>
<text text-anchor="start" x="507.18" y="-1778.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="413.79,-1735.8 413.79,-1766.6 750.72,-1766.6 750.72,-1735.8 413.79,-1735.8"/>
<text text-anchor="start" x="420.79" y="-1748" font-family="Arial" font-size="14.00">redeemed_amount_amount </text>
<text text-anchor="start" x="596.68" y="-1748" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="413.79,-1705 413.79,-1735.8 750.72,-1735.8 750.72,-1705 413.79,-1705"/>
<text text-anchor="start" x="420.79" y="-1717.2" font-family="Arial" font-size="14.00">redeemed_amount_currency </text>
<text text-anchor="start" x="603.67" y="-1717.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.voucher_redemption&#45;&gt;public.voucher -->
<g id="edge2" class="edge">
<title>public.voucher_redemption:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M761.9,-1812.12C861.84,-1797.8 683.99,-1560.09 667.03,-1487.2 657.24,-1445.12 622.83,-1390 666.03,-1390"/>
<polygon fill="black" stroke="black" points="762.03,-1812.11 751.75,-1808.29 756.7,-1812.47 752.38,-1812.76 752.38,-1812.76 752.38,-1812.76 756.7,-1812.47 752.35,-1817.27 762.03,-1812.11"/>
<text text-anchor="start" x="758.72" y="-1822.8" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.refund -->
<g id="node4" class="node">
<title>public.refund</title>
<polygon fill="#efefef" stroke="none" points="855.28,-2028.4 855.28,-2064 1185.23,-2064 1185.23,-2028.4 855.28,-2028.4"/>
<polygon fill="none" stroke="black" points="855.28,-2028.4 855.28,-2064 1185.23,-2064 1185.23,-2028.4 855.28,-2028.4"/>
<text text-anchor="start" x="909.77" y="-2041.8" font-family="Arial Bold" font-size="18.00">public.refund</text>
<text text-anchor="start" x="1006.24" y="-2041.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1037.36" y="-2041.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="855.28,-1997.6 855.28,-2028.4 1185.23,-2028.4 1185.23,-1997.6 855.28,-1997.6"/>
<text text-anchor="start" x="862.28" y="-2009.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="877.06" y="-2009.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="855.28,-1966.8 855.28,-1997.6 1185.23,-1997.6 1185.23,-1966.8 855.28,-1966.8"/>
<text text-anchor="start" x="862.28" y="-1979" font-family="Arial" font-size="14.00">player_id </text>
<text text-anchor="start" x="922.98" y="-1979" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="855.28,-1936 855.28,-1966.8 1185.23,-1966.8 1185.23,-1936 855.28,-1936"/>
<text text-anchor="start" x="862.28" y="-1948.2" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="903.52" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="855.28,-1905.2 855.28,-1936 1185.23,-1936 1185.23,-1905.2 855.28,-1905.2"/>
<text text-anchor="start" x="862.28" y="-1917.4" font-family="Arial" font-size="14.00">refunded_at </text>
<text text-anchor="start" x="940.9" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="855.28,-1874.4 855.28,-1905.2 1185.23,-1905.2 1185.23,-1874.4 855.28,-1874.4"/>
<text text-anchor="start" x="862.28" y="-1886.6" font-family="Arial" font-size="14.00">stripe_refund_id </text>
<text text-anchor="start" x="966.57" y="-1886.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="855.28,-1843.6 855.28,-1874.4 1185.23,-1874.4 1185.23,-1843.6 855.28,-1843.6"/>
<text text-anchor="start" x="862.28" y="-1855.8" font-family="Arial" font-size="14.00">total_amount </text>
<text text-anchor="start" x="947.11" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="855.28,-1812.8 855.28,-1843.6 1185.23,-1843.6 1185.23,-1812.8 855.28,-1812.8"/>
<text text-anchor="start" x="862.28" y="-1825" font-family="Arial" font-size="14.00">total_currency </text>
<text text-anchor="start" x="954.1" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="855.28,-1782 855.28,-1812.8 1185.23,-1812.8 1185.23,-1782 855.28,-1782"/>
<text text-anchor="start" x="862.28" y="-1794.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="932.32" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="855.28,-1751.2 855.28,-1782 1185.23,-1782 1185.23,-1751.2 855.28,-1751.2"/>
<text text-anchor="start" x="862.28" y="-1763.4" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="934.66" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="855.28,-1720.4 855.28,-1751.2 1185.23,-1751.2 1185.23,-1720.4 855.28,-1720.4"/>
<text text-anchor="start" x="862.28" y="-1732.6" font-family="Arial" font-size="14.00">refunded_amount_voucher_amount </text>
<text text-anchor="start" x="1087.99" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="855.28,-1689.6 855.28,-1720.4 1185.23,-1720.4 1185.23,-1689.6 855.28,-1689.6"/>
<text text-anchor="start" x="862.28" y="-1701.8" font-family="Arial" font-size="14.00">refunded_amount_voucher_currency </text>
<text text-anchor="start" x="1094.98" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="855.28,-1658.8 855.28,-1689.6 1185.23,-1689.6 1185.23,-1658.8 855.28,-1658.8"/>
<text text-anchor="start" x="862.28" y="-1671" font-family="Arial" font-size="14.00">refunded_amount_online_amount </text>
<text text-anchor="start" x="1075.55" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="855.28,-1628 855.28,-1658.8 1185.23,-1658.8 1185.23,-1628 855.28,-1628"/>
<text text-anchor="start" x="862.28" y="-1640.2" font-family="Arial" font-size="14.00">refunded_amount_online_currency </text>
<text text-anchor="start" x="1082.54" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="855.28,-1597.2 855.28,-1628 1185.23,-1628 1185.23,-1597.2 855.28,-1597.2"/>
<text text-anchor="start" x="862.28" y="-1609.4" font-family="Arial" font-size="14.00">strategy </text>
<text text-anchor="start" x="915.97" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="855.28,-1566.4 855.28,-1597.2 1185.23,-1597.2 1185.23,-1566.4 855.28,-1566.4"/>
<text text-anchor="start" x="862.28" y="-1578.6" font-family="Arial" font-size="14.00">event_registration_id </text>
<text text-anchor="start" x="996.14" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.refund&#45;&gt;public.voucher -->
<g id="edge3" class="edge">
<title>public.refund:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M844.28,-1763.94C803.71,-1740.24 827.81,-1565.45 855.28,-1523.2 876.57,-1490.45 914.07,-1519.89 935.47,-1487.2 959.13,-1451.05 979.67,-1390 936.47,-1390"/>
<polygon fill="black" stroke="black" points="844.29,-1763.94 852.79,-1770.86 849.44,-1765.31 853.63,-1766.43 853.63,-1766.43 853.63,-1766.43 849.44,-1765.31 855.11,-1762.17 844.29,-1763.94"/>
<text text-anchor="start" x="861.28" y="-1776.6" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.voucher_reservation -->
<g id="node5" class="node">
<title>public.voucher_reservation</title>
<polygon fill="#efefef" stroke="none" points="1289.79,-1920.6 1289.79,-1956.2 1624.71,-1956.2 1624.71,-1920.6 1289.79,-1920.6"/>
<polygon fill="none" stroke="black" points="1289.79,-1920.6 1289.79,-1956.2 1624.71,-1956.2 1624.71,-1920.6 1289.79,-1920.6"/>
<text text-anchor="start" x="1296.79" y="-1934" font-family="Arial Bold" font-size="18.00">public.voucher_reservation</text>
<text text-anchor="start" x="1493.22" y="-1934" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1524.34" y="-1934" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="1289.79,-1889.8 1289.79,-1920.6 1624.71,-1920.6 1624.71,-1889.8 1289.79,-1889.8"/>
<text text-anchor="start" x="1296.79" y="-1902" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="1311.58" y="-1902" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1289.79,-1859 1289.79,-1889.8 1624.71,-1889.8 1624.71,-1859 1289.79,-1859"/>
<text text-anchor="start" x="1296.79" y="-1871.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="1357.5" y="-1871.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1289.79,-1828.2 1289.79,-1859 1624.71,-1859 1624.71,-1828.2 1289.79,-1828.2"/>
<text text-anchor="start" x="1296.79" y="-1840.4" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="1457.12" y="-1840.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1289.79,-1797.4 1289.79,-1828.2 1624.71,-1828.2 1624.71,-1797.4 1289.79,-1797.4"/>
<text text-anchor="start" x="1296.79" y="-1809.6" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="1366.84" y="-1809.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1289.79,-1766.6 1289.79,-1797.4 1624.71,-1797.4 1624.71,-1766.6 1289.79,-1766.6"/>
<text text-anchor="start" x="1296.79" y="-1778.8" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="1369.17" y="-1778.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1289.79,-1735.8 1289.79,-1766.6 1624.71,-1766.6 1624.71,-1735.8 1289.79,-1735.8"/>
<text text-anchor="start" x="1296.79" y="-1748" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="1345.05" y="-1748" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="1289.79,-1705 1289.79,-1735.8 1624.71,-1735.8 1624.71,-1705 1289.79,-1705"/>
<text text-anchor="start" x="1296.79" y="-1717.2" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="1401.86" y="-1717.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="1289.79,-1674.2 1289.79,-1705 1624.71,-1705 1624.71,-1674.2 1289.79,-1674.2"/>
<text text-anchor="start" x="1296.79" y="-1686.4" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="1408.85" y="-1686.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.voucher_reservation&#45;&gt;public.voucher -->
<g id="edge4" class="edge">
<title>public.voucher_reservation:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M1278.53,-1781.52C1180,-1771.62 1308.27,-1611.88 1237.25,-1523.2 1145.86,-1409.08 1082.67,-1390 936.47,-1390"/>
<polygon fill="black" stroke="black" points="1278.47,-1781.51 1288.25,-1786.48 1283.8,-1781.76 1288.13,-1781.97 1288.13,-1781.97 1288.13,-1781.97 1283.8,-1781.76 1288.67,-1777.49 1278.47,-1781.51"/>
<text text-anchor="start" x="1295.79" y="-1792" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
</g>
</svg>
