<?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_reservation Pages: 1 -->
<svg width="898pt" height="1156pt"
 viewBox="0.00 0.00 898.15 1156.40" 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 1152.4)">
<title>public.voucher_reservation</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-1152.4 894.15,-1152.4 894.15,4 -4,4"/>
<!-- public.voucher_reservation -->
<g id="node1" class="node">
<title>public.voucher_reservation</title>
<polygon fill="#efefef" stroke="none" points="289.61,-1066.6 289.61,-1102.2 624.53,-1102.2 624.53,-1066.6 289.61,-1066.6"/>
<polygon fill="none" stroke="black" points="289.61,-1066.6 289.61,-1102.2 624.53,-1102.2 624.53,-1066.6 289.61,-1066.6"/>
<text text-anchor="start" x="296.61" y="-1080" font-family="Arial Bold" font-size="18.00">public.voucher_reservation</text>
<text text-anchor="start" x="493.04" y="-1080" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="524.16" y="-1080" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="289.61,-1035.8 289.61,-1066.6 624.53,-1066.6 624.53,-1035.8 289.61,-1035.8"/>
<text text-anchor="start" x="296.61" y="-1048" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="311.4" y="-1048" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="289.61,-1005 289.61,-1035.8 624.53,-1035.8 624.53,-1005 289.61,-1005"/>
<text text-anchor="start" x="296.61" y="-1017.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="357.32" y="-1017.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="289.61,-974.2 289.61,-1005 624.53,-1005 624.53,-974.2 289.61,-974.2"/>
<text text-anchor="start" x="296.61" y="-986.4" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="456.94" y="-986.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="289.61,-943.4 289.61,-974.2 624.53,-974.2 624.53,-943.4 289.61,-943.4"/>
<text text-anchor="start" x="296.61" y="-955.6" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="366.66" y="-955.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="289.61,-912.6 289.61,-943.4 624.53,-943.4 624.53,-912.6 289.61,-912.6"/>
<text text-anchor="start" x="296.61" y="-924.8" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="368.99" y="-924.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="289.61,-881.8 289.61,-912.6 624.53,-912.6 624.53,-881.8 289.61,-881.8"/>
<text text-anchor="start" x="296.61" y="-894" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="344.87" y="-894" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="289.61,-851 289.61,-881.8 624.53,-881.8 624.53,-851 289.61,-851"/>
<text text-anchor="start" x="296.61" y="-863.2" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="401.68" y="-863.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="289.61,-820.2 289.61,-851 624.53,-851 624.53,-820.2 289.61,-820.2"/>
<text text-anchor="start" x="296.61" y="-832.4" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="408.67" y="-832.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="288.11,-818.7 288.11,-1103.7 626.03,-1103.7 626.03,-818.7 288.11,-818.7"/>
</g>
<!-- public.user -->
<g id="node2" 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_reservation&#45;&gt;public.user -->
<g id="edge1" class="edge">
<title>public.voucher_reservation:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M278.2,-1019.88C181.97,-1009.83 224.07,-857.15 289.61,-774 331.35,-721.07 395.04,-790.8 436.94,-738 462.97,-705.21 479.81,-643.8 437.94,-643.8"/>
<polygon fill="black" stroke="black" points="278.29,-1019.88 288.05,-1024.88 283.62,-1020.15 287.95,-1020.37 287.95,-1020.37 287.95,-1020.37 283.62,-1020.15 288.5,-1015.89 278.29,-1019.88"/>
<text text-anchor="start" x="48.35" y="-1030.4" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher -->
<g id="node3" 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_reservation&#45;&gt;public.voucher -->
<g id="edge2" class="edge">
<title>public.voucher_reservation:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M635.84,-927.17C690.06,-917.78 656.3,-830.37 624.53,-774 603.1,-735.98 562.36,-760.58 540.85,-722.6 520.22,-686.17 497.98,-628.4 539.85,-628.4"/>
<polygon fill="black" stroke="black" points="635.83,-927.18 625.5,-923.49 630.51,-927.6 626.2,-927.95 626.2,-927.95 626.2,-927.95 630.51,-927.6 626.22,-932.46 635.83,-927.18"/>
<text text-anchor="start" x="632.53" y="-938" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
</g>
</svg>
