<?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.payment Pages: 1 -->
<svg width="1123pt" height="1280pt"
 viewBox="0.00 0.00 1123.10 1279.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(4 1275.6)">
<title>public.payment</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-1275.6 1119.1,-1275.6 1119.1,4 -4,4"/>
<!-- public.payment -->
<g id="node1" class="node">
<title>public.payment</title>
<polygon fill="#efefef" stroke="none" points="451.37,-1189.8 451.37,-1225.4 717.47,-1225.4 717.47,-1189.8 451.37,-1189.8"/>
<polygon fill="none" stroke="black" points="451.37,-1189.8 451.37,-1225.4 717.47,-1225.4 717.47,-1189.8 451.37,-1189.8"/>
<text text-anchor="start" x="466.44" y="-1203.2" font-family="Arial Bold" font-size="18.00">public.payment</text>
<text text-anchor="start" x="577.91" y="-1203.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="609.03" y="-1203.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="451.37,-1159 451.37,-1189.8 717.47,-1189.8 717.47,-1159 451.37,-1159"/>
<text text-anchor="start" x="458.37" y="-1171.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="473.16" y="-1171.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="451.37,-1128.2 451.37,-1159 717.47,-1159 717.47,-1128.2 451.37,-1128.2"/>
<text text-anchor="start" x="458.37" y="-1140.4" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="499.61" y="-1140.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="451.37,-1097.4 451.37,-1128.2 717.47,-1128.2 717.47,-1097.4 451.37,-1097.4"/>
<text text-anchor="start" x="458.37" y="-1109.6" font-family="Arial" font-size="14.00">total_amount </text>
<text text-anchor="start" x="543.2" y="-1109.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="451.37,-1066.6 451.37,-1097.4 717.47,-1097.4 717.47,-1066.6 451.37,-1066.6"/>
<text text-anchor="start" x="458.37" y="-1078.8" font-family="Arial" font-size="14.00">total_currency </text>
<text text-anchor="start" x="550.19" y="-1078.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="451.37,-1035.8 451.37,-1066.6 717.47,-1066.6 717.47,-1035.8 451.37,-1035.8"/>
<text text-anchor="start" x="458.37" y="-1048" font-family="Arial" font-size="14.00">stripe_client_secret </text>
<text text-anchor="start" x="582.87" y="-1048" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="451.37,-1005 451.37,-1035.8 717.47,-1035.8 717.47,-1005 451.37,-1005"/>
<text text-anchor="start" x="458.37" y="-1017.2" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="506.62" y="-1017.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="451.37,-974.2 451.37,-1005 717.47,-1005 717.47,-974.2 451.37,-974.2"/>
<text text-anchor="start" x="458.37" y="-986.4" font-family="Arial" font-size="14.00">paid_at </text>
<text text-anchor="start" x="508.19" y="-986.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="451.37,-943.4 451.37,-974.2 717.47,-974.2 717.47,-943.4 451.37,-943.4"/>
<text text-anchor="start" x="458.37" y="-955.6" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="530.75" y="-955.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="451.37,-912.6 451.37,-943.4 717.47,-943.4 717.47,-912.6 451.37,-912.6"/>
<text text-anchor="start" x="458.37" y="-924.8" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="618.69" y="-924.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="451.37,-881.8 451.37,-912.6 717.47,-912.6 717.47,-881.8 451.37,-881.8"/>
<text text-anchor="start" x="458.37" y="-894" font-family="Arial" font-size="14.00">payment_source </text>
<text text-anchor="start" x="565.76" y="-894" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="451.37,-851 451.37,-881.8 717.47,-881.8 717.47,-851 451.37,-851"/>
<text text-anchor="start" x="458.37" y="-863.2" font-family="Arial" font-size="14.00">expired_at </text>
<text text-anchor="start" x="527.64" y="-863.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="451.37,-820.2 451.37,-851 717.47,-851 717.47,-820.2 451.37,-820.2"/>
<text text-anchor="start" x="458.37" y="-832.4" font-family="Arial" font-size="14.00">voucher_redemption_id </text>
<text text-anchor="start" x="608.58" y="-832.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="451.37,-789.4 451.37,-820.2 717.47,-820.2 717.47,-789.4 451.37,-789.4"/>
<text text-anchor="start" x="458.37" y="-801.6" font-family="Arial" font-size="14.00">cart_id </text>
<text text-anchor="start" x="504.28" y="-801.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="449.87,-787.9 449.87,-1226.9 718.97,-1226.9 718.97,-787.9 449.87,-787.9"/>
</g>
<!-- public.voucher -->
<g id="node2" class="node">
<title>public.voucher</title>
<polygon fill="#efefef" stroke="none" points="43.2,-628.4 43.2,-664 311.64,-664 311.64,-628.4 43.2,-628.4"/>
<polygon fill="none" stroke="black" points="43.2,-628.4 43.2,-664 311.64,-664 311.64,-628.4 43.2,-628.4"/>
<text text-anchor="start" x="61.44" y="-641.8" font-family="Arial Bold" font-size="18.00">public.voucher</text>
<text text-anchor="start" x="168.91" y="-641.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="200.02" y="-641.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="43.2,-597.6 43.2,-628.4 311.64,-628.4 311.64,-597.6 43.2,-597.6"/>
<text text-anchor="start" x="50.2" y="-609.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="64.99" y="-609.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-566.8 43.2,-597.6 311.64,-597.6 311.64,-566.8 43.2,-566.8"/>
<text text-anchor="start" x="50.2" y="-579" font-family="Arial" font-size="14.00">code </text>
<text text-anchor="start" x="84.45" y="-579" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-536 43.2,-566.8 311.64,-566.8 311.64,-536 43.2,-536"/>
<text text-anchor="start" x="50.2" y="-548.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="110.9" y="-548.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-505.2 43.2,-536 311.64,-536 311.64,-505.2 43.2,-505.2"/>
<text text-anchor="start" x="50.2" y="-517.4" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="155.27" y="-517.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="43.2,-474.4 43.2,-505.2 311.64,-505.2 311.64,-474.4 43.2,-474.4"/>
<text text-anchor="start" x="50.2" y="-486.6" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="162.25" y="-486.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="43.2,-443.6 43.2,-474.4 311.64,-474.4 311.64,-443.6 43.2,-443.6"/>
<text text-anchor="start" x="50.2" y="-455.8" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="75.88" y="-455.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-412.8 43.2,-443.6 311.64,-443.6 311.64,-412.8 43.2,-412.8"/>
<text text-anchor="start" x="50.2" y="-425" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="80.55" y="-425" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-382 43.2,-412.8 311.64,-412.8 311.64,-382 43.2,-382"/>
<text text-anchor="start" x="50.2" y="-394.2" font-family="Arial" font-size="14.00">percentage </text>
<text text-anchor="start" x="124.14" y="-394.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="43.2,-351.2 43.2,-382 311.64,-382 311.64,-351.2 43.2,-351.2"/>
<text text-anchor="start" x="50.2" y="-363.4" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="142.04" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-320.4 43.2,-351.2 311.64,-351.2 311.64,-320.4 43.2,-320.4"/>
<text text-anchor="start" x="50.2" y="-332.6" font-family="Arial" font-size="14.00">expires_at </text>
<text text-anchor="start" x="118.68" y="-332.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-289.6 43.2,-320.4 311.64,-320.4 311.64,-289.6 43.2,-289.6"/>
<text text-anchor="start" x="50.2" y="-301.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="120.25" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-258.8 43.2,-289.6 311.64,-289.6 311.64,-258.8 43.2,-258.8"/>
<text text-anchor="start" x="50.2" y="-271" font-family="Arial" font-size="14.00">blocked_by_id </text>
<text text-anchor="start" x="143.6" y="-271" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-228 43.2,-258.8 311.64,-258.8 311.64,-228 43.2,-228"/>
<text text-anchor="start" x="50.2" y="-240.2" font-family="Arial" font-size="14.00">blocked_at </text>
<text text-anchor="start" x="121.81" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-197.2 43.2,-228 311.64,-228 311.64,-197.2 43.2,-197.2"/>
<text text-anchor="start" x="50.2" y="-209.4" font-family="Arial" font-size="14.00">allowed_redemptions </text>
<text text-anchor="start" x="186.39" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="43.2,-166.4 43.2,-197.2 311.64,-197.2 311.64,-166.4 43.2,-166.4"/>
<text text-anchor="start" x="50.2" y="-178.6" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="81.34" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-135.6 43.2,-166.4 311.64,-166.4 311.64,-135.6 43.2,-135.6"/>
<text text-anchor="start" x="50.2" y="-147.8" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="91.44" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-104.8 43.2,-135.6 311.64,-135.6 311.64,-104.8 43.2,-104.8"/>
<text text-anchor="start" x="50.2" y="-117" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="79.77" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-74 43.2,-104.8 311.64,-104.8 311.64,-74 43.2,-74"/>
<text text-anchor="start" x="50.2" y="-86.2" font-family="Arial" font-size="14.00">max_redemptions_per_user </text>
<text text-anchor="start" x="228.41" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="43.2,-43.2 43.2,-74 311.64,-74 311.64,-43.2 43.2,-43.2"/>
<text text-anchor="start" x="50.2" y="-55.4" font-family="Arial" font-size="14.00">original_kind </text>
<text text-anchor="start" x="132.7" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</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="M441.45,-953.91C401.34,-911.88 351.09,-613 312.64,-613"/>
<polygon fill="black" stroke="black" points="441.31,-953.83 447.91,-962.59 445.98,-956.4 449.78,-958.48 449.78,-958.48 449.78,-958.48 445.98,-956.4 452.24,-954.69 441.31,-953.83"/>
<text text-anchor="start" x="192.74" y="-968.8" 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="415.96,-428.2 415.96,-463.8 752.88,-463.8 752.88,-428.2 415.96,-428.2"/>
<polygon fill="none" stroke="black" points="415.96,-428.2 415.96,-463.8 752.88,-463.8 752.88,-428.2 415.96,-428.2"/>
<text text-anchor="start" x="422.96" y="-441.6" font-family="Arial Bold" font-size="18.00">public.voucher_redemption</text>
<text text-anchor="start" x="621.4" y="-441.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="652.51" y="-441.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="415.96,-397.4 415.96,-428.2 752.88,-428.2 752.88,-397.4 415.96,-397.4"/>
<text text-anchor="start" x="422.96" y="-409.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="437.74" y="-409.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="415.96,-366.6 415.96,-397.4 752.88,-397.4 752.88,-366.6 415.96,-366.6"/>
<text text-anchor="start" x="422.96" y="-378.8" font-family="Arial" font-size="14.00">redeemed_by_id </text>
<text text-anchor="start" x="531.14" y="-378.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="415.96,-335.8 415.96,-366.6 752.88,-366.6 752.88,-335.8 415.96,-335.8"/>
<text text-anchor="start" x="422.96" y="-348" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="495.33" y="-348" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="415.96,-305 415.96,-335.8 752.88,-335.8 752.88,-305 415.96,-305"/>
<text text-anchor="start" x="422.96" y="-317.2" font-family="Arial" font-size="14.00">redeemed_at </text>
<text text-anchor="start" x="509.35" y="-317.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="415.96,-274.2 415.96,-305 752.88,-305 752.88,-274.2 415.96,-274.2"/>
<text text-anchor="start" x="422.96" y="-286.4" font-family="Arial" font-size="14.00">redeemed_amount_amount </text>
<text text-anchor="start" x="598.85" y="-286.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="415.96,-243.4 415.96,-274.2 752.88,-274.2 752.88,-243.4 415.96,-243.4"/>
<text text-anchor="start" x="422.96" y="-255.6" font-family="Arial" font-size="14.00">redeemed_amount_currency </text>
<text text-anchor="start" x="605.84" y="-255.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.payment&#45;&gt;public.voucher_redemption -->
<g id="edge2" class="edge">
<title>public.payment:voucher_redemption_id&#45;&gt;public.voucher_redemption:id</title>
<path fill="none" stroke="black" d="M727.42,-830.56C769.84,-782.85 797.99,-412.8 753.88,-412.8"/>
<polygon fill="black" stroke="black" points="727.48,-830.53 716.55,-831.52 722.83,-833.15 719.05,-835.27 719.05,-835.27 719.05,-835.27 722.83,-833.15 720.97,-839.36 727.48,-830.53"/>
<text text-anchor="start" x="725.47" y="-845.6" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_redemption_id) REFERENCES voucher_redemption(id)</text>
</g>
<!-- public.cart -->
<g id="node4" class="node">
<title>public.cart</title>
<polygon fill="#efefef" stroke="none" points="856.94,-382 856.94,-417.6 1071.9,-417.6 1071.9,-382 856.94,-382"/>
<polygon fill="none" stroke="black" points="856.94,-382 856.94,-417.6 1071.9,-417.6 1071.9,-382 856.94,-382"/>
<text text-anchor="start" x="863.94" y="-395.4" font-family="Arial Bold" font-size="18.00">public.cart</text>
<text text-anchor="start" x="940.41" y="-395.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="971.53" y="-395.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="856.94,-351.2 856.94,-382 1071.9,-382 1071.9,-351.2 856.94,-351.2"/>
<text text-anchor="start" x="863.94" y="-363.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="878.73" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="856.94,-320.4 856.94,-351.2 1071.9,-351.2 1071.9,-320.4 856.94,-320.4"/>
<text text-anchor="start" x="863.94" y="-332.6" font-family="Arial" font-size="14.00">event_registration_id </text>
<text text-anchor="start" x="997.8" y="-332.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="856.94,-289.6 856.94,-320.4 1071.9,-320.4 1071.9,-289.6 856.94,-289.6"/>
<text text-anchor="start" x="863.94" y="-301.8" font-family="Arial" font-size="14.00">match_player_id </text>
<text text-anchor="start" x="970.56" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.payment&#45;&gt;public.cart -->
<g id="edge3" class="edge">
<title>public.payment:cart_id&#45;&gt;public.cart:id</title>
<path fill="none" stroke="black" d="M728.75,-804.28C777.18,-799.15 782.35,-756.53 805.42,-707.2 837.84,-637.89 779.43,-366.6 855.94,-366.6"/>
<polygon fill="black" stroke="black" points="728.79,-804.28 718.58,-800.29 723.47,-804.55 719.14,-804.77 719.14,-804.77 719.14,-804.77 723.47,-804.55 719.03,-809.28 728.79,-804.28"/>
<text text-anchor="start" x="725.47" y="-814.8" font-family="Arial" font-size="10.00">FOREIGN KEY (cart_id) REFERENCES cart(id)</text>
</g>
</g>
</svg>
