<?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_redemption Pages: 1 -->
<svg width="975pt" height="1653pt"
 viewBox="0.00 0.00 974.93 1653.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 1649.2)">
<title>public.voucher_redemption</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-1649.2 970.93,-1649.2 970.93,4 -4,4"/>
<!-- public.voucher_redemption -->
<g id="node1" class="node">
<title>public.voucher_redemption</title>
<polygon fill="#efefef" stroke="none" points="288.61,-1005 288.61,-1040.6 625.54,-1040.6 625.54,-1005 288.61,-1005"/>
<polygon fill="none" stroke="black" points="288.61,-1005 288.61,-1040.6 625.54,-1040.6 625.54,-1005 288.61,-1005"/>
<text text-anchor="start" x="295.61" y="-1018.4" font-family="Arial Bold" font-size="18.00">public.voucher_redemption</text>
<text text-anchor="start" x="494.05" y="-1018.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="525.16" y="-1018.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="288.61,-974.2 288.61,-1005 625.54,-1005 625.54,-974.2 288.61,-974.2"/>
<text text-anchor="start" x="295.61" y="-986.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="310.39" y="-986.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="288.61,-943.4 288.61,-974.2 625.54,-974.2 625.54,-943.4 288.61,-943.4"/>
<text text-anchor="start" x="295.61" y="-955.6" font-family="Arial" font-size="14.00">redeemed_by_id </text>
<text text-anchor="start" x="403.79" y="-955.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="288.61,-912.6 288.61,-943.4 625.54,-943.4 625.54,-912.6 288.61,-912.6"/>
<text text-anchor="start" x="295.61" y="-924.8" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="367.99" y="-924.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="288.61,-881.8 288.61,-912.6 625.54,-912.6 625.54,-881.8 288.61,-881.8"/>
<text text-anchor="start" x="295.61" y="-894" font-family="Arial" font-size="14.00">redeemed_at </text>
<text text-anchor="start" x="382" y="-894" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="288.61,-851 288.61,-881.8 625.54,-881.8 625.54,-851 288.61,-851"/>
<text text-anchor="start" x="295.61" y="-863.2" font-family="Arial" font-size="14.00">redeemed_amount_amount </text>
<text text-anchor="start" x="471.5" y="-863.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="288.61,-820.2 288.61,-851 625.54,-851 625.54,-820.2 288.61,-820.2"/>
<text text-anchor="start" x="295.61" y="-832.4" font-family="Arial" font-size="14.00">redeemed_amount_currency </text>
<text text-anchor="start" x="478.49" y="-832.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="287.11,-818.7 287.11,-1042.1 627.04,-1042.1 627.04,-818.7 287.11,-818.7"/>
</g>
<!-- public.user -->
<g id="node3" class="node">
<title>public.user</title>
<polygon fill="#efefef" stroke="none" points="43.2,-659.2 43.2,-694.8 436.94,-694.8 436.94,-659.2 43.2,-659.2"/>
<polygon fill="none" stroke="black" points="43.2,-659.2 43.2,-694.8 436.94,-694.8 436.94,-659.2 43.2,-659.2"/>
<text text-anchor="start" x="138.09" y="-672.6" font-family="Arial Bold" font-size="18.00">public.user</text>
<text text-anchor="start" x="217.57" y="-672.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="248.68" y="-672.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="43.2,-628.4 43.2,-659.2 436.94,-659.2 436.94,-628.4 43.2,-628.4"/>
<text text-anchor="start" x="50.2" y="-640.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="64.99" y="-640.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-597.6 43.2,-628.4 436.94,-628.4 436.94,-597.6 43.2,-597.6"/>
<text text-anchor="start" x="50.2" y="-609.8" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="119.45" y="-609.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-566.8 43.2,-597.6 436.94,-597.6 436.94,-566.8 43.2,-566.8"/>
<text text-anchor="start" x="50.2" y="-579" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="118.68" 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 436.94,-566.8 436.94,-536 43.2,-536"/>
<text text-anchor="start" x="50.2" y="-548.2" font-family="Arial" font-size="14.00">email </text>
<text text-anchor="start" x="87.54" y="-548.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-505.2 43.2,-536 436.94,-536 436.94,-505.2 43.2,-505.2"/>
<text text-anchor="start" x="50.2" y="-517.4" font-family="Arial" font-size="14.00">gender </text>
<text text-anchor="start" x="97.68" y="-517.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-474.4 43.2,-505.2 436.94,-505.2 436.94,-474.4 43.2,-474.4"/>
<text text-anchor="start" x="50.2" y="-486.6" font-family="Arial" font-size="14.00">birthday </text>
<text text-anchor="start" x="103.9" y="-486.6" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="43.2,-443.6 43.2,-474.4 436.94,-474.4 436.94,-443.6 43.2,-443.6"/>
<text text-anchor="start" x="50.2" y="-455.8" font-family="Arial" font-size="14.00">skill_level </text>
<text text-anchor="start" x="114" 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 436.94,-443.6 436.94,-412.8 43.2,-412.8"/>
<text text-anchor="start" x="50.2" y="-425" font-family="Arial" font-size="14.00">is_age_public </text>
<text text-anchor="start" x="139.71" y="-425" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-382 43.2,-412.8 436.94,-412.8 436.94,-382 43.2,-382"/>
<text text-anchor="start" x="50.2" y="-394.2" font-family="Arial" font-size="14.00">profile_image_path </text>
<text text-anchor="start" x="173.17" y="-394.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-351.2 43.2,-382 436.94,-382 436.94,-351.2 43.2,-351.2"/>
<text text-anchor="start" x="50.2" y="-363.4" font-family="Arial" font-size="14.00">is_marketing_consent_granted </text>
<text text-anchor="start" x="245.54" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-320.4 43.2,-351.2 436.94,-351.2 436.94,-320.4 43.2,-320.4"/>
<text text-anchor="start" x="50.2" y="-332.6" font-family="Arial" font-size="14.00">marketing_consent_granted_at </text>
<text text-anchor="start" x="247.11" 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 436.94,-320.4 436.94,-289.6 43.2,-289.6"/>
<text text-anchor="start" x="50.2" y="-301.8" font-family="Arial" font-size="14.00">get_stream_token </text>
<text text-anchor="start" x="166.16" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-258.8 43.2,-289.6 436.94,-289.6 436.94,-258.8 43.2,-258.8"/>
<text text-anchor="start" x="50.2" y="-271" font-family="Arial" font-size="14.00">email_address_id </text>
<text text-anchor="start" x="163.82" 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 436.94,-258.8 436.94,-228 43.2,-228"/>
<text text-anchor="start" x="50.2" y="-240.2" font-family="Arial" font-size="14.00">preferred_playing_times </text>
<text text-anchor="start" x="204.28" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-197.2 43.2,-228 436.94,-228 436.94,-197.2 43.2,-197.2"/>
<text text-anchor="start" x="50.2" y="-209.4" font-family="Arial" font-size="14.00">dominant_hands </text>
<text text-anchor="start" x="157.61" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-166.4 43.2,-197.2 436.94,-197.2 436.94,-166.4 43.2,-166.4"/>
<text text-anchor="start" x="50.2" y="-178.6" font-family="Arial" font-size="14.00">locale </text>
<text text-anchor="start" x="90.67" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-135.6 43.2,-166.4 436.94,-166.4 436.94,-135.6 43.2,-135.6"/>
<text text-anchor="start" x="50.2" y="-147.8" font-family="Arial" font-size="14.00">is_deleted </text>
<text text-anchor="start" x="117.92" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-104.8 43.2,-135.6 436.94,-135.6 436.94,-104.8 43.2,-104.8"/>
<text text-anchor="start" x="50.2" y="-117" font-family="Arial" font-size="14.00">deleted_at </text>
<text text-anchor="start" x="119.48" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-74 43.2,-104.8 436.94,-104.8 436.94,-74 43.2,-74"/>
<text text-anchor="start" x="50.2" y="-86.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="120.25" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-43.2 43.2,-74 436.94,-74 436.94,-43.2 43.2,-43.2"/>
<text text-anchor="start" x="50.2" y="-55.4" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="148.28" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.voucher_redemption&#45;&gt;public.user -->
<g id="edge2" class="edge">
<title>public.voucher_redemption:redeemed_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M277.22,-958.09C208.4,-948.1 239.95,-835.53 288.61,-774 330.69,-720.79 394.73,-791.11 436.94,-738 463,-705.23 479.81,-643.8 437.94,-643.8"/>
<polygon fill="black" stroke="black" points="277.3,-958.09 286.97,-963.27 282.62,-958.46 286.94,-958.75 286.94,-958.75 286.94,-958.75 282.62,-958.46 287.58,-954.29 277.3,-958.09"/>
<text text-anchor="start" x="13.43" y="-968.8" font-family="Arial" font-size="10.00">FOREIGN KEY (redeemed_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher -->
<g id="node4" class="node">
<title>public.voucher</title>
<polygon fill="#efefef" stroke="none" points="540.85,-643.8 540.85,-679.4 809.29,-679.4 809.29,-643.8 540.85,-643.8"/>
<polygon fill="none" stroke="black" points="540.85,-643.8 540.85,-679.4 809.29,-679.4 809.29,-643.8 540.85,-643.8"/>
<text text-anchor="start" x="559.1" y="-657.2" font-family="Arial Bold" font-size="18.00">public.voucher</text>
<text text-anchor="start" x="666.56" y="-657.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="697.68" y="-657.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="540.85,-613 540.85,-643.8 809.29,-643.8 809.29,-613 540.85,-613"/>
<text text-anchor="start" x="547.85" y="-625.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="562.64" y="-625.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="540.85,-582.2 540.85,-613 809.29,-613 809.29,-582.2 540.85,-582.2"/>
<text text-anchor="start" x="547.85" y="-594.4" font-family="Arial" font-size="14.00">code </text>
<text text-anchor="start" x="582.1" y="-594.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="540.85,-551.4 540.85,-582.2 809.29,-582.2 809.29,-551.4 540.85,-551.4"/>
<text text-anchor="start" x="547.85" y="-563.6" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="608.55" y="-563.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="540.85,-520.6 540.85,-551.4 809.29,-551.4 809.29,-520.6 540.85,-520.6"/>
<text text-anchor="start" x="547.85" y="-532.8" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="652.92" y="-532.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="540.85,-489.8 540.85,-520.6 809.29,-520.6 809.29,-489.8 540.85,-489.8"/>
<text text-anchor="start" x="547.85" y="-502" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="659.91" y="-502" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="540.85,-459 540.85,-489.8 809.29,-489.8 809.29,-459 540.85,-459"/>
<text text-anchor="start" x="547.85" y="-471.2" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="573.53" y="-471.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="540.85,-428.2 540.85,-459 809.29,-459 809.29,-428.2 540.85,-428.2"/>
<text text-anchor="start" x="547.85" y="-440.4" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="578.2" y="-440.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="540.85,-397.4 540.85,-428.2 809.29,-428.2 809.29,-397.4 540.85,-397.4"/>
<text text-anchor="start" x="547.85" y="-409.6" font-family="Arial" font-size="14.00">percentage </text>
<text text-anchor="start" x="621.8" y="-409.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="540.85,-366.6 540.85,-397.4 809.29,-397.4 809.29,-366.6 540.85,-366.6"/>
<text text-anchor="start" x="547.85" y="-378.8" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="639.69" y="-378.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="540.85,-335.8 540.85,-366.6 809.29,-366.6 809.29,-335.8 540.85,-335.8"/>
<text text-anchor="start" x="547.85" y="-348" font-family="Arial" font-size="14.00">expires_at </text>
<text text-anchor="start" x="616.33" y="-348" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="540.85,-305 540.85,-335.8 809.29,-335.8 809.29,-305 540.85,-305"/>
<text text-anchor="start" x="547.85" y="-317.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="617.9" y="-317.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="540.85,-274.2 540.85,-305 809.29,-305 809.29,-274.2 540.85,-274.2"/>
<text text-anchor="start" x="547.85" y="-286.4" font-family="Arial" font-size="14.00">blocked_by_id </text>
<text text-anchor="start" x="641.25" y="-286.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="540.85,-243.4 540.85,-274.2 809.29,-274.2 809.29,-243.4 540.85,-243.4"/>
<text text-anchor="start" x="547.85" y="-255.6" font-family="Arial" font-size="14.00">blocked_at </text>
<text text-anchor="start" x="619.46" y="-255.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="540.85,-212.6 540.85,-243.4 809.29,-243.4 809.29,-212.6 540.85,-212.6"/>
<text text-anchor="start" x="547.85" y="-224.8" font-family="Arial" font-size="14.00">allowed_redemptions </text>
<text text-anchor="start" x="684.04" y="-224.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="540.85,-181.8 540.85,-212.6 809.29,-212.6 809.29,-181.8 540.85,-181.8"/>
<text text-anchor="start" x="547.85" y="-194" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="578.99" y="-194" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="540.85,-151 540.85,-181.8 809.29,-181.8 809.29,-151 540.85,-151"/>
<text text-anchor="start" x="547.85" y="-163.2" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="589.09" y="-163.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="540.85,-120.2 540.85,-151 809.29,-151 809.29,-120.2 540.85,-120.2"/>
<text text-anchor="start" x="547.85" y="-132.4" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="577.42" y="-132.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="540.85,-89.4 540.85,-120.2 809.29,-120.2 809.29,-89.4 540.85,-89.4"/>
<text text-anchor="start" x="547.85" y="-101.6" font-family="Arial" font-size="14.00">max_redemptions_per_user </text>
<text text-anchor="start" x="726.06" y="-101.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="540.85,-58.6 540.85,-89.4 809.29,-89.4 809.29,-58.6 540.85,-58.6"/>
<text text-anchor="start" x="547.85" y="-70.8" font-family="Arial" font-size="14.00">original_kind </text>
<text text-anchor="start" x="630.35" y="-70.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.voucher_redemption&#45;&gt;public.voucher -->
<g id="edge3" class="edge">
<title>public.voucher_redemption:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M636.85,-927.17C691.08,-917.77 657.45,-830.28 625.54,-774 603.82,-735.7 562.65,-760.85 540.85,-722.6 520.12,-686.22 497.98,-628.4 539.85,-628.4"/>
<polygon fill="black" stroke="black" points="636.84,-927.17 626.51,-923.49 631.52,-927.6 627.2,-927.95 627.2,-927.95 627.2,-927.95 631.52,-927.6 627.23,-932.46 636.84,-927.17"/>
<text text-anchor="start" x="633.54" y="-938" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.payment -->
<g id="node2" class="node">
<title>public.payment</title>
<polygon fill="#efefef" stroke="none" points="324.02,-1566.4 324.02,-1602 590.12,-1602 590.12,-1566.4 324.02,-1566.4"/>
<polygon fill="none" stroke="black" points="324.02,-1566.4 324.02,-1602 590.12,-1602 590.12,-1566.4 324.02,-1566.4"/>
<text text-anchor="start" x="339.09" y="-1579.8" font-family="Arial Bold" font-size="18.00">public.payment</text>
<text text-anchor="start" x="450.56" y="-1579.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="481.68" y="-1579.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="324.02,-1535.6 324.02,-1566.4 590.12,-1566.4 590.12,-1535.6 324.02,-1535.6"/>
<text text-anchor="start" x="331.02" y="-1547.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="345.81" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="324.02,-1504.8 324.02,-1535.6 590.12,-1535.6 590.12,-1504.8 324.02,-1504.8"/>
<text text-anchor="start" x="331.02" y="-1517" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="372.26" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="324.02,-1474 324.02,-1504.8 590.12,-1504.8 590.12,-1474 324.02,-1474"/>
<text text-anchor="start" x="331.02" y="-1486.2" font-family="Arial" font-size="14.00">total_amount </text>
<text text-anchor="start" x="415.85" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="324.02,-1443.2 324.02,-1474 590.12,-1474 590.12,-1443.2 324.02,-1443.2"/>
<text text-anchor="start" x="331.02" y="-1455.4" font-family="Arial" font-size="14.00">total_currency </text>
<text text-anchor="start" x="422.84" y="-1455.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="324.02,-1412.4 324.02,-1443.2 590.12,-1443.2 590.12,-1412.4 324.02,-1412.4"/>
<text text-anchor="start" x="331.02" y="-1424.6" font-family="Arial" font-size="14.00">stripe_client_secret </text>
<text text-anchor="start" x="455.52" y="-1424.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="324.02,-1381.6 324.02,-1412.4 590.12,-1412.4 590.12,-1381.6 324.02,-1381.6"/>
<text text-anchor="start" x="331.02" y="-1393.8" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="379.28" y="-1393.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="324.02,-1350.8 324.02,-1381.6 590.12,-1381.6 590.12,-1350.8 324.02,-1350.8"/>
<text text-anchor="start" x="331.02" y="-1363" font-family="Arial" font-size="14.00">paid_at </text>
<text text-anchor="start" x="380.84" y="-1363" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="324.02,-1320 324.02,-1350.8 590.12,-1350.8 590.12,-1320 324.02,-1320"/>
<text text-anchor="start" x="331.02" y="-1332.2" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="403.4" y="-1332.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="324.02,-1289.2 324.02,-1320 590.12,-1320 590.12,-1289.2 324.02,-1289.2"/>
<text text-anchor="start" x="331.02" y="-1301.4" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="491.34" y="-1301.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="324.02,-1258.4 324.02,-1289.2 590.12,-1289.2 590.12,-1258.4 324.02,-1258.4"/>
<text text-anchor="start" x="331.02" y="-1270.6" font-family="Arial" font-size="14.00">payment_source </text>
<text text-anchor="start" x="438.41" y="-1270.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="324.02,-1227.6 324.02,-1258.4 590.12,-1258.4 590.12,-1227.6 324.02,-1227.6"/>
<text text-anchor="start" x="331.02" y="-1239.8" font-family="Arial" font-size="14.00">expired_at </text>
<text text-anchor="start" x="400.29" y="-1239.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="324.02,-1196.8 324.02,-1227.6 590.12,-1227.6 590.12,-1196.8 324.02,-1196.8"/>
<text text-anchor="start" x="331.02" y="-1209" font-family="Arial" font-size="14.00">voucher_redemption_id </text>
<text text-anchor="start" x="481.23" y="-1209" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="324.02,-1166 324.02,-1196.8 590.12,-1196.8 590.12,-1166 324.02,-1166"/>
<text text-anchor="start" x="331.02" y="-1178.2" font-family="Arial" font-size="14.00">cart_id </text>
<text text-anchor="start" x="376.93" y="-1178.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.payment&#45;&gt;public.voucher_redemption -->
<g id="edge1" class="edge">
<title>public.payment:voucher_redemption_id&#45;&gt;public.voucher_redemption:id</title>
<path fill="none" stroke="black" d="M601.45,-1211.39C693.62,-1196.82 723.19,-989.6 626.54,-989.6"/>
<polygon fill="black" stroke="black" points="601.43,-1211.4 591.11,-1207.69 596.11,-1211.81 591.79,-1212.15 591.79,-1212.15 591.79,-1212.15 596.11,-1211.81 591.81,-1216.66 601.43,-1211.4"/>
<text text-anchor="start" x="598.12" y="-1222.2" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_redemption_id) REFERENCES voucher_redemption(id)</text>
</g>
</g>
</svg>
