<?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.user Pages: 1 -->
<svg width="7290pt" height="2177pt"
 viewBox="0.00 0.00 7289.83 2176.80" 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 2172.8)">
<title>public.user</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-2172.8 7285.83,-2172.8 7285.83,4 -4,4"/>
<!-- public.user -->
<g id="node1" class="node">
<title>public.user</title>
<polygon fill="#efefef" stroke="none" points="3008.3,-1005 3008.3,-1040.6 3402.05,-1040.6 3402.05,-1005 3008.3,-1005"/>
<polygon fill="none" stroke="black" points="3008.3,-1005 3008.3,-1040.6 3402.05,-1040.6 3402.05,-1005 3008.3,-1005"/>
<text text-anchor="start" x="3103.19" y="-1018.4" font-family="Arial Bold" font-size="18.00">public.user</text>
<text text-anchor="start" x="3182.67" y="-1018.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3213.79" y="-1018.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3008.3,-974.2 3008.3,-1005 3402.05,-1005 3402.05,-974.2 3008.3,-974.2"/>
<text text-anchor="start" x="3015.3" y="-986.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="3030.09" y="-986.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3008.3,-943.4 3008.3,-974.2 3402.05,-974.2 3402.05,-943.4 3008.3,-943.4"/>
<text text-anchor="start" x="3015.3" y="-955.6" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="3084.55" y="-955.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-912.6 3008.3,-943.4 3402.05,-943.4 3402.05,-912.6 3008.3,-912.6"/>
<text text-anchor="start" x="3015.3" y="-924.8" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="3083.78" y="-924.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-881.8 3008.3,-912.6 3402.05,-912.6 3402.05,-881.8 3008.3,-881.8"/>
<text text-anchor="start" x="3015.3" y="-894" font-family="Arial" font-size="14.00">email </text>
<text text-anchor="start" x="3052.65" y="-894" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-851 3008.3,-881.8 3402.05,-881.8 3402.05,-851 3008.3,-851"/>
<text text-anchor="start" x="3015.3" y="-863.2" font-family="Arial" font-size="14.00">gender </text>
<text text-anchor="start" x="3062.78" y="-863.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-820.2 3008.3,-851 3402.05,-851 3402.05,-820.2 3008.3,-820.2"/>
<text text-anchor="start" x="3015.3" y="-832.4" font-family="Arial" font-size="14.00">birthday </text>
<text text-anchor="start" x="3069" y="-832.4" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="3008.3,-789.4 3008.3,-820.2 3402.05,-820.2 3402.05,-789.4 3008.3,-789.4"/>
<text text-anchor="start" x="3015.3" y="-801.6" font-family="Arial" font-size="14.00">skill_level </text>
<text text-anchor="start" x="3079.1" y="-801.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-758.6 3008.3,-789.4 3402.05,-789.4 3402.05,-758.6 3008.3,-758.6"/>
<text text-anchor="start" x="3015.3" y="-770.8" font-family="Arial" font-size="14.00">is_age_public </text>
<text text-anchor="start" x="3104.81" y="-770.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="3008.3,-727.8 3008.3,-758.6 3402.05,-758.6 3402.05,-727.8 3008.3,-727.8"/>
<text text-anchor="start" x="3015.3" y="-740" font-family="Arial" font-size="14.00">profile_image_path </text>
<text text-anchor="start" x="3138.27" y="-740" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-697 3008.3,-727.8 3402.05,-727.8 3402.05,-697 3008.3,-697"/>
<text text-anchor="start" x="3015.3" y="-709.2" font-family="Arial" font-size="14.00">is_marketing_consent_granted </text>
<text text-anchor="start" x="3210.65" y="-709.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="3008.3,-666.2 3008.3,-697 3402.05,-697 3402.05,-666.2 3008.3,-666.2"/>
<text text-anchor="start" x="3015.3" y="-678.4" font-family="Arial" font-size="14.00">marketing_consent_granted_at </text>
<text text-anchor="start" x="3212.21" y="-678.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="3008.3,-635.4 3008.3,-666.2 3402.05,-666.2 3402.05,-635.4 3008.3,-635.4"/>
<text text-anchor="start" x="3015.3" y="-647.6" font-family="Arial" font-size="14.00">get_stream_token </text>
<text text-anchor="start" x="3131.26" y="-647.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="3008.3,-604.6 3008.3,-635.4 3402.05,-635.4 3402.05,-604.6 3008.3,-604.6"/>
<text text-anchor="start" x="3015.3" y="-616.8" font-family="Arial" font-size="14.00">email_address_id </text>
<text text-anchor="start" x="3128.92" y="-616.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3008.3,-573.8 3008.3,-604.6 3402.05,-604.6 3402.05,-573.8 3008.3,-573.8"/>
<text text-anchor="start" x="3015.3" y="-586" font-family="Arial" font-size="14.00">preferred_playing_times </text>
<text text-anchor="start" x="3169.38" y="-586" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="3008.3,-543 3008.3,-573.8 3402.05,-573.8 3402.05,-543 3008.3,-543"/>
<text text-anchor="start" x="3015.3" y="-555.2" font-family="Arial" font-size="14.00">dominant_hands </text>
<text text-anchor="start" x="3122.72" y="-555.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="3008.3,-512.2 3008.3,-543 3402.05,-543 3402.05,-512.2 3008.3,-512.2"/>
<text text-anchor="start" x="3015.3" y="-524.4" font-family="Arial" font-size="14.00">locale </text>
<text text-anchor="start" x="3055.77" y="-524.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3008.3,-481.4 3008.3,-512.2 3402.05,-512.2 3402.05,-481.4 3008.3,-481.4"/>
<text text-anchor="start" x="3015.3" y="-493.6" font-family="Arial" font-size="14.00">is_deleted </text>
<text text-anchor="start" x="3083.02" y="-493.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="3008.3,-450.6 3008.3,-481.4 3402.05,-481.4 3402.05,-450.6 3008.3,-450.6"/>
<text text-anchor="start" x="3015.3" y="-462.8" font-family="Arial" font-size="14.00">deleted_at </text>
<text text-anchor="start" x="3084.58" y="-462.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="3008.3,-419.8 3008.3,-450.6 3402.05,-450.6 3402.05,-419.8 3008.3,-419.8"/>
<text text-anchor="start" x="3015.3" y="-432" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="3085.35" y="-432" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="3008.3,-389 3008.3,-419.8 3402.05,-419.8 3402.05,-389 3008.3,-389"/>
<text text-anchor="start" x="3015.3" y="-401.2" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="3113.38" y="-401.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="3006.8,-387.5 3006.8,-1042.1 3403.55,-1042.1 3403.55,-387.5 3006.8,-387.5"/>
</g>
<!-- public.email_address -->
<g id="node5" class="node">
<title>public.email_address</title>
<polygon fill="#efefef" stroke="none" points="3018.82,-228 3018.82,-263.6 3391.53,-263.6 3391.53,-228 3018.82,-228"/>
<polygon fill="none" stroke="black" points="3018.82,-228 3018.82,-263.6 3391.53,-263.6 3391.53,-228 3018.82,-228"/>
<text text-anchor="start" x="3066.7" y="-241.4" font-family="Arial Bold" font-size="18.00">public.email_address</text>
<text text-anchor="start" x="3219.16" y="-241.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3250.27" y="-241.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3018.82,-197.2 3018.82,-228 3391.53,-228 3391.53,-197.2 3018.82,-197.2"/>
<text text-anchor="start" x="3025.82" y="-209.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="3040.6" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3018.82,-166.4 3018.82,-197.2 3391.53,-197.2 3391.53,-166.4 3018.82,-166.4"/>
<text text-anchor="start" x="3025.82" y="-178.6" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="3075.62" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3018.82,-135.6 3018.82,-166.4 3391.53,-166.4 3391.53,-135.6 3018.82,-135.6"/>
<text text-anchor="start" x="3025.82" y="-147.8" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="3120.75" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3018.82,-104.8 3018.82,-135.6 3391.53,-135.6 3391.53,-104.8 3018.82,-104.8"/>
<text text-anchor="start" x="3025.82" y="-117" font-family="Arial" font-size="14.00">confirmation_token </text>
<text text-anchor="start" x="3147.99" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3018.82,-74 3018.82,-104.8 3391.53,-104.8 3391.53,-74 3018.82,-74"/>
<text text-anchor="start" x="3025.82" y="-86.2" font-family="Arial" font-size="14.00">is_ownership_confirmed </text>
<text text-anchor="start" x="3180.67" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="3018.82,-43.2 3018.82,-74 3391.53,-74 3391.53,-43.2 3018.82,-43.2"/>
<text text-anchor="start" x="3025.82" y="-55.4" font-family="Arial" font-size="14.00">ownership_confirmed_at </text>
<text text-anchor="start" x="3182.24" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) without time zone]</text>
</g>
<!-- public.user&#45;&gt;public.email_address -->
<g id="edge26" class="edge">
<title>public.user:email_address_id&#45;&gt;public.email_address:id</title>
<path fill="none" stroke="black" d="M3413.44,-619.54C3583.7,-604.24 3570.12,-212.6 3392.53,-212.6"/>
<polygon fill="black" stroke="black" points="3413.37,-619.54 3403.18,-615.49 3408.04,-619.78 3403.71,-619.97 3403.71,-619.97 3403.71,-619.97 3408.04,-619.78 3403.58,-624.48 3413.37,-619.54"/>
<text text-anchor="start" x="3410.05" y="-630" font-family="Arial" font-size="10.00">FOREIGN KEY (email_address_id) REFERENCES email_address(id)</text>
</g>
<!-- public.coach -->
<g id="node2" class="node">
<title>public.coach</title>
<polygon fill="#efefef" stroke="none" points="43.2,-1797.4 43.2,-1833 273.15,-1833 273.15,-1797.4 43.2,-1797.4"/>
<polygon fill="none" stroke="black" points="43.2,-1797.4 43.2,-1833 273.15,-1833 273.15,-1797.4 43.2,-1797.4"/>
<text text-anchor="start" x="50.2" y="-1810.8" font-family="Arial Bold" font-size="18.00">public.coach</text>
<text text-anchor="start" x="141.66" y="-1810.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="172.78" y="-1810.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="43.2,-1766.6 43.2,-1797.4 273.15,-1797.4 273.15,-1766.6 43.2,-1766.6"/>
<text text-anchor="start" x="50.2" y="-1778.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="64.99" y="-1778.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1735.8 43.2,-1766.6 273.15,-1766.6 273.15,-1735.8 43.2,-1735.8"/>
<text text-anchor="start" x="50.2" y="-1748" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="133.48" y="-1748" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="43.2,-1705 43.2,-1735.8 273.15,-1735.8 273.15,-1705 43.2,-1705"/>
<text text-anchor="start" x="50.2" y="-1717.2" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="119.45" y="-1717.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1674.2 43.2,-1705 273.15,-1705 273.15,-1674.2 43.2,-1674.2"/>
<text text-anchor="start" x="50.2" y="-1686.4" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="118.68" y="-1686.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1643.4 43.2,-1674.2 273.15,-1674.2 273.15,-1643.4 43.2,-1643.4"/>
<text text-anchor="start" x="50.2" y="-1655.6" font-family="Arial" font-size="14.00">training_prices_as_json </text>
<text text-anchor="start" x="201.18" y="-1655.6" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="43.2,-1612.6 43.2,-1643.4 273.15,-1643.4 273.15,-1612.6 43.2,-1612.6"/>
<text text-anchor="start" x="50.2" y="-1624.8" font-family="Arial" font-size="14.00">profile_image_id </text>
<text text-anchor="start" x="156.82" y="-1624.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1581.8 43.2,-1612.6 273.15,-1612.6 273.15,-1581.8 43.2,-1581.8"/>
<text text-anchor="start" x="50.2" y="-1594" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="145.14" y="-1594" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1551 43.2,-1581.8 273.15,-1581.8 273.15,-1551 43.2,-1551"/>
<text text-anchor="start" x="50.2" y="-1563.2" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="75.88" y="-1563.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1520.2 43.2,-1551 273.15,-1551 273.15,-1520.2 43.2,-1520.2"/>
<text text-anchor="start" x="50.2" y="-1532.4" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="148.28" y="-1532.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1489.4 43.2,-1520.2 273.15,-1520.2 273.15,-1489.4 43.2,-1489.4"/>
<text text-anchor="start" x="50.2" y="-1501.6" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="100.01" y="-1501.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1458.6 43.2,-1489.4 273.15,-1489.4 273.15,-1458.6 43.2,-1458.6"/>
<text text-anchor="start" x="50.2" y="-1470.8" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="108.56" y="-1470.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.coach&#45;&gt;public.user -->
<g id="edge1" class="edge">
<title>public.coach:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M284.2,-1503.05C351.7,-1477.45 264.86,-1178.3 325.17,-1122.8 434.96,-1021.78 2858.11,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="284.33,-1503.03 273.71,-1500.31 279.07,-1503.94 274.81,-1504.69 274.81,-1504.69 274.81,-1504.69 279.07,-1503.94 275.25,-1509.18 284.33,-1503.03"/>
<text text-anchor="start" x="101.54" y="-1488.8" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.court_blocker -->
<g id="node3" class="node">
<title>public.court_blocker</title>
<polygon fill="#efefef" stroke="none" points="377.2,-1766.6 377.2,-1802.2 665.14,-1802.2 665.14,-1766.6 377.2,-1766.6"/>
<polygon fill="none" stroke="black" points="377.2,-1766.6 377.2,-1802.2 665.14,-1802.2 665.14,-1766.6 377.2,-1766.6"/>
<text text-anchor="start" x="384.2" y="-1780" font-family="Arial Bold" font-size="18.00">public.court_blocker</text>
<text text-anchor="start" x="533.65" y="-1780" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="564.77" y="-1780" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="377.2,-1735.8 377.2,-1766.6 665.14,-1766.6 665.14,-1735.8 377.2,-1735.8"/>
<text text-anchor="start" x="384.2" y="-1748" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="398.99" y="-1748" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="377.2,-1705 377.2,-1735.8 665.14,-1735.8 665.14,-1705 377.2,-1705"/>
<text text-anchor="start" x="384.2" y="-1717.2" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="441.78" y="-1717.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="377.2,-1674.2 377.2,-1705 665.14,-1705 665.14,-1674.2 377.2,-1674.2"/>
<text text-anchor="start" x="384.2" y="-1686.4" font-family="Arial" font-size="14.00">ends_at </text>
<text text-anchor="start" x="437.91" y="-1686.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="377.2,-1643.4 377.2,-1674.2 665.14,-1674.2 665.14,-1643.4 377.2,-1643.4"/>
<text text-anchor="start" x="384.2" y="-1655.6" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="409.88" y="-1655.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="377.2,-1612.6 377.2,-1643.4 665.14,-1643.4 665.14,-1612.6 377.2,-1612.6"/>
<text text-anchor="start" x="384.2" y="-1624.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="454.25" y="-1624.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="377.2,-1581.8 377.2,-1612.6 665.14,-1612.6 665.14,-1581.8 377.2,-1581.8"/>
<text text-anchor="start" x="384.2" y="-1594" font-family="Arial" font-size="14.00">updated_at </text>
<text text-anchor="start" x="458.16" y="-1594" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="377.2,-1551 377.2,-1581.8 665.14,-1581.8 665.14,-1551 377.2,-1551"/>
<text text-anchor="start" x="384.2" y="-1563.2" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="415.34" y="-1563.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="377.2,-1520.2 377.2,-1551 665.14,-1551 665.14,-1520.2 377.2,-1520.2"/>
<text text-anchor="start" x="384.2" y="-1532.4" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="476.05" y="-1532.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="377.2,-1489.4 377.2,-1520.2 665.14,-1520.2 665.14,-1489.4 377.2,-1489.4"/>
<text text-anchor="start" x="384.2" y="-1501.6" font-family="Arial" font-size="14.00">updated_by_id </text>
<text text-anchor="start" x="479.96" y="-1501.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.court_blocker&#45;&gt;public.user -->
<g id="edge2" class="edge">
<title>public.court_blocker:updated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M676.2,-1503.05C743.71,-1477.47 657.09,-1178.55 717.17,-1122.8 810.59,-1036.11 2879.86,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="676.33,-1503.03 665.7,-1500.31 671.07,-1503.94 666.8,-1504.69 666.8,-1504.69 666.8,-1504.69 671.07,-1503.94 667.24,-1509.18 676.33,-1503.03"/>
<text text-anchor="start" x="673.14" y="-1488.8" font-family="Arial" font-size="10.00">FOREIGN KEY (updated_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.court_blocker&#45;&gt;public.user -->
<g id="edge3" class="edge">
<title>public.court_blocker:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M676.08,-1534.04C750.34,-1508.72 652.36,-1183.54 717.17,-1122.8 810.17,-1035.65 2879.86,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="676.35,-1533.99 665.77,-1531.1 671.08,-1534.82 666.8,-1535.5 666.8,-1535.5 666.8,-1535.5 671.08,-1534.82 667.17,-1539.99 676.35,-1533.99"/>
<text text-anchor="start" x="673.14" y="-1519.6" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.document_approval -->
<g id="node4" class="node">
<title>public.document_approval</title>
<polygon fill="#efefef" stroke="none" points="769.71,-1689.6 769.71,-1725.2 1100.64,-1725.2 1100.64,-1689.6 769.71,-1689.6"/>
<polygon fill="none" stroke="black" points="769.71,-1689.6 769.71,-1725.2 1100.64,-1725.2 1100.64,-1689.6 769.71,-1689.6"/>
<text text-anchor="start" x="776.71" y="-1703" font-family="Arial Bold" font-size="18.00">public.document_approval</text>
<text text-anchor="start" x="969.15" y="-1703" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1000.27" y="-1703" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="769.71,-1658.8 769.71,-1689.6 1100.64,-1689.6 1100.64,-1658.8 769.71,-1658.8"/>
<text text-anchor="start" x="776.71" y="-1671" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="791.49" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="769.71,-1628 769.71,-1658.8 1100.64,-1658.8 1100.64,-1628 769.71,-1628"/>
<text text-anchor="start" x="776.71" y="-1640.2" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="826.51" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="769.71,-1597.2 769.71,-1628 1100.64,-1628 1100.64,-1597.2 769.71,-1597.2"/>
<text text-anchor="start" x="776.71" y="-1609.4" font-family="Arial" font-size="14.00">document_id </text>
<text text-anchor="start" x="860.76" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="769.71,-1566.4 769.71,-1597.2 1100.64,-1597.2 1100.64,-1566.4 769.71,-1566.4"/>
<text text-anchor="start" x="776.71" y="-1578.6" font-family="Arial" font-size="14.00">approved_at </text>
<text text-anchor="start" x="858.44" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.document_approval&#45;&gt;public.user -->
<g id="edge4" class="edge">
<title>public.document_approval:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M1111.78,-1642.14C1208.79,-1616.28 1071.56,-1201.42 1152.17,-1122.8 1226.15,-1050.66 2903.97,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="1111.9,-1642.12 1101.42,-1638.89 1106.6,-1642.78 1102.31,-1643.32 1102.31,-1643.32 1102.31,-1643.32 1106.6,-1642.78 1102.53,-1647.82 1111.9,-1642.12"/>
<text text-anchor="start" x="988.9" y="-1627.4" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.email_address&#45;&gt;public.user -->
<g id="edge5" class="edge">
<title>public.email_address:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M3402.95,-182.03C3751.75,-197.5 3758.59,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="3402.86,-182.03 3392.97,-177.31 3397.53,-181.91 3393.2,-181.81 3393.2,-181.81 3393.2,-181.81 3397.53,-181.91 3392.77,-186.31 3402.86,-182.03"/>
<text text-anchor="start" x="3399.53" y="-191.8" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.game -->
<g id="node6" class="node">
<title>public.game</title>
<polygon fill="#efefef" stroke="none" points="1204.66,-2090 1204.66,-2125.6 1551.69,-2125.6 1551.69,-2090 1204.66,-2090"/>
<polygon fill="none" stroke="black" points="1204.66,-2090 1204.66,-2125.6 1551.69,-2125.6 1551.69,-2090 1204.66,-2090"/>
<text text-anchor="start" x="1271.69" y="-2103.4" font-family="Arial Bold" font-size="18.00">public.game</text>
<text text-anchor="start" x="1360.16" y="-2103.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1391.28" y="-2103.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="1204.66,-2059.2 1204.66,-2090 1551.69,-2090 1551.69,-2059.2 1204.66,-2059.2"/>
<text text-anchor="start" x="1211.66" y="-2071.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="1226.45" y="-2071.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-2028.4 1204.66,-2059.2 1551.69,-2059.2 1551.69,-2028.4 1204.66,-2028.4"/>
<text text-anchor="start" x="1211.66" y="-2040.6" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="1265.36" y="-2040.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1997.6 1204.66,-2028.4 1551.69,-2028.4 1551.69,-1997.6 1204.66,-1997.6"/>
<text text-anchor="start" x="1211.66" y="-2009.8" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="1259.92" y="-2009.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1966.8 1204.66,-1997.6 1551.69,-1997.6 1551.69,-1966.8 1204.66,-1966.8"/>
<text text-anchor="start" x="1211.66" y="-1979" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="1271.59" y="-1979" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1936 1204.66,-1966.8 1551.69,-1966.8 1551.69,-1936 1204.66,-1936"/>
<text text-anchor="start" x="1211.66" y="-1948.2" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="1241.23" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1204.66,-1905.2 1204.66,-1936 1551.69,-1936 1551.69,-1905.2 1204.66,-1905.2"/>
<text text-anchor="start" x="1211.66" y="-1917.4" font-family="Arial" font-size="14.00">phase </text>
<text text-anchor="start" x="1253.7" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1204.66,-1874.4 1204.66,-1905.2 1551.69,-1905.2 1551.69,-1874.4 1204.66,-1874.4"/>
<text text-anchor="start" x="1211.66" y="-1886.6" font-family="Arial" font-size="14.00">match_period_starts_at </text>
<text text-anchor="start" x="1361.85" y="-1886.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1843.6 1204.66,-1874.4 1551.69,-1874.4 1551.69,-1843.6 1204.66,-1843.6"/>
<text text-anchor="start" x="1211.66" y="-1855.8" font-family="Arial" font-size="14.00">match_period_ends_at </text>
<text text-anchor="start" x="1357.98" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1812.8 1204.66,-1843.6 1551.69,-1843.6 1551.69,-1812.8 1204.66,-1812.8"/>
<text text-anchor="start" x="1211.66" y="-1825" font-family="Arial" font-size="14.00">court_fee_amount </text>
<text text-anchor="start" x="1328.41" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="1204.66,-1782 1204.66,-1812.8 1551.69,-1812.8 1551.69,-1782 1204.66,-1782"/>
<text text-anchor="start" x="1211.66" y="-1794.2" font-family="Arial" font-size="14.00">court_fee_currency </text>
<text text-anchor="start" x="1335.39" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="1204.66,-1751.2 1204.66,-1782 1551.69,-1782 1551.69,-1751.2 1204.66,-1751.2"/>
<text text-anchor="start" x="1211.66" y="-1763.4" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="1281.71" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1720.4 1204.66,-1751.2 1551.69,-1751.2 1551.69,-1720.4 1204.66,-1720.4"/>
<text text-anchor="start" x="1211.66" y="-1732.6" font-family="Arial" font-size="14.00">cancelled_at </text>
<text text-anchor="start" x="1294.16" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1689.6 1204.66,-1720.4 1551.69,-1720.4 1551.69,-1689.6 1204.66,-1689.6"/>
<text text-anchor="start" x="1211.66" y="-1701.8" font-family="Arial" font-size="14.00">scheduled_at </text>
<text text-anchor="start" x="1298.84" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1658.8 1204.66,-1689.6 1551.69,-1689.6 1551.69,-1658.8 1204.66,-1658.8"/>
<text text-anchor="start" x="1211.66" y="-1671" font-family="Arial" font-size="14.00">terminated_at </text>
<text text-anchor="start" x="1301.16" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1628 1204.66,-1658.8 1551.69,-1658.8 1551.69,-1628 1204.66,-1628"/>
<text text-anchor="start" x="1211.66" y="-1640.2" font-family="Arial" font-size="14.00">cancelled_by_id </text>
<text text-anchor="start" x="1315.96" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1597.2 1204.66,-1628 1551.69,-1628 1551.69,-1597.2 1204.66,-1597.2"/>
<text text-anchor="start" x="1211.66" y="-1609.4" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="1242.8" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="1204.66,-1566.4 1204.66,-1597.2 1551.69,-1597.2 1551.69,-1566.4 1204.66,-1566.4"/>
<text text-anchor="start" x="1211.66" y="-1578.6" font-family="Arial" font-size="14.00">schedule_till_latest </text>
<text text-anchor="start" x="1333.85" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1535.6 1204.66,-1566.4 1551.69,-1566.4 1551.69,-1535.6 1204.66,-1535.6"/>
<text text-anchor="start" x="1211.66" y="-1547.8" font-family="Arial" font-size="14.00">match_period_duration_in_seconds </text>
<text text-anchor="start" x="1437.37" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="1204.66,-1504.8 1204.66,-1535.6 1551.69,-1535.6 1551.69,-1504.8 1204.66,-1504.8"/>
<text text-anchor="start" x="1211.66" y="-1517" font-family="Arial" font-size="14.00">day_index </text>
<text text-anchor="start" x="1279.38" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="1204.66,-1474 1204.66,-1504.8 1551.69,-1504.8 1551.69,-1474 1204.66,-1474"/>
<text text-anchor="start" x="1211.66" y="-1486.2" font-family="Arial" font-size="14.00">day_name </text>
<text text-anchor="start" x="1280.93" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1204.66,-1443.2 1204.66,-1474 1551.69,-1474 1551.69,-1443.2 1204.66,-1443.2"/>
<text text-anchor="start" x="1211.66" y="-1455.4" font-family="Arial" font-size="14.00">running_at </text>
<text text-anchor="start" x="1281.72" y="-1455.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1412.4 1204.66,-1443.2 1551.69,-1443.2 1551.69,-1412.4 1204.66,-1412.4"/>
<text text-anchor="start" x="1211.66" y="-1424.6" font-family="Arial" font-size="14.00">finished_at </text>
<text text-anchor="start" x="1283.27" y="-1424.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1381.6 1204.66,-1412.4 1551.69,-1412.4 1551.69,-1381.6 1204.66,-1381.6"/>
<text text-anchor="start" x="1211.66" y="-1393.8" font-family="Arial" font-size="14.00">confirming_at </text>
<text text-anchor="start" x="1299.59" y="-1393.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1350.8 1204.66,-1381.6 1551.69,-1381.6 1551.69,-1350.8 1204.66,-1350.8"/>
<text text-anchor="start" x="1211.66" y="-1363" font-family="Arial" font-size="14.00">match_series_id </text>
<text text-anchor="start" x="1317.49" y="-1363" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1320 1204.66,-1350.8 1551.69,-1350.8 1551.69,-1320 1204.66,-1320"/>
<text text-anchor="start" x="1211.66" y="-1332.2" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="1303.5" y="-1332.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1289.2 1204.66,-1320 1551.69,-1320 1551.69,-1289.2 1204.66,-1289.2"/>
<text text-anchor="start" x="1211.66" y="-1301.4" font-family="Arial" font-size="14.00">split_payment_id </text>
<text text-anchor="start" x="1320.61" y="-1301.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1204.66,-1258.4 1204.66,-1289.2 1551.69,-1289.2 1551.69,-1258.4 1204.66,-1258.4"/>
<text text-anchor="start" x="1211.66" y="-1270.6" font-family="Arial" font-size="14.00">version </text>
<text text-anchor="start" x="1260.68" y="-1270.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="1204.66,-1227.6 1204.66,-1258.4 1551.69,-1258.4 1551.69,-1227.6 1204.66,-1227.6"/>
<text text-anchor="start" x="1211.66" y="-1239.8" font-family="Arial" font-size="14.00">is_split_payment_migrated </text>
<text text-anchor="start" x="1382.08" y="-1239.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="1204.66,-1196.8 1204.66,-1227.6 1551.69,-1227.6 1551.69,-1196.8 1204.66,-1196.8"/>
<text text-anchor="start" x="1211.66" y="-1209" font-family="Arial" font-size="14.00">abandoned_at </text>
<text text-anchor="start" x="1305.09" y="-1209" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="1204.66,-1166 1204.66,-1196.8 1551.69,-1196.8 1551.69,-1166 1204.66,-1166"/>
<text text-anchor="start" x="1211.66" y="-1178.2" font-family="Arial" font-size="14.00">reserved_at </text>
<text text-anchor="start" x="1289.48" y="-1178.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.game&#45;&gt;public.user -->
<g id="edge6" class="edge">
<title>public.game:cancelled_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M1562.82,-1642.14C1659.89,-1616.34 1523.47,-1202.34 1603.17,-1122.8 1714.1,-1012.1 2850.59,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="1562.94,-1642.12 1552.46,-1638.89 1557.65,-1642.78 1553.35,-1643.32 1553.35,-1643.32 1553.35,-1643.32 1557.65,-1642.78 1553.57,-1647.82 1562.94,-1642.12"/>
<text text-anchor="start" x="1559.69" y="-1653.4" font-family="Arial" font-size="10.00">FOREIGN KEY (cancelled_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.game&#45;&gt;public.user -->
<g id="edge7" class="edge">
<title>public.game:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M1563.1,-1334.73C1640.73,-1323.9 1532.77,-1184.06 1603.17,-1122.8 1721.39,-1019.92 2850.59,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="1563,-1334.74 1552.73,-1330.89 1557.68,-1335.08 1553.35,-1335.36 1553.35,-1335.36 1553.35,-1335.36 1557.68,-1335.08 1553.31,-1339.87 1563,-1334.74"/>
<text text-anchor="start" x="1559.69" y="-1345.4" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.liked_clubs -->
<g id="node7" class="node">
<title>public.liked_clubs</title>
<polygon fill="#efefef" stroke="none" points="1655.69,-1658.8 1655.69,-1694.4 1926.66,-1694.4 1926.66,-1658.8 1655.69,-1658.8"/>
<polygon fill="none" stroke="black" points="1655.69,-1658.8 1655.69,-1694.4 1926.66,-1694.4 1926.66,-1658.8 1655.69,-1658.8"/>
<text text-anchor="start" x="1662.69" y="-1672.2" font-family="Arial Bold" font-size="18.00">public.liked_clubs</text>
<text text-anchor="start" x="1795.17" y="-1672.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1826.29" y="-1672.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="1655.69,-1628 1655.69,-1658.8 1926.66,-1658.8 1926.66,-1628 1655.69,-1628"/>
<text text-anchor="start" x="1662.69" y="-1640.2" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="1712.5" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1655.69,-1597.2 1655.69,-1628 1926.66,-1628 1926.66,-1597.2 1655.69,-1597.2"/>
<text text-anchor="start" x="1662.69" y="-1609.4" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="1710.95" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.liked_clubs&#45;&gt;public.user -->
<g id="edge8" class="edge">
<title>public.liked_clubs:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M1937.8,-1642.14C2035.03,-1616.42 1900.75,-1203.63 1979.17,-1122.8 2059.39,-1040.13 2892.11,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="1937.91,-1642.13 1927.44,-1638.89 1932.62,-1642.79 1928.32,-1643.32 1928.32,-1643.32 1928.32,-1643.32 1932.62,-1642.79 1928.54,-1647.82 1937.91,-1642.13"/>
<text text-anchor="start" x="1934.66" y="-1653.4" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id) ON DELETE CASCADE</text>
</g>
<!-- public.match_player -->
<g id="node8" class="node">
<title>public.match_player</title>
<polygon fill="#efefef" stroke="none" points="2031.39,-1812.8 2031.39,-1848.4 2358.96,-1848.4 2358.96,-1812.8 2031.39,-1812.8"/>
<polygon fill="none" stroke="black" points="2031.39,-1812.8 2031.39,-1848.4 2358.96,-1848.4 2358.96,-1812.8 2031.39,-1812.8"/>
<text text-anchor="start" x="2059.21" y="-1826.2" font-family="Arial Bold" font-size="18.00">public.match_player</text>
<text text-anchor="start" x="2206.65" y="-1826.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2237.77" y="-1826.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2031.39,-1782 2031.39,-1812.8 2358.96,-1812.8 2358.96,-1782 2031.39,-1782"/>
<text text-anchor="start" x="2038.39" y="-1794.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="2053.18" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2031.39,-1751.2 2031.39,-1782 2358.96,-1782 2358.96,-1751.2 2031.39,-1751.2"/>
<text text-anchor="start" x="2038.39" y="-1763.4" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="2088.2" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2031.39,-1720.4 2031.39,-1751.2 2358.96,-1751.2 2358.96,-1720.4 2031.39,-1720.4"/>
<text text-anchor="start" x="2038.39" y="-1732.6" font-family="Arial" font-size="14.00">game_id </text>
<text text-anchor="start" x="2095.98" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2031.39,-1689.6 2031.39,-1720.4 2358.96,-1720.4 2358.96,-1689.6 2031.39,-1689.6"/>
<text text-anchor="start" x="2038.39" y="-1701.8" font-family="Arial" font-size="14.00">slot </text>
<text text-anchor="start" x="2064.07" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="2031.39,-1658.8 2031.39,-1689.6 2358.96,-1689.6 2358.96,-1658.8 2031.39,-1658.8"/>
<text text-anchor="start" x="2038.39" y="-1671" font-family="Arial" font-size="14.00">is_host </text>
<text text-anchor="start" x="2086.64" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="2031.39,-1628 2031.39,-1658.8 2358.96,-1658.8 2358.96,-1628 2031.39,-1628"/>
<text text-anchor="start" x="2038.39" y="-1640.2" font-family="Arial" font-size="14.00">terms_of_service_id </text>
<text text-anchor="start" x="2167.56" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2031.39,-1597.2 2031.39,-1628 2358.96,-1628 2358.96,-1597.2 2031.39,-1597.2"/>
<text text-anchor="start" x="2038.39" y="-1609.4" font-family="Arial" font-size="14.00">joined_match_at </text>
<text text-anchor="start" x="2145.02" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2031.39,-1566.4 2031.39,-1597.2 2358.96,-1597.2 2358.96,-1566.4 2031.39,-1566.4"/>
<text text-anchor="start" x="2038.39" y="-1578.6" font-family="Arial" font-size="14.00">confirmed_match_at </text>
<text text-anchor="start" x="2169.12" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2031.39,-1535.6 2031.39,-1566.4 2358.96,-1566.4 2358.96,-1535.6 2031.39,-1535.6"/>
<text text-anchor="start" x="2038.39" y="-1547.8" font-family="Arial" font-size="14.00">left_match_at </text>
<text text-anchor="start" x="2126.33" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2031.39,-1504.8 2031.39,-1535.6 2358.96,-1535.6 2358.96,-1504.8 2031.39,-1504.8"/>
<text text-anchor="start" x="2038.39" y="-1517" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="2079.63" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2031.39,-1474 2031.39,-1504.8 2358.96,-1504.8 2358.96,-1474 2031.39,-1474"/>
<text text-anchor="start" x="2038.39" y="-1486.2" font-family="Arial" font-size="14.00">discount_id </text>
<text text-anchor="start" x="2113.11" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2031.39,-1443.2 2031.39,-1474 2358.96,-1474 2358.96,-1443.2 2031.39,-1443.2"/>
<text text-anchor="start" x="2038.39" y="-1455.4" font-family="Arial" font-size="14.00">expected_payment_of_slots </text>
<text text-anchor="start" x="2216.62" y="-1455.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
</g>
<!-- public.match_player&#45;&gt;public.user -->
<g id="edge9" class="edge">
<title>public.match_player:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M2369.5,-1762.51C2425.39,-1710.3 2366.42,-1174.33 2411.17,-1122.8 2500.19,-1020.32 2871.56,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="2369.46,-1762.53 2358.49,-1762.33 2364.55,-1764.63 2360.57,-1766.34 2360.57,-1766.34 2360.57,-1766.34 2364.55,-1764.63 2362.03,-1770.61 2369.46,-1762.53"/>
<text text-anchor="start" x="2247.22" y="-1750.6" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.payment_intent -->
<g id="node9" class="node">
<title>public.payment_intent</title>
<polygon fill="#efefef" stroke="none" points="2463.2,-1720.4 2463.2,-1756 2763.15,-1756 2763.15,-1720.4 2463.2,-1720.4"/>
<polygon fill="none" stroke="black" points="2463.2,-1720.4 2463.2,-1756 2763.15,-1756 2763.15,-1720.4 2463.2,-1720.4"/>
<text text-anchor="start" x="2470.2" y="-1733.8" font-family="Arial Bold" font-size="18.00">public.payment_intent</text>
<text text-anchor="start" x="2631.66" y="-1733.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2662.78" y="-1733.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2463.2,-1689.6 2463.2,-1720.4 2763.15,-1720.4 2763.15,-1689.6 2463.2,-1689.6"/>
<text text-anchor="start" x="2470.2" y="-1701.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="2484.98" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2463.2,-1658.8 2463.2,-1689.6 2763.15,-1689.6 2763.15,-1658.8 2463.2,-1658.8"/>
<text text-anchor="start" x="2470.2" y="-1671" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="2520" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2463.2,-1628 2463.2,-1658.8 2763.15,-1658.8 2763.15,-1628 2463.2,-1628"/>
<text text-anchor="start" x="2470.2" y="-1640.2" font-family="Arial" font-size="14.00">match_id </text>
<text text-anchor="start" x="2530.89" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2463.2,-1597.2 2463.2,-1628 2763.15,-1628 2763.15,-1597.2 2463.2,-1597.2"/>
<text text-anchor="start" x="2470.2" y="-1609.4" font-family="Arial" font-size="14.00">total_in_cents </text>
<text text-anchor="start" x="2560.48" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2463.2,-1566.4 2463.2,-1597.2 2763.15,-1597.2 2763.15,-1566.4 2463.2,-1566.4"/>
<text text-anchor="start" x="2470.2" y="-1578.6" font-family="Arial" font-size="14.00">currency </text>
<text text-anchor="start" x="2527.77" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2463.2,-1535.6 2463.2,-1566.4 2763.15,-1566.4 2763.15,-1535.6 2463.2,-1535.6"/>
<text text-anchor="start" x="2470.2" y="-1547.8" font-family="Arial" font-size="14.00">stripe_client_secret </text>
<text text-anchor="start" x="2594.7" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.payment_intent&#45;&gt;public.user -->
<g id="edge10" class="edge">
<title>public.payment_intent:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M2773.36,-1669.88C2821.47,-1621.04 2786.86,-1173.05 2816.17,-1122.8 2868.35,-1033.37 2903.76,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="2773.51,-1669.81 2762.54,-1669.98 2768.68,-1672.08 2764.76,-1673.92 2764.76,-1673.92 2764.76,-1673.92 2768.68,-1672.08 2766.36,-1678.13 2773.51,-1669.81"/>
<text text-anchor="start" x="2771.15" y="-1684.2" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id) ON DELETE RESTRICT</text>
</g>
<!-- public.voucher -->
<g id="node10" class="node">
<title>public.voucher</title>
<polygon fill="#efefef" stroke="none" points="2867.95,-1920.6 2867.95,-1956.2 3136.39,-1956.2 3136.39,-1920.6 2867.95,-1920.6"/>
<polygon fill="none" stroke="black" points="2867.95,-1920.6 2867.95,-1956.2 3136.39,-1956.2 3136.39,-1920.6 2867.95,-1920.6"/>
<text text-anchor="start" x="2886.2" y="-1934" font-family="Arial Bold" font-size="18.00">public.voucher</text>
<text text-anchor="start" x="2993.66" y="-1934" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3024.78" y="-1934" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2867.95,-1889.8 2867.95,-1920.6 3136.39,-1920.6 3136.39,-1889.8 2867.95,-1889.8"/>
<text text-anchor="start" x="2874.95" y="-1902" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="2889.74" y="-1902" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2867.95,-1859 2867.95,-1889.8 3136.39,-1889.8 3136.39,-1859 2867.95,-1859"/>
<text text-anchor="start" x="2874.95" y="-1871.2" font-family="Arial" font-size="14.00">code </text>
<text text-anchor="start" x="2909.2" y="-1871.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2867.95,-1828.2 2867.95,-1859 3136.39,-1859 3136.39,-1828.2 2867.95,-1828.2"/>
<text text-anchor="start" x="2874.95" y="-1840.4" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="2935.66" y="-1840.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2867.95,-1797.4 2867.95,-1828.2 3136.39,-1828.2 3136.39,-1797.4 2867.95,-1797.4"/>
<text text-anchor="start" x="2874.95" y="-1809.6" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="2980.02" y="-1809.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="2867.95,-1766.6 2867.95,-1797.4 3136.39,-1797.4 3136.39,-1766.6 2867.95,-1766.6"/>
<text text-anchor="start" x="2874.95" y="-1778.8" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="2987.01" y="-1778.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="2867.95,-1735.8 2867.95,-1766.6 3136.39,-1766.6 3136.39,-1735.8 2867.95,-1735.8"/>
<text text-anchor="start" x="2874.95" y="-1748" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="2900.63" y="-1748" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2867.95,-1705 2867.95,-1735.8 3136.39,-1735.8 3136.39,-1705 2867.95,-1705"/>
<text text-anchor="start" x="2874.95" y="-1717.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="2905.31" y="-1717.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2867.95,-1674.2 2867.95,-1705 3136.39,-1705 3136.39,-1674.2 2867.95,-1674.2"/>
<text text-anchor="start" x="2874.95" y="-1686.4" font-family="Arial" font-size="14.00">percentage </text>
<text text-anchor="start" x="2948.9" y="-1686.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="2867.95,-1643.4 2867.95,-1674.2 3136.39,-1674.2 3136.39,-1643.4 2867.95,-1643.4"/>
<text text-anchor="start" x="2874.95" y="-1655.6" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="2966.79" y="-1655.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2867.95,-1612.6 2867.95,-1643.4 3136.39,-1643.4 3136.39,-1612.6 2867.95,-1612.6"/>
<text text-anchor="start" x="2874.95" y="-1624.8" font-family="Arial" font-size="14.00">expires_at </text>
<text text-anchor="start" x="2943.44" y="-1624.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2867.95,-1581.8 2867.95,-1612.6 3136.39,-1612.6 3136.39,-1581.8 2867.95,-1581.8"/>
<text text-anchor="start" x="2874.95" y="-1594" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="2945" y="-1594" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2867.95,-1551 2867.95,-1581.8 3136.39,-1581.8 3136.39,-1551 2867.95,-1551"/>
<text text-anchor="start" x="2874.95" y="-1563.2" font-family="Arial" font-size="14.00">blocked_by_id </text>
<text text-anchor="start" x="2968.35" y="-1563.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2867.95,-1520.2 2867.95,-1551 3136.39,-1551 3136.39,-1520.2 2867.95,-1520.2"/>
<text text-anchor="start" x="2874.95" y="-1532.4" font-family="Arial" font-size="14.00">blocked_at </text>
<text text-anchor="start" x="2946.56" y="-1532.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2867.95,-1489.4 2867.95,-1520.2 3136.39,-1520.2 3136.39,-1489.4 2867.95,-1489.4"/>
<text text-anchor="start" x="2874.95" y="-1501.6" font-family="Arial" font-size="14.00">allowed_redemptions </text>
<text text-anchor="start" x="3011.15" y="-1501.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="2867.95,-1458.6 2867.95,-1489.4 3136.39,-1489.4 3136.39,-1458.6 2867.95,-1458.6"/>
<text text-anchor="start" x="2874.95" y="-1470.8" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="2906.09" y="-1470.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="2867.95,-1427.8 2867.95,-1458.6 3136.39,-1458.6 3136.39,-1427.8 2867.95,-1427.8"/>
<text text-anchor="start" x="2874.95" y="-1440" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="2916.2" y="-1440" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2867.95,-1397 2867.95,-1427.8 3136.39,-1427.8 3136.39,-1397 2867.95,-1397"/>
<text text-anchor="start" x="2874.95" y="-1409.2" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="2904.53" y="-1409.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2867.95,-1366.2 2867.95,-1397 3136.39,-1397 3136.39,-1366.2 2867.95,-1366.2"/>
<text text-anchor="start" x="2874.95" y="-1378.4" font-family="Arial" font-size="14.00">max_redemptions_per_user </text>
<text text-anchor="start" x="3053.16" y="-1378.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="2867.95,-1335.4 2867.95,-1366.2 3136.39,-1366.2 3136.39,-1335.4 2867.95,-1335.4"/>
<text text-anchor="start" x="2874.95" y="-1347.6" font-family="Arial" font-size="14.00">original_kind </text>
<text text-anchor="start" x="2957.45" y="-1347.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge11" class="edge">
<title>public.voucher:blocked_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M3147.33,-1564.11C3192.98,-1540.86 3152.25,-1347.21 3136.39,-1292.2 3106.6,-1188.82 3038.44,-1190.08 3008.3,-1086.8 2996.2,-1045.33 2964.1,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="3147.46,-1564.08 3136.71,-1561.94 3142.27,-1565.28 3138.05,-1566.25 3138.05,-1566.25 3138.05,-1566.25 3142.27,-1565.28 3138.73,-1570.71 3147.46,-1564.08"/>
<text text-anchor="start" x="3144.39" y="-1576.4" font-family="Arial" font-size="10.00">FOREIGN KEY (blocked_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge12" class="edge">
<title>public.voucher:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M3146.51,-1839.33C3193.79,-1791.03 3152.38,-1347.87 3136.39,-1292.2 3096.03,-1151.67 2861.09,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="3146.75,-1839.22 3135.79,-1839.38 3141.92,-1841.48 3138,-1843.32 3138,-1843.32 3138,-1843.32 3141.92,-1841.48 3139.6,-1847.53 3146.75,-1839.22"/>
<text text-anchor="start" x="3144.39" y="-1853.6" 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="edge13" class="edge">
<title>public.voucher:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M3147.53,-1657.1C3213.55,-1633.32 3157.91,-1366.97 3136.39,-1292.2 3095.96,-1151.69 2861.09,-989.6 3007.3,-989.6"/>
<polygon fill="black" stroke="black" points="3147.59,-1657.09 3136.98,-1654.31 3142.33,-1657.97 3138.05,-1658.69 3138.05,-1658.69 3138.05,-1658.69 3142.33,-1657.97 3138.47,-1663.18 3147.59,-1657.09"/>
<text text-anchor="start" x="3144.39" y="-1668.8" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher_redemption -->
<g id="node11" class="node">
<title>public.voucher_redemption</title>
<polygon fill="#efefef" stroke="none" points="3240.71,-1720.4 3240.71,-1756 3577.64,-1756 3577.64,-1720.4 3240.71,-1720.4"/>
<polygon fill="none" stroke="black" points="3240.71,-1720.4 3240.71,-1756 3577.64,-1756 3577.64,-1720.4 3240.71,-1720.4"/>
<text text-anchor="start" x="3247.71" y="-1733.8" font-family="Arial Bold" font-size="18.00">public.voucher_redemption</text>
<text text-anchor="start" x="3446.15" y="-1733.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3477.27" y="-1733.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3240.71,-1689.6 3240.71,-1720.4 3577.64,-1720.4 3577.64,-1689.6 3240.71,-1689.6"/>
<text text-anchor="start" x="3247.71" y="-1701.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="3262.5" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3240.71,-1658.8 3240.71,-1689.6 3577.64,-1689.6 3577.64,-1658.8 3240.71,-1658.8"/>
<text text-anchor="start" x="3247.71" y="-1671" font-family="Arial" font-size="14.00">redeemed_by_id </text>
<text text-anchor="start" x="3355.9" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3240.71,-1628 3240.71,-1658.8 3577.64,-1658.8 3577.64,-1628 3240.71,-1628"/>
<text text-anchor="start" x="3247.71" y="-1640.2" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="3320.09" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3240.71,-1597.2 3240.71,-1628 3577.64,-1628 3577.64,-1597.2 3240.71,-1597.2"/>
<text text-anchor="start" x="3247.71" y="-1609.4" font-family="Arial" font-size="14.00">redeemed_at </text>
<text text-anchor="start" x="3334.1" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="3240.71,-1566.4 3240.71,-1597.2 3577.64,-1597.2 3577.64,-1566.4 3240.71,-1566.4"/>
<text text-anchor="start" x="3247.71" y="-1578.6" font-family="Arial" font-size="14.00">redeemed_amount_amount </text>
<text text-anchor="start" x="3423.61" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="3240.71,-1535.6 3240.71,-1566.4 3577.64,-1566.4 3577.64,-1535.6 3240.71,-1535.6"/>
<text text-anchor="start" x="3247.71" y="-1547.8" font-family="Arial" font-size="14.00">redeemed_amount_currency </text>
<text text-anchor="start" x="3430.59" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.voucher_redemption&#45;&gt;public.user -->
<g id="edge14" class="edge">
<title>public.voucher_redemption:redeemed_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M3229.3,-1673.54C3165.02,-1664.64 3226.01,-1568 3240.71,-1492.4 3285.53,-1261.89 3637.87,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="3229.4,-1673.54 3239.09,-1678.67 3234.72,-1673.88 3239.04,-1674.16 3239.04,-1674.16 3239.04,-1674.16 3234.72,-1673.88 3239.66,-1669.69 3229.4,-1673.54"/>
<text text-anchor="start" x="3246.71" y="-1684.2" font-family="Arial" font-size="10.00">FOREIGN KEY (redeemed_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.user_group -->
<g id="node12" class="node">
<title>public.user_group</title>
<polygon fill="#efefef" stroke="none" points="3682.28,-1782 3682.28,-1817.6 3974.07,-1817.6 3974.07,-1782 3682.28,-1782"/>
<polygon fill="none" stroke="black" points="3682.28,-1782 3682.28,-1817.6 3974.07,-1817.6 3974.07,-1782 3682.28,-1782"/>
<text text-anchor="start" x="3700.69" y="-1795.4" font-family="Arial Bold" font-size="18.00">public.user_group</text>
<text text-anchor="start" x="3831.17" y="-1795.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3862.28" y="-1795.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3682.28,-1751.2 3682.28,-1782 3974.07,-1782 3974.07,-1751.2 3682.28,-1751.2"/>
<text text-anchor="start" x="3689.28" y="-1763.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="3704.06" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3682.28,-1720.4 3682.28,-1751.2 3974.07,-1751.2 3974.07,-1720.4 3682.28,-1720.4"/>
<text text-anchor="start" x="3689.28" y="-1732.6" font-family="Arial" font-size="14.00">public_name </text>
<text text-anchor="start" x="3772.55" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3682.28,-1689.6 3682.28,-1720.4 3974.07,-1720.4 3974.07,-1689.6 3682.28,-1689.6"/>
<text text-anchor="start" x="3689.28" y="-1701.8" font-family="Arial" font-size="14.00">internal_name </text>
<text text-anchor="start" x="3781.89" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(60)]</text>
<polygon fill="none" stroke="black" points="3682.28,-1658.8 3682.28,-1689.6 3974.07,-1689.6 3974.07,-1658.8 3682.28,-1658.8"/>
<text text-anchor="start" x="3689.28" y="-1671" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="3720.42" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="3682.28,-1628 3682.28,-1658.8 3974.07,-1658.8 3974.07,-1628 3682.28,-1628"/>
<text text-anchor="start" x="3689.28" y="-1640.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="3759.33" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="3682.28,-1597.2 3682.28,-1628 3974.07,-1628 3974.07,-1597.2 3682.28,-1597.2"/>
<text text-anchor="start" x="3689.28" y="-1609.4" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="3719.63" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3682.28,-1566.4 3682.28,-1597.2 3974.07,-1597.2 3974.07,-1566.4 3682.28,-1566.4"/>
<text text-anchor="start" x="3689.28" y="-1578.6" font-family="Arial" font-size="14.00">invite_code </text>
<text text-anchor="start" x="3763.99" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(10)]</text>
<polygon fill="none" stroke="black" points="3682.28,-1535.6 3682.28,-1566.4 3974.07,-1566.4 3974.07,-1535.6 3682.28,-1535.6"/>
<text text-anchor="start" x="3689.28" y="-1547.8" font-family="Arial" font-size="14.00">deactivated_by_id </text>
<text text-anchor="start" x="3806.03" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3682.28,-1504.8 3682.28,-1535.6 3974.07,-1535.6 3974.07,-1504.8 3682.28,-1504.8"/>
<text text-anchor="start" x="3689.28" y="-1517" font-family="Arial" font-size="14.00">deactivated_at </text>
<text text-anchor="start" x="3784.24" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="3682.28,-1474 3682.28,-1504.8 3974.07,-1504.8 3974.07,-1474 3682.28,-1474"/>
<text text-anchor="start" x="3689.28" y="-1486.2" font-family="Arial" font-size="14.00">active </text>
<text text-anchor="start" x="3729.74" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.user_group&#45;&gt;public.user -->
<g id="edge15" class="edge">
<title>public.user_group:deactivated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M3671.39,-1549.59C3592.46,-1525.54 3680.71,-1200 3630.17,-1122.8 3566.08,-1024.89 3520.07,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="3671.05,-1549.54 3680.31,-1555.41 3676.33,-1550.3 3680.62,-1550.91 3680.62,-1550.91 3680.62,-1550.91 3676.33,-1550.3 3681.58,-1546.5 3671.05,-1549.54"/>
<text text-anchor="start" x="3688.28" y="-1561" font-family="Arial" font-size="10.00">FOREIGN KEY (deactivated_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.member -->
<g id="node13" class="node">
<title>public.member</title>
<polygon fill="#efefef" stroke="none" points="4078.73,-1735.8 4078.73,-1771.4 4345.62,-1771.4 4345.62,-1735.8 4078.73,-1735.8"/>
<polygon fill="none" stroke="black" points="4078.73,-1735.8 4078.73,-1771.4 4345.62,-1771.4 4345.62,-1735.8 4078.73,-1735.8"/>
<text text-anchor="start" x="4095.7" y="-1749.2" font-family="Arial Bold" font-size="18.00">public.member</text>
<text text-anchor="start" x="4204.16" y="-1749.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4235.28" y="-1749.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="4078.73,-1705 4078.73,-1735.8 4345.62,-1735.8 4345.62,-1705 4078.73,-1705"/>
<text text-anchor="start" x="4085.73" y="-1717.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4100.52" y="-1717.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4078.73,-1674.2 4078.73,-1705 4345.62,-1705 4345.62,-1674.2 4078.73,-1674.2"/>
<text text-anchor="start" x="4085.73" y="-1686.4" font-family="Arial" font-size="14.00">group_id </text>
<text text-anchor="start" x="4144.11" y="-1686.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4078.73,-1643.4 4078.73,-1674.2 4345.62,-1674.2 4345.62,-1643.4 4078.73,-1643.4"/>
<text text-anchor="start" x="4085.73" y="-1655.6" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="4135.54" y="-1655.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4078.73,-1612.6 4078.73,-1643.4 4345.62,-1643.4 4345.62,-1612.6 4078.73,-1612.6"/>
<text text-anchor="start" x="4085.73" y="-1624.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="4155.78" y="-1624.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4078.73,-1581.8 4078.73,-1612.6 4345.62,-1612.6 4345.62,-1581.8 4078.73,-1581.8"/>
<text text-anchor="start" x="4085.73" y="-1594" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="4180.67" y="-1594" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4078.73,-1551 4078.73,-1581.8 4345.62,-1581.8 4345.62,-1551 4078.73,-1551"/>
<text text-anchor="start" x="4085.73" y="-1563.2" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="4126.97" y="-1563.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4078.73,-1520.2 4078.73,-1551 4345.62,-1551 4345.62,-1520.2 4078.73,-1520.2"/>
<text text-anchor="start" x="4085.73" y="-1532.4" font-family="Arial" font-size="14.00">added_by_id </text>
<text text-anchor="start" x="4169.81" y="-1532.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.member&#45;&gt;public.user -->
<g id="edge16" class="edge">
<title>public.member:added_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M4067.77,-1534.06C3993.11,-1509.09 4086.22,-1188.27 4026.17,-1122.8 3930.46,-1018.45 3544.65,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="4067.52,-1534.02 4076.71,-1540 4072.79,-1534.84 4077.07,-1535.5 4077.07,-1535.5 4077.07,-1535.5 4072.79,-1534.84 4078.09,-1531.1 4067.52,-1534.02"/>
<text text-anchor="start" x="3886.77" y="-1519.6" font-family="Arial" font-size="10.00">FOREIGN KEY (added_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.member&#45;&gt;public.user -->
<g id="edge17" class="edge">
<title>public.member:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M4067.59,-1657.59C3966.81,-1632.08 4103.39,-1209.42 4026.17,-1122.8 3931.95,-1017.1 3544.65,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="4067.47,-1657.58 4076.87,-1663.23 4072.77,-1658.21 4077.07,-1658.72 4077.07,-1658.72 4077.07,-1658.72 4072.77,-1658.21 4077.93,-1654.29 4067.47,-1657.58"/>
<text text-anchor="start" x="3845.25" y="-1668.8" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.match_series -->
<g id="node14" class="node">
<title>public.match_series</title>
<polygon fill="#efefef" stroke="none" points="4450.01,-1874.4 4450.01,-1910 4736.34,-1910 4736.34,-1874.4 4450.01,-1874.4"/>
<polygon fill="none" stroke="black" points="4450.01,-1874.4 4450.01,-1910 4736.34,-1910 4736.34,-1874.4 4450.01,-1874.4"/>
<text text-anchor="start" x="4459.2" y="-1887.8" font-family="Arial Bold" font-size="18.00">public.match_series</text>
<text text-anchor="start" x="4602.66" y="-1887.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4633.77" y="-1887.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="4450.01,-1843.6 4450.01,-1874.4 4736.34,-1874.4 4736.34,-1843.6 4450.01,-1843.6"/>
<text text-anchor="start" x="4457.01" y="-1855.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4471.8" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4450.01,-1812.8 4450.01,-1843.6 4736.34,-1843.6 4736.34,-1812.8 4450.01,-1812.8"/>
<text text-anchor="start" x="4457.01" y="-1825" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="4510.71" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4450.01,-1782 4450.01,-1812.8 4736.34,-1812.8 4736.34,-1782 4450.01,-1782"/>
<text text-anchor="start" x="4457.01" y="-1794.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="4517.71" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4450.01,-1751.2 4450.01,-1782 4736.34,-1782 4736.34,-1751.2 4450.01,-1751.2"/>
<text text-anchor="start" x="4457.01" y="-1763.4" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="4527.06" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4450.01,-1720.4 4450.01,-1751.2 4736.34,-1751.2 4736.34,-1720.4 4450.01,-1720.4"/>
<text text-anchor="start" x="4457.01" y="-1732.6" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="4498.25" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4450.01,-1689.6 4450.01,-1720.4 4736.34,-1720.4 4736.34,-1689.6 4450.01,-1689.6"/>
<text text-anchor="start" x="4457.01" y="-1701.8" font-family="Arial" font-size="14.00">payment_plan </text>
<text text-anchor="start" x="4548.85" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4450.01,-1658.8 4450.01,-1689.6 4736.34,-1689.6 4736.34,-1658.8 4450.01,-1658.8"/>
<text text-anchor="start" x="4457.01" y="-1671" font-family="Arial" font-size="14.00">match_duration_in_seconds </text>
<text text-anchor="start" x="4636.01" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="4450.01,-1628 4450.01,-1658.8 4736.34,-1658.8 4736.34,-1628 4450.01,-1628"/>
<text text-anchor="start" x="4457.01" y="-1640.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="4487.36" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4450.01,-1597.2 4450.01,-1628 4736.34,-1628 4736.34,-1597.2 4450.01,-1597.2"/>
<text text-anchor="start" x="4457.01" y="-1609.4" font-family="Arial" font-size="14.00">weekday </text>
<text text-anchor="start" x="4516.15" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4450.01,-1566.4 4450.01,-1597.2 4736.34,-1597.2 4736.34,-1566.4 4450.01,-1566.4"/>
<text text-anchor="start" x="4457.01" y="-1578.6" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="4488.15" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4450.01,-1535.6 4450.01,-1566.4 4736.34,-1566.4 4736.34,-1535.6 4450.01,-1535.6"/>
<text text-anchor="start" x="4457.01" y="-1547.8" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="4514.59" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[time(0) without time zone]</text>
<polygon fill="none" stroke="black" points="4450.01,-1504.8 4450.01,-1535.6 4736.34,-1535.6 4736.34,-1504.8 4450.01,-1504.8"/>
<text text-anchor="start" x="4457.01" y="-1517" font-family="Arial" font-size="14.00">discount_percentage </text>
<text text-anchor="start" x="4590.88" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="4450.01,-1474 4450.01,-1504.8 4736.34,-1504.8 4736.34,-1474 4450.01,-1474"/>
<text text-anchor="start" x="4457.01" y="-1486.2" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="4505.26" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4450.01,-1443.2 4450.01,-1474 4736.34,-1474 4736.34,-1443.2 4450.01,-1443.2"/>
<text text-anchor="start" x="4457.01" y="-1455.4" font-family="Arial" font-size="14.00">discount_id </text>
<text text-anchor="start" x="4531.73" y="-1455.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4450.01,-1412.4 4450.01,-1443.2 4736.34,-1443.2 4736.34,-1412.4 4450.01,-1412.4"/>
<text text-anchor="start" x="4457.01" y="-1424.6" font-family="Arial" font-size="14.00">activated_at </text>
<text text-anchor="start" x="4536.39" y="-1424.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4450.01,-1381.6 4450.01,-1412.4 4736.34,-1412.4 4736.34,-1381.6 4450.01,-1381.6"/>
<text text-anchor="start" x="4457.01" y="-1393.8" font-family="Arial" font-size="14.00">terminated_at </text>
<text text-anchor="start" x="4546.51" y="-1393.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.match_series&#45;&gt;public.user -->
<g id="edge18" class="edge">
<title>public.match_series:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M4439.41,-1793.44C4380.68,-1740.52 4447.35,-1174.9 4398.17,-1122.8 4321.61,-1041.67 3514.6,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="4439.46,-1793.46 4446.98,-1801.43 4444.39,-1795.49 4448.39,-1797.14 4448.39,-1797.14 4448.39,-1797.14 4444.39,-1795.49 4450.42,-1793.11 4439.46,-1793.46"/>
<text text-anchor="start" x="4208.75" y="-1807.4" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.club_event -->
<g id="node15" class="node">
<title>public.club_event</title>
<polygon fill="#efefef" stroke="none" points="4840.6,-1997.6 4840.6,-2033.2 5183.75,-2033.2 5183.75,-1997.6 4840.6,-1997.6"/>
<polygon fill="none" stroke="black" points="4840.6,-1997.6 4840.6,-2033.2 5183.75,-2033.2 5183.75,-1997.6 4840.6,-1997.6"/>
<text text-anchor="start" x="4885.7" y="-2011" font-family="Arial Bold" font-size="18.00">public.club_event</text>
<text text-anchor="start" x="5014.16" y="-2011" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5045.28" y="-2011" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="4840.6,-1966.8 4840.6,-1997.6 5183.75,-1997.6 5183.75,-1966.8 4840.6,-1966.8"/>
<text text-anchor="start" x="4847.6" y="-1979" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4862.39" y="-1979" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4840.6,-1936 4840.6,-1966.8 5183.75,-1966.8 5183.75,-1936 4840.6,-1936"/>
<text text-anchor="start" x="4847.6" y="-1948.2" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="4930.88" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1905.2 4840.6,-1936 5183.75,-1936 5183.75,-1905.2 4840.6,-1905.2"/>
<text text-anchor="start" x="4847.6" y="-1917.4" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="4905.96" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="4840.6,-1874.4 4840.6,-1905.2 5183.75,-1905.2 5183.75,-1874.4 4840.6,-1874.4"/>
<text text-anchor="start" x="4847.6" y="-1886.6" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="4895.85" y="-1886.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4840.6,-1843.6 4840.6,-1874.4 5183.75,-1874.4 5183.75,-1843.6 4840.6,-1843.6"/>
<text text-anchor="start" x="4847.6" y="-1855.8" font-family="Arial" font-size="14.00">template_id </text>
<text text-anchor="start" x="4923.87" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4840.6,-1812.8 4840.6,-1843.6 5183.75,-1843.6 5183.75,-1812.8 4840.6,-1812.8"/>
<text text-anchor="start" x="4847.6" y="-1825" font-family="Arial" font-size="14.00">event_period_starts_at </text>
<text text-anchor="start" x="4993.92" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4840.6,-1782 4840.6,-1812.8 5183.75,-1812.8 5183.75,-1782 4840.6,-1782"/>
<text text-anchor="start" x="4847.6" y="-1794.2" font-family="Arial" font-size="14.00">event_period_ends_at </text>
<text text-anchor="start" x="4990.05" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4840.6,-1751.2 4840.6,-1782 5183.75,-1782 5183.75,-1751.2 4840.6,-1751.2"/>
<text text-anchor="start" x="4847.6" y="-1763.4" font-family="Arial" font-size="14.00">event_period_duration_in_seconds </text>
<text text-anchor="start" x="5069.43" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="4840.6,-1720.4 4840.6,-1751.2 5183.75,-1751.2 5183.75,-1720.4 4840.6,-1720.4"/>
<text text-anchor="start" x="4847.6" y="-1732.6" font-family="Arial" font-size="14.00">price_per_person_amount </text>
<text text-anchor="start" x="5014.93" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="4840.6,-1689.6 4840.6,-1720.4 5183.75,-1720.4 5183.75,-1689.6 4840.6,-1689.6"/>
<text text-anchor="start" x="4847.6" y="-1701.8" font-family="Arial" font-size="14.00">price_per_person_currency </text>
<text text-anchor="start" x="5021.92" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1658.8 4840.6,-1689.6 5183.75,-1689.6 5183.75,-1658.8 4840.6,-1658.8"/>
<text text-anchor="start" x="4847.6" y="-1671" font-family="Arial" font-size="14.00">stripe_price_id </text>
<text text-anchor="start" x="4942.54" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1628 4840.6,-1658.8 5183.75,-1658.8 5183.75,-1628 4840.6,-1628"/>
<text text-anchor="start" x="4847.6" y="-1640.2" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="4888.84" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1597.2 4840.6,-1628 5183.75,-1628 5183.75,-1597.2 4840.6,-1597.2"/>
<text text-anchor="start" x="4847.6" y="-1609.4" font-family="Arial" font-size="14.00">max_confirmed_registrations </text>
<text text-anchor="start" x="5031.23" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="4840.6,-1566.4 4840.6,-1597.2 5183.75,-1597.2 5183.75,-1566.4 4840.6,-1566.4"/>
<text text-anchor="start" x="4847.6" y="-1578.6" font-family="Arial" font-size="14.00">registration_opens_at </text>
<text text-anchor="start" x="4986.14" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4840.6,-1535.6 4840.6,-1566.4 5183.75,-1566.4 5183.75,-1535.6 4840.6,-1535.6"/>
<text text-anchor="start" x="4847.6" y="-1547.8" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="4919.19" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="4840.6,-1504.8 4840.6,-1535.6 5183.75,-1535.6 5183.75,-1504.8 4840.6,-1504.8"/>
<text text-anchor="start" x="4847.6" y="-1517" font-family="Arial" font-size="14.00">persons_per_team </text>
<text text-anchor="start" x="4968.23" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="4840.6,-1474 4840.6,-1504.8 5183.75,-1504.8 5183.75,-1474 4840.6,-1474"/>
<text text-anchor="start" x="4847.6" y="-1486.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="4877.95" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1443.2 4840.6,-1474 5183.75,-1474 5183.75,-1443.2 4840.6,-1443.2"/>
<text text-anchor="start" x="4847.6" y="-1455.4" font-family="Arial" font-size="14.00">is_registrations_hidden </text>
<text text-anchor="start" x="4995.47" y="-1455.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="4840.6,-1412.4 4840.6,-1443.2 5183.75,-1443.2 5183.75,-1412.4 4840.6,-1412.4"/>
<text text-anchor="start" x="4847.6" y="-1424.6" font-family="Arial" font-size="14.00">registration_closes_at </text>
<text text-anchor="start" x="4987.67" y="-1424.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4840.6,-1381.6 4840.6,-1412.4 5183.75,-1412.4 5183.75,-1381.6 4840.6,-1381.6"/>
<text text-anchor="start" x="4847.6" y="-1393.8" font-family="Arial" font-size="14.00">free_cancellation_strategy </text>
<text text-anchor="start" x="5014.92" y="-1393.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1350.8 4840.6,-1381.6 5183.75,-1381.6 5183.75,-1350.8 4840.6,-1350.8"/>
<text text-anchor="start" x="4847.6" y="-1363" font-family="Arial" font-size="14.00">updated_by_id </text>
<text text-anchor="start" x="4943.35" y="-1363" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4840.6,-1320 4840.6,-1350.8 5183.75,-1350.8 5183.75,-1320 4840.6,-1320"/>
<text text-anchor="start" x="4847.6" y="-1332.2" font-family="Arial" font-size="14.00">cancellation_reason </text>
<text text-anchor="start" x="4976.02" y="-1332.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4840.6,-1289.2 4840.6,-1320 5183.75,-1320 5183.75,-1289.2 4840.6,-1289.2"/>
<text text-anchor="start" x="4847.6" y="-1301.4" font-family="Arial" font-size="14.00">updated_at </text>
<text text-anchor="start" x="4921.56" y="-1301.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4840.6,-1258.4 4840.6,-1289.2 5183.75,-1289.2 5183.75,-1258.4 4840.6,-1258.4"/>
<text text-anchor="start" x="4847.6" y="-1270.6" font-family="Arial" font-size="14.00">sport_id </text>
<text text-anchor="start" x="4901.3" y="-1270.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.club_event&#45;&gt;public.user -->
<g id="edge19" class="edge">
<title>public.club_event:updated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M4829.4,-1365.65C4738.19,-1355.03 4867.88,-1194.02 4788.17,-1122.8 4672.88,-1019.78 3557.66,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="4829.28,-1365.64 4839.02,-1370.68 4834.61,-1365.93 4838.93,-1366.16 4838.93,-1366.16 4838.93,-1366.16 4834.61,-1365.93 4839.51,-1361.69 4829.28,-1365.64"/>
<text text-anchor="start" x="4846.6" y="-1376.2" font-family="Arial" font-size="10.00">FOREIGN KEY (updated_by_id) REFERENCES &quot;user&quot;(id) ON DELETE SET NULL</text>
</g>
<!-- public.event_registration -->
<g id="node16" class="node">
<title>public.event_registration</title>
<polygon fill="#efefef" stroke="none" points="5288.21,-1751.2 5288.21,-1786.8 5606.14,-1786.8 5606.14,-1751.2 5288.21,-1751.2"/>
<polygon fill="none" stroke="black" points="5288.21,-1751.2 5288.21,-1786.8 5606.14,-1786.8 5606.14,-1751.2 5288.21,-1751.2"/>
<text text-anchor="start" x="5295.21" y="-1764.6" font-family="Arial Bold" font-size="18.00">public.event_registration</text>
<text text-anchor="start" x="5474.65" y="-1764.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5505.77" y="-1764.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5288.21,-1720.4 5288.21,-1751.2 5606.14,-1751.2 5606.14,-1720.4 5288.21,-1720.4"/>
<text text-anchor="start" x="5295.21" y="-1732.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5309.99" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5288.21,-1689.6 5288.21,-1720.4 5606.14,-1720.4 5606.14,-1689.6 5288.21,-1689.6"/>
<text text-anchor="start" x="5295.21" y="-1701.8" font-family="Arial" font-size="14.00">event_id </text>
<text text-anchor="start" x="5352.03" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5288.21,-1658.8 5288.21,-1689.6 5606.14,-1689.6 5606.14,-1658.8 5288.21,-1658.8"/>
<text text-anchor="start" x="5295.21" y="-1671" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="5365.25" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5288.21,-1628 5288.21,-1658.8 5606.14,-1658.8 5606.14,-1628 5288.21,-1628"/>
<text text-anchor="start" x="5295.21" y="-1640.2" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="5336.45" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5288.21,-1597.2 5288.21,-1628 5606.14,-1628 5606.14,-1597.2 5288.21,-1597.2"/>
<text text-anchor="start" x="5295.21" y="-1609.4" font-family="Arial" font-size="14.00">team_id </text>
<text text-anchor="start" x="5348.9" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5288.21,-1566.4 5288.21,-1597.2 5606.14,-1597.2 5606.14,-1566.4 5288.21,-1566.4"/>
<text text-anchor="start" x="5295.21" y="-1578.6" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="5387.05" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5288.21,-1535.6 5288.21,-1566.4 5606.14,-1566.4 5606.14,-1535.6 5288.21,-1535.6"/>
<text text-anchor="start" x="5295.21" y="-1547.8" font-family="Arial" font-size="14.00">cancelled_by_id </text>
<text text-anchor="start" x="5399.5" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5288.21,-1504.8 5288.21,-1535.6 5606.14,-1535.6 5606.14,-1504.8 5288.21,-1504.8"/>
<text text-anchor="start" x="5295.21" y="-1517" font-family="Arial" font-size="14.00">cancelled_at </text>
<text text-anchor="start" x="5377.71" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.event_registration&#45;&gt;public.user -->
<g id="edge20" class="edge">
<title>public.event_registration:cancelled_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M5276.91,-1549.38C5200.01,-1523.17 5302.77,-1186.4 5236.17,-1122.8 5162.33,-1052.28 3505.15,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="5277,-1549.4 5286.18,-1555.39 5282.27,-1550.22 5286.55,-1550.9 5286.55,-1550.9 5286.55,-1550.9 5282.27,-1550.22 5287.57,-1546.5 5277,-1549.4"/>
<text text-anchor="start" x="5085.41" y="-1535" font-family="Arial" font-size="10.00">FOREIGN KEY (cancelled_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.event_registration&#45;&gt;public.user -->
<g id="edge21" class="edge">
<title>public.event_registration:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M5276.96,-1580.31C5193.39,-1554.19 5307.44,-1191.4 5236.17,-1122.8 5162.61,-1051.99 3505.15,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="5276.98,-1580.32 5286.23,-1586.21 5282.26,-1581.08 5286.54,-1581.7 5286.54,-1581.7 5286.54,-1581.7 5282.26,-1581.08 5287.52,-1577.3 5276.98,-1580.32"/>
<text text-anchor="start" x="5024.7" y="-1591.8" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.team_member -->
<g id="node17" class="node">
<title>public.team_member</title>
<polygon fill="#efefef" stroke="none" points="5710.71,-1751.2 5710.71,-1786.8 6001.64,-1786.8 6001.64,-1751.2 5710.71,-1751.2"/>
<polygon fill="none" stroke="black" points="5710.71,-1751.2 5710.71,-1786.8 6001.64,-1786.8 6001.64,-1751.2 5710.71,-1751.2"/>
<text text-anchor="start" x="5717.71" y="-1764.6" font-family="Arial Bold" font-size="18.00">public.team_member</text>
<text text-anchor="start" x="5870.15" y="-1764.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5901.27" y="-1764.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5710.71,-1720.4 5710.71,-1751.2 6001.64,-1751.2 6001.64,-1720.4 5710.71,-1720.4"/>
<text text-anchor="start" x="5717.71" y="-1732.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5732.49" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5710.71,-1689.6 5710.71,-1720.4 6001.64,-1720.4 6001.64,-1689.6 5710.71,-1689.6"/>
<text text-anchor="start" x="5717.71" y="-1701.8" font-family="Arial" font-size="14.00">team_id </text>
<text text-anchor="start" x="5771.4" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5710.71,-1658.8 5710.71,-1689.6 6001.64,-1689.6 6001.64,-1658.8 5710.71,-1658.8"/>
<text text-anchor="start" x="5717.71" y="-1671" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="5787.75" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) without time zone]</text>
<polygon fill="none" stroke="black" points="5710.71,-1628 5710.71,-1658.8 6001.64,-1658.8 6001.64,-1628 5710.71,-1628"/>
<text text-anchor="start" x="5717.71" y="-1640.2" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="5786.95" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5710.71,-1597.2 5710.71,-1628 6001.64,-1628 6001.64,-1597.2 5710.71,-1597.2"/>
<text text-anchor="start" x="5717.71" y="-1609.4" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="5786.19" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5710.71,-1566.4 5710.71,-1597.2 6001.64,-1597.2 6001.64,-1566.4 5710.71,-1566.4"/>
<text text-anchor="start" x="5717.71" y="-1578.6" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="5812.64" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5710.71,-1535.6 5710.71,-1566.4 6001.64,-1566.4 6001.64,-1535.6 5710.71,-1535.6"/>
<text text-anchor="start" x="5717.71" y="-1547.8" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="5767.51" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5710.71,-1504.8 5710.71,-1535.6 6001.64,-1535.6 6001.64,-1504.8 5710.71,-1504.8"/>
<text text-anchor="start" x="5717.71" y="-1517" font-family="Arial" font-size="14.00">role </text>
<text text-anchor="start" x="5744.94" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.team_member&#45;&gt;public.user -->
<g id="edge22" class="edge">
<title>public.team_member:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M5699.41,-1549.38C5622.5,-1523.13 5725.25,-1185.91 5658.17,-1122.8 5566.77,-1036.79 3528.55,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="5699.5,-1549.39 5708.68,-1555.39 5704.77,-1550.22 5709.05,-1550.9 5709.05,-1550.9 5709.05,-1550.9 5704.77,-1550.22 5710.08,-1546.5 5699.5,-1549.39"/>
<text text-anchor="start" x="5656.84" y="-1535" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.wellpass_account -->
<g id="node18" class="node">
<title>public.wellpass_account</title>
<polygon fill="#efefef" stroke="none" points="6105.7,-1751.2 6105.7,-1786.8 6420.64,-1786.8 6420.64,-1751.2 6105.7,-1751.2"/>
<polygon fill="none" stroke="black" points="6105.7,-1751.2 6105.7,-1786.8 6420.64,-1786.8 6420.64,-1751.2 6105.7,-1751.2"/>
<text text-anchor="start" x="6112.7" y="-1764.6" font-family="Arial Bold" font-size="18.00">public.wellpass_account</text>
<text text-anchor="start" x="6289.15" y="-1764.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6320.27" y="-1764.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6105.7,-1720.4 6105.7,-1751.2 6420.64,-1751.2 6420.64,-1720.4 6105.7,-1720.4"/>
<text text-anchor="start" x="6112.7" y="-1732.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6127.49" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6105.7,-1689.6 6105.7,-1720.4 6420.64,-1720.4 6420.64,-1689.6 6105.7,-1689.6"/>
<text text-anchor="start" x="6112.7" y="-1701.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6182.75" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6105.7,-1658.8 6105.7,-1689.6 6420.64,-1689.6 6420.64,-1658.8 6105.7,-1658.8"/>
<text text-anchor="start" x="6112.7" y="-1671" font-family="Arial" font-size="14.00">is_linked </text>
<text text-anchor="start" x="6171.07" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="6105.7,-1628 6105.7,-1658.8 6420.64,-1658.8 6420.64,-1628 6105.7,-1628"/>
<text text-anchor="start" x="6112.7" y="-1640.2" font-family="Arial" font-size="14.00">linked_at </text>
<text text-anchor="start" x="6172.64" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6105.7,-1597.2 6105.7,-1628 6420.64,-1628 6420.64,-1597.2 6105.7,-1597.2"/>
<text text-anchor="start" x="6112.7" y="-1609.4" font-family="Arial" font-size="14.00">member_account_id </text>
<text text-anchor="start" x="6243.44" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6105.7,-1566.4 6105.7,-1597.2 6420.64,-1597.2 6420.64,-1566.4 6105.7,-1566.4"/>
<text text-anchor="start" x="6112.7" y="-1578.6" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="6173.41" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6105.7,-1535.6 6105.7,-1566.4 6420.64,-1566.4 6420.64,-1535.6 6105.7,-1535.6"/>
<text text-anchor="start" x="6112.7" y="-1547.8" font-family="Arial" font-size="14.00">linked_with_email_address </text>
<text text-anchor="start" x="6284.69" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6105.7,-1504.8 6105.7,-1535.6 6420.64,-1535.6 6420.64,-1504.8 6105.7,-1504.8"/>
<text text-anchor="start" x="6112.7" y="-1517" font-family="Arial" font-size="14.00">user_group_member_id </text>
<text text-anchor="start" x="6265.24" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.wellpass_account&#45;&gt;public.user -->
<g id="edge23" class="edge">
<title>public.wellpass_account:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6094.46,-1580.31C6010.99,-1554.13 6126.16,-1190.63 6054.17,-1122.8 5946.84,-1021.67 3550.52,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="6094.48,-1580.31 6103.73,-1586.21 6099.76,-1581.08 6104.04,-1581.7 6104.04,-1581.7 6104.04,-1581.7 6099.76,-1581.08 6105.02,-1577.3 6094.48,-1580.31"/>
<text text-anchor="start" x="6111.7" y="-1591.8" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.cancellation -->
<g id="node19" class="node">
<title>public.cancellation</title>
<polygon fill="#efefef" stroke="none" points="6524.71,-1751.2 6524.71,-1786.8 6799.64,-1786.8 6799.64,-1751.2 6524.71,-1751.2"/>
<polygon fill="none" stroke="black" points="6524.71,-1751.2 6524.71,-1786.8 6799.64,-1786.8 6799.64,-1751.2 6524.71,-1751.2"/>
<text text-anchor="start" x="6531.71" y="-1764.6" font-family="Arial Bold" font-size="18.00">public.cancellation</text>
<text text-anchor="start" x="6668.15" y="-1764.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6699.27" y="-1764.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6524.71,-1720.4 6524.71,-1751.2 6799.64,-1751.2 6799.64,-1720.4 6524.71,-1720.4"/>
<text text-anchor="start" x="6531.71" y="-1732.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6546.49" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6524.71,-1689.6 6524.71,-1720.4 6799.64,-1720.4 6799.64,-1689.6 6524.71,-1689.6"/>
<text text-anchor="start" x="6531.71" y="-1701.8" font-family="Arial" font-size="14.00">initiated_by_id </text>
<text text-anchor="start" x="6625.11" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6524.71,-1658.8 6524.71,-1689.6 6799.64,-1689.6 6799.64,-1658.8 6524.71,-1658.8"/>
<text text-anchor="start" x="6531.71" y="-1671" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6601.76" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6524.71,-1628 6524.71,-1658.8 6799.64,-1658.8 6799.64,-1628 6524.71,-1628"/>
<text text-anchor="start" x="6531.71" y="-1640.2" font-family="Arial" font-size="14.00">refund_strategy </text>
<text text-anchor="start" x="6632.88" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6524.71,-1597.2 6524.71,-1628 6799.64,-1628 6799.64,-1597.2 6524.71,-1597.2"/>
<text text-anchor="start" x="6531.71" y="-1609.4" font-family="Arial" font-size="14.00">reason </text>
<text text-anchor="start" x="6578.41" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6524.71,-1566.4 6524.71,-1597.2 6799.64,-1597.2 6799.64,-1566.4 6524.71,-1566.4"/>
<text text-anchor="start" x="6531.71" y="-1578.6" font-family="Arial" font-size="14.00">initiator_role </text>
<text text-anchor="start" x="6611.86" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6524.71,-1535.6 6524.71,-1566.4 6799.64,-1566.4 6799.64,-1535.6 6524.71,-1535.6"/>
<text text-anchor="start" x="6531.71" y="-1547.8" font-family="Arial" font-size="14.00">game_id </text>
<text text-anchor="start" x="6589.3" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6524.71,-1504.8 6524.71,-1535.6 6799.64,-1535.6 6799.64,-1504.8 6524.71,-1504.8"/>
<text text-anchor="start" x="6531.71" y="-1517" font-family="Arial" font-size="14.00">payout_method </text>
<text text-anchor="start" x="6632.12" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.cancellation&#45;&gt;public.user -->
<g id="edge24" class="edge">
<title>public.cancellation:initiated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6513.39,-1703.84C6403.44,-1677.43 6564.31,-1210.08 6473.17,-1122.8 6349.87,-1004.72 3573.77,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="6513.44,-1703.84 6522.87,-1709.43 6518.74,-1704.44 6523.04,-1704.92 6523.04,-1704.92 6523.04,-1704.92 6518.74,-1704.44 6523.88,-1700.49 6513.44,-1703.84"/>
<text text-anchor="start" x="6530.71" y="-1715" font-family="Arial" font-size="10.00">FOREIGN KEY (initiated_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher_reservation -->
<g id="node20" class="node">
<title>public.voucher_reservation</title>
<polygon fill="#efefef" stroke="none" points="6903.72,-1751.2 6903.72,-1786.8 7238.63,-1786.8 7238.63,-1751.2 6903.72,-1751.2"/>
<polygon fill="none" stroke="black" points="6903.72,-1751.2 6903.72,-1786.8 7238.63,-1786.8 7238.63,-1751.2 6903.72,-1751.2"/>
<text text-anchor="start" x="6910.72" y="-1764.6" font-family="Arial Bold" font-size="18.00">public.voucher_reservation</text>
<text text-anchor="start" x="7107.14" y="-1764.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7138.26" y="-1764.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6903.72,-1720.4 6903.72,-1751.2 7238.63,-1751.2 7238.63,-1720.4 6903.72,-1720.4"/>
<text text-anchor="start" x="6910.72" y="-1732.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6925.5" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6903.72,-1689.6 6903.72,-1720.4 7238.63,-1720.4 7238.63,-1689.6 6903.72,-1689.6"/>
<text text-anchor="start" x="6910.72" y="-1701.8" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="6971.42" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6903.72,-1658.8 6903.72,-1689.6 7238.63,-1689.6 7238.63,-1658.8 6903.72,-1658.8"/>
<text text-anchor="start" x="6910.72" y="-1671" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="7071.04" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6903.72,-1628 6903.72,-1658.8 7238.63,-1658.8 7238.63,-1628 6903.72,-1628"/>
<text text-anchor="start" x="6910.72" y="-1640.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6980.76" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6903.72,-1597.2 6903.72,-1628 7238.63,-1628 7238.63,-1597.2 6903.72,-1597.2"/>
<text text-anchor="start" x="6910.72" y="-1609.4" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="6983.1" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6903.72,-1566.4 6903.72,-1597.2 7238.63,-1597.2 7238.63,-1566.4 6903.72,-1566.4"/>
<text text-anchor="start" x="6910.72" y="-1578.6" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="6958.97" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="6903.72,-1535.6 6903.72,-1566.4 7238.63,-1566.4 7238.63,-1535.6 6903.72,-1535.6"/>
<text text-anchor="start" x="6910.72" y="-1547.8" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="7015.78" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="6903.72,-1504.8 6903.72,-1535.6 7238.63,-1535.6 7238.63,-1504.8 6903.72,-1504.8"/>
<text text-anchor="start" x="6910.72" y="-1517" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="7022.77" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.voucher_reservation&#45;&gt;public.user -->
<g id="edge25" class="edge">
<title>public.voucher_reservation:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6892.4,-1703.84C6782.45,-1677.42 6943.52,-1209.86 6852.17,-1122.8 6713.36,-990.5 3594.81,-989.6 3403.05,-989.6"/>
<polygon fill="black" stroke="black" points="6892.45,-1703.84 6901.88,-1709.43 6897.75,-1704.44 6902.05,-1704.92 6902.05,-1704.92 6902.05,-1704.92 6897.75,-1704.44 6902.89,-1700.49 6892.45,-1703.84"/>
<text text-anchor="start" x="6909.72" y="-1715" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
</g>
</svg>
