<?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: api_platform_pre_production Pages: 1 -->
<svg width="10358pt" height="6568pt"
 viewBox="0.00 0.00 10357.88 6568.40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 6564.4)">
<title>api_platform_pre_production</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-6564.4 10353.88,-6564.4 10353.88,4 -4,4"/>
<!-- public.cart -->
<g id="node1" class="node">
<title>public.cart</title>
<polygon fill="#efefef" stroke="none" points="7790.14,-5615.2 7790.14,-5650.8 8005.1,-5650.8 8005.1,-5615.2 7790.14,-5615.2"/>
<polygon fill="none" stroke="black" points="7790.14,-5615.2 7790.14,-5650.8 8005.1,-5650.8 8005.1,-5615.2 7790.14,-5615.2"/>
<text text-anchor="start" x="7797.14" y="-5628.6" font-family="Arial Bold" font-size="18.00">public.cart</text>
<text text-anchor="start" x="7873.61" y="-5628.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7904.73" y="-5628.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7790.14,-5584.4 7790.14,-5615.2 8005.1,-5615.2 8005.1,-5584.4 7790.14,-5584.4"/>
<text text-anchor="start" x="7797.14" y="-5596.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7811.93" y="-5596.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7790.14,-5553.6 7790.14,-5584.4 8005.1,-5584.4 8005.1,-5553.6 7790.14,-5553.6"/>
<text text-anchor="start" x="7797.14" y="-5565.8" font-family="Arial" font-size="14.00">event_registration_id </text>
<text text-anchor="start" x="7931" y="-5565.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7790.14,-5522.8 7790.14,-5553.6 8005.1,-5553.6 8005.1,-5522.8 7790.14,-5522.8"/>
<text text-anchor="start" x="7797.14" y="-5535" font-family="Arial" font-size="14.00">match_player_id </text>
<text text-anchor="start" x="7903.76" y="-5535" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.match_player -->
<g id="node23" class="node">
<title>public.match_player</title>
<polygon fill="#efefef" stroke="none" points="7189.84,-5164.6 7189.84,-5200.2 7517.4,-5200.2 7517.4,-5164.6 7189.84,-5164.6"/>
<polygon fill="none" stroke="black" points="7189.84,-5164.6 7189.84,-5200.2 7517.4,-5200.2 7517.4,-5164.6 7189.84,-5164.6"/>
<text text-anchor="start" x="7217.65" y="-5178" font-family="Arial Bold" font-size="18.00">public.match_player</text>
<text text-anchor="start" x="7365.1" y="-5178" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7396.22" y="-5178" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7189.84,-5133.8 7189.84,-5164.6 7517.4,-5164.6 7517.4,-5133.8 7189.84,-5133.8"/>
<text text-anchor="start" x="7196.84" y="-5146" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7211.62" y="-5146" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7189.84,-5103 7189.84,-5133.8 7517.4,-5133.8 7517.4,-5103 7189.84,-5103"/>
<text text-anchor="start" x="7196.84" y="-5115.2" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="7246.64" y="-5115.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7189.84,-5072.2 7189.84,-5103 7517.4,-5103 7517.4,-5072.2 7189.84,-5072.2"/>
<text text-anchor="start" x="7196.84" y="-5084.4" font-family="Arial" font-size="14.00">game_id </text>
<text text-anchor="start" x="7254.43" y="-5084.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7189.84,-5041.4 7189.84,-5072.2 7517.4,-5072.2 7517.4,-5041.4 7189.84,-5041.4"/>
<text text-anchor="start" x="7196.84" y="-5053.6" font-family="Arial" font-size="14.00">slot </text>
<text text-anchor="start" x="7222.51" y="-5053.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="7189.84,-5010.6 7189.84,-5041.4 7517.4,-5041.4 7517.4,-5010.6 7189.84,-5010.6"/>
<text text-anchor="start" x="7196.84" y="-5022.8" font-family="Arial" font-size="14.00">is_host </text>
<text text-anchor="start" x="7245.09" y="-5022.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="7189.84,-4979.8 7189.84,-5010.6 7517.4,-5010.6 7517.4,-4979.8 7189.84,-4979.8"/>
<text text-anchor="start" x="7196.84" y="-4992" font-family="Arial" font-size="14.00">terms_of_service_id </text>
<text text-anchor="start" x="7326" y="-4992" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7189.84,-4949 7189.84,-4979.8 7517.4,-4979.8 7517.4,-4949 7189.84,-4949"/>
<text text-anchor="start" x="7196.84" y="-4961.2" font-family="Arial" font-size="14.00">joined_match_at </text>
<text text-anchor="start" x="7303.46" y="-4961.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7189.84,-4918.2 7189.84,-4949 7517.4,-4949 7517.4,-4918.2 7189.84,-4918.2"/>
<text text-anchor="start" x="7196.84" y="-4930.4" font-family="Arial" font-size="14.00">confirmed_match_at </text>
<text text-anchor="start" x="7327.57" y="-4930.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7189.84,-4887.4 7189.84,-4918.2 7517.4,-4918.2 7517.4,-4887.4 7189.84,-4887.4"/>
<text text-anchor="start" x="7196.84" y="-4899.6" font-family="Arial" font-size="14.00">left_match_at </text>
<text text-anchor="start" x="7284.78" y="-4899.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7189.84,-4856.6 7189.84,-4887.4 7517.4,-4887.4 7517.4,-4856.6 7189.84,-4856.6"/>
<text text-anchor="start" x="7196.84" y="-4868.8" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="7238.08" y="-4868.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7189.84,-4825.8 7189.84,-4856.6 7517.4,-4856.6 7517.4,-4825.8 7189.84,-4825.8"/>
<text text-anchor="start" x="7196.84" y="-4838" font-family="Arial" font-size="14.00">discount_id </text>
<text text-anchor="start" x="7271.55" y="-4838" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7189.84,-4795 7189.84,-4825.8 7517.4,-4825.8 7517.4,-4795 7189.84,-4795"/>
<text text-anchor="start" x="7196.84" y="-4807.2" font-family="Arial" font-size="14.00">expected_payment_of_slots </text>
<text text-anchor="start" x="7375.06" y="-4807.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
</g>
<!-- public.cart&#45;&gt;public.match_player -->
<g id="edge1" class="edge">
<title>public.cart:match_player_id&#45;&gt;public.match_player:id</title>
<path fill="none" stroke="black" d="M7778.77,-5537.98C7632.12,-5531.7 7650.51,-5390.28 7569.62,-5258.8 7541.45,-5213.01 7572.17,-5149.2 7518.4,-5149.2"/>
<polygon fill="black" stroke="black" points="7778.81,-5537.98 7788.71,-5542.69 7784.14,-5538.1 7788.47,-5538.19 7788.47,-5538.19 7788.47,-5538.19 7784.14,-5538.1 7788.9,-5533.69 7778.81,-5537.98"/>
<text text-anchor="start" x="7482.61" y="-5548.2" font-family="Arial" font-size="10.00">FOREIGN KEY (match_player_id) REFERENCES match_player(id)</text>
</g>
<!-- public.event_registration -->
<g id="node44" class="node">
<title>public.event_registration</title>
<polygon fill="#efefef" stroke="none" points="8019.65,-3416.4 8019.65,-3452 8337.59,-3452 8337.59,-3416.4 8019.65,-3416.4"/>
<polygon fill="none" stroke="black" points="8019.65,-3416.4 8019.65,-3452 8337.59,-3452 8337.59,-3416.4 8019.65,-3416.4"/>
<text text-anchor="start" x="8026.65" y="-3429.8" font-family="Arial Bold" font-size="18.00">public.event_registration</text>
<text text-anchor="start" x="8206.1" y="-3429.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8237.22" y="-3429.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8019.65,-3385.6 8019.65,-3416.4 8337.59,-3416.4 8337.59,-3385.6 8019.65,-3385.6"/>
<text text-anchor="start" x="8026.65" y="-3397.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8041.44" y="-3397.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8019.65,-3354.8 8019.65,-3385.6 8337.59,-3385.6 8337.59,-3354.8 8019.65,-3354.8"/>
<text text-anchor="start" x="8026.65" y="-3367" font-family="Arial" font-size="14.00">event_id </text>
<text text-anchor="start" x="8083.47" y="-3367" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8019.65,-3324 8019.65,-3354.8 8337.59,-3354.8 8337.59,-3324 8019.65,-3324"/>
<text text-anchor="start" x="8026.65" y="-3336.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="8096.7" y="-3336.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8019.65,-3293.2 8019.65,-3324 8337.59,-3324 8337.59,-3293.2 8019.65,-3293.2"/>
<text text-anchor="start" x="8026.65" y="-3305.4" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="8067.89" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8019.65,-3262.4 8019.65,-3293.2 8337.59,-3293.2 8337.59,-3262.4 8019.65,-3262.4"/>
<text text-anchor="start" x="8026.65" y="-3274.6" font-family="Arial" font-size="14.00">team_id </text>
<text text-anchor="start" x="8080.35" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8019.65,-3231.6 8019.65,-3262.4 8337.59,-3262.4 8337.59,-3231.6 8019.65,-3231.6"/>
<text text-anchor="start" x="8026.65" y="-3243.8" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="8118.49" y="-3243.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8019.65,-3200.8 8019.65,-3231.6 8337.59,-3231.6 8337.59,-3200.8 8019.65,-3200.8"/>
<text text-anchor="start" x="8026.65" y="-3213" font-family="Arial" font-size="14.00">cancelled_by_id </text>
<text text-anchor="start" x="8130.95" y="-3213" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8019.65,-3170 8019.65,-3200.8 8337.59,-3200.8 8337.59,-3170 8019.65,-3170"/>
<text text-anchor="start" x="8026.65" y="-3182.2" font-family="Arial" font-size="14.00">cancelled_at </text>
<text text-anchor="start" x="8109.16" y="-3182.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.cart&#45;&gt;public.event_registration -->
<g id="edge2" class="edge">
<title>public.cart:event_registration_id&#45;&gt;public.event_registration:id</title>
<path fill="none" stroke="black" d="M8006.52,-5558.72C8009.6,-5408.27 8011.57,-3657.58 8011.62,-3654.4 8012.48,-3598.07 7962.32,-3401 8018.65,-3401"/>
<polygon fill="black" stroke="black" points="8006.52,-5558.67 8001.61,-5568.48 8006.3,-5564 8006.12,-5568.33 8006.12,-5568.33 8006.12,-5568.33 8006.3,-5564 8010.61,-5568.85 8006.52,-5558.67"/>
<text text-anchor="start" x="7660.64" y="-5579" font-family="Arial" font-size="10.00">FOREIGN KEY (event_registration_id) REFERENCES event_registration(id)</text>
</g>
<!-- public.cart_item -->
<g id="node2" class="node">
<title>public.cart_item</title>
<polygon fill="#efefef" stroke="none" points="7769.65,-6343 7769.65,-6378.6 8025.59,-6378.6 8025.59,-6343 7769.65,-6343"/>
<polygon fill="none" stroke="black" points="7769.65,-6343 7769.65,-6378.6 8025.59,-6378.6 8025.59,-6343 7769.65,-6343"/>
<text text-anchor="start" x="7776.65" y="-6356.4" font-family="Arial Bold" font-size="18.00">public.cart_item</text>
<text text-anchor="start" x="7894.1" y="-6356.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7925.22" y="-6356.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7769.65,-6312.2 7769.65,-6343 8025.59,-6343 8025.59,-6312.2 7769.65,-6312.2"/>
<text text-anchor="start" x="7776.65" y="-6324.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7791.43" y="-6324.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7769.65,-6281.4 7769.65,-6312.2 8025.59,-6312.2 8025.59,-6281.4 7769.65,-6281.4"/>
<text text-anchor="start" x="7776.65" y="-6293.6" font-family="Arial" font-size="14.00">cart_id </text>
<text text-anchor="start" x="7822.56" y="-6293.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7769.65,-6250.6 7769.65,-6281.4 8025.59,-6281.4 8025.59,-6250.6 7769.65,-6250.6"/>
<text text-anchor="start" x="7776.65" y="-6262.8" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="7807" y="-6262.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7769.65,-6219.8 7769.65,-6250.6 8025.59,-6250.6 8025.59,-6219.8 7769.65,-6219.8"/>
<text text-anchor="start" x="7776.65" y="-6232" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="7881.72" y="-6232" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="7769.65,-6189 7769.65,-6219.8 8025.59,-6219.8 8025.59,-6189 7769.65,-6189"/>
<text text-anchor="start" x="7776.65" y="-6201.2" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="7888.7" y="-6201.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="7769.65,-6158.2 7769.65,-6189 8025.59,-6189 8025.59,-6158.2 7769.65,-6158.2"/>
<text text-anchor="start" x="7776.65" y="-6170.4" font-family="Arial" font-size="14.00">quantity </text>
<text text-anchor="start" x="7829.57" y="-6170.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="7769.65,-6127.4 7769.65,-6158.2 8025.59,-6158.2 8025.59,-6127.4 7769.65,-6127.4"/>
<text text-anchor="start" x="7776.65" y="-6139.6" font-family="Arial" font-size="14.00">discount_percentage </text>
<text text-anchor="start" x="7910.52" y="-6139.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="7769.65,-6096.6 7769.65,-6127.4 8025.59,-6127.4 8025.59,-6096.6 7769.65,-6096.6"/>
<text text-anchor="start" x="7776.65" y="-6108.8" font-family="Arial" font-size="14.00">quantity_discountable </text>
<text text-anchor="start" x="7915.97" y="-6108.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
</g>
<!-- public.cart_item&#45;&gt;public.cart -->
<g id="edge3" class="edge">
<title>public.cart_item:cart_id&#45;&gt;public.cart:id</title>
<path fill="none" stroke="black" d="M8033.17,-6288.97C8062.7,-6212.4 8042.41,-5599.8 8006.1,-5599.8"/>
<polygon fill="black" stroke="black" points="8033.24,-6288.89 8023.36,-6293.65 8029.81,-6292.97 8027.02,-6296.29 8027.02,-6296.29 8027.02,-6296.29 8029.81,-6292.97 8030.25,-6299.44 8033.24,-6288.89"/>
<text text-anchor="start" x="8033.59" y="-6306.8" font-family="Arial" font-size="10.00">FOREIGN KEY (cart_id) REFERENCES cart(id)</text>
</g>
<!-- public.club -->
<g id="node3" class="node">
<title>public.club</title>
<polygon fill="#efefef" stroke="none" points="2505.32,-1991.6 2505.32,-2027.2 2811.92,-2027.2 2811.92,-1991.6 2505.32,-1991.6"/>
<polygon fill="none" stroke="black" points="2505.32,-1991.6 2505.32,-2027.2 2811.92,-2027.2 2811.92,-1991.6 2505.32,-1991.6"/>
<text text-anchor="start" x="2556.13" y="-2005" font-family="Arial Bold" font-size="18.00">public.club</text>
<text text-anchor="start" x="2636.62" y="-2005" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2667.73" y="-2005" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2505.32,-1960.8 2505.32,-1991.6 2811.92,-1991.6 2811.92,-1960.8 2505.32,-1960.8"/>
<text text-anchor="start" x="2512.32" y="-1973" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="2527.11" y="-1973" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2505.32,-1930 2505.32,-1960.8 2811.92,-1960.8 2811.92,-1930 2505.32,-1930"/>
<text text-anchor="start" x="2512.32" y="-1942.2" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="2595.6" y="-1942.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1899.2 2505.32,-1930 2811.92,-1930 2811.92,-1899.2 2505.32,-1899.2"/>
<text text-anchor="start" x="2512.32" y="-1911.4" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="2551.23" y="-1911.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1868.4 2505.32,-1899.2 2811.92,-1899.2 2811.92,-1868.4 2505.32,-1868.4"/>
<text text-anchor="start" x="2512.32" y="-1880.6" font-family="Arial" font-size="14.00">address_street_name </text>
<text text-anchor="start" x="2651.62" y="-1880.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1837.6 2505.32,-1868.4 2811.92,-1868.4 2811.92,-1837.6 2505.32,-1837.6"/>
<text text-anchor="start" x="2512.32" y="-1849.8" font-family="Arial" font-size="14.00">address_building_number </text>
<text text-anchor="start" x="2677.32" y="-1849.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1806.8 2505.32,-1837.6 2811.92,-1837.6 2811.92,-1806.8 2505.32,-1806.8"/>
<text text-anchor="start" x="2512.32" y="-1819" font-family="Arial" font-size="14.00">address_postal_code </text>
<text text-anchor="start" x="2649.31" y="-1819" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1776 2505.32,-1806.8 2811.92,-1806.8 2811.92,-1776 2505.32,-1776"/>
<text text-anchor="start" x="2512.32" y="-1788.2" font-family="Arial" font-size="14.00">address_locality_name </text>
<text text-anchor="start" x="2659.4" y="-1788.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1745.2 2505.32,-1776 2811.92,-1776 2811.92,-1745.2 2505.32,-1745.2"/>
<text text-anchor="start" x="2512.32" y="-1757.4" font-family="Arial" font-size="14.00">location_latitude </text>
<text text-anchor="start" x="2617.4" y="-1757.4" font-family="Arial" font-size="14.00" fill="#666666">[numeric(9,7)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1714.4 2505.32,-1745.2 2811.92,-1745.2 2811.92,-1714.4 2505.32,-1714.4"/>
<text text-anchor="start" x="2512.32" y="-1726.6" font-family="Arial" font-size="14.00">location_longitude </text>
<text text-anchor="start" x="2629.08" y="-1726.6" font-family="Arial" font-size="14.00" fill="#666666">[numeric(9,7)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1683.6 2505.32,-1714.4 2811.92,-1714.4 2811.92,-1683.6 2505.32,-1683.6"/>
<text text-anchor="start" x="2512.32" y="-1695.8" font-family="Arial" font-size="14.00">contact_name </text>
<text text-anchor="start" x="2604.15" y="-1695.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1652.8 2505.32,-1683.6 2811.92,-1683.6 2811.92,-1652.8 2505.32,-1652.8"/>
<text text-anchor="start" x="2512.32" y="-1665" font-family="Arial" font-size="14.00">contact_website </text>
<text text-anchor="start" x="2616.6" y="-1665" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1622 2505.32,-1652.8 2811.92,-1652.8 2811.92,-1622 2505.32,-1622"/>
<text text-anchor="start" x="2512.32" y="-1634.2" font-family="Arial" font-size="14.00">contact_phone_number </text>
<text text-anchor="start" x="2663.32" y="-1634.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1591.2 2505.32,-1622 2811.92,-1622 2811.92,-1591.2 2505.32,-1591.2"/>
<text text-anchor="start" x="2512.32" y="-1603.4" font-family="Arial" font-size="14.00">contact_email_address </text>
<text text-anchor="start" x="2660.18" y="-1603.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1560.4 2505.32,-1591.2 2811.92,-1591.2 2811.92,-1560.4 2505.32,-1560.4"/>
<text text-anchor="start" x="2512.32" y="-1572.6" font-family="Arial" font-size="14.00">contact_profile_image_url </text>
<text text-anchor="start" x="2676.53" y="-1572.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1529.6 2505.32,-1560.4 2811.92,-1560.4 2811.92,-1529.6 2505.32,-1529.6"/>
<text text-anchor="start" x="2512.32" y="-1541.8" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="2570.68" y="-1541.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="2505.32,-1498.8 2505.32,-1529.6 2811.92,-1529.6 2811.92,-1498.8 2505.32,-1498.8"/>
<text text-anchor="start" x="2512.32" y="-1511" font-family="Arial" font-size="14.00">main_image_id </text>
<text text-anchor="start" x="2611.15" y="-1511" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2505.32,-1468 2505.32,-1498.8 2811.92,-1498.8 2811.92,-1468 2505.32,-1468"/>
<text text-anchor="start" x="2512.32" y="-1480.2" font-family="Arial" font-size="14.00">opening_times_as_json </text>
<text text-anchor="start" x="2663.31" y="-1480.2" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="2505.32,-1437.2 2505.32,-1468 2811.92,-1468 2811.92,-1437.2 2505.32,-1437.2"/>
<text text-anchor="start" x="2512.32" y="-1449.4" font-family="Arial" font-size="14.00">operator_name </text>
<text text-anchor="start" x="2611.16" y="-1449.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1406.4 2505.32,-1437.2 2811.92,-1437.2 2811.92,-1406.4 2505.32,-1406.4"/>
<text text-anchor="start" x="2512.32" y="-1418.6" font-family="Arial" font-size="14.00">court_pricing_as_json </text>
<text text-anchor="start" x="2652.4" y="-1418.6" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="2505.32,-1375.6 2505.32,-1406.4 2811.92,-1406.4 2811.92,-1375.6 2505.32,-1375.6"/>
<text text-anchor="start" x="2512.32" y="-1387.8" font-family="Arial" font-size="14.00">timezone </text>
<text text-anchor="start" x="2573.02" y="-1387.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1344.8 2505.32,-1375.6 2811.92,-1375.6 2811.92,-1344.8 2505.32,-1344.8"/>
<text text-anchor="start" x="2512.32" y="-1357" font-family="Arial" font-size="14.00">default_price_per_hour_amount </text>
<text text-anchor="start" x="2714.69" y="-1357" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="2505.32,-1314 2505.32,-1344.8 2811.92,-1344.8 2811.92,-1314 2505.32,-1314"/>
<text text-anchor="start" x="2512.32" y="-1326.2" font-family="Arial" font-size="14.00">default_price_per_hour_currency </text>
<text text-anchor="start" x="2721.67" y="-1326.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1283.2 2505.32,-1314 2811.92,-1314 2811.92,-1283.2 2505.32,-1283.2"/>
<text text-anchor="start" x="2512.32" y="-1295.4" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="2583.91" y="-1295.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="2505.32,-1252.4 2505.32,-1283.2 2811.92,-1283.2 2811.92,-1252.4 2505.32,-1252.4"/>
<text text-anchor="start" x="2512.32" y="-1264.6" font-family="Arial" font-size="14.00">subdivision_code </text>
<text text-anchor="start" x="2623.62" y="-1264.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1221.6 2505.32,-1252.4 2811.92,-1252.4 2811.92,-1221.6 2505.32,-1221.6"/>
<text text-anchor="start" x="2512.32" y="-1233.8" font-family="Arial" font-size="14.00">wellpass_api_key </text>
<text text-anchor="start" x="2625.94" y="-1233.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2505.32,-1190.8 2505.32,-1221.6 2811.92,-1221.6 2811.92,-1190.8 2505.32,-1190.8"/>
<text text-anchor="start" x="2512.32" y="-1203" font-family="Arial" font-size="14.00">is_wellpass_enabled </text>
<text text-anchor="start" x="2645.41" y="-1203" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="2505.32,-1160 2505.32,-1190.8 2811.92,-1190.8 2811.92,-1160 2505.32,-1160"/>
<text text-anchor="start" x="2512.32" y="-1172.2" font-family="Arial" font-size="14.00">is_shown_in_app </text>
<text text-anchor="start" x="2624.4" y="-1172.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.image -->
<g id="node20" class="node">
<title>public.image</title>
<polygon fill="#efefef" stroke="none" points="2766.64,-771 2766.64,-806.6 2998.6,-806.6 2998.6,-771 2766.64,-771"/>
<polygon fill="none" stroke="black" points="2766.64,-771 2766.64,-806.6 2998.6,-806.6 2998.6,-771 2766.64,-771"/>
<text text-anchor="start" x="2773.64" y="-784.4" font-family="Arial Bold" font-size="18.00">public.image</text>
<text text-anchor="start" x="2867.11" y="-784.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2898.23" y="-784.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2766.64,-740.2 2766.64,-771 2998.6,-771 2998.6,-740.2 2766.64,-740.2"/>
<text text-anchor="start" x="2773.64" y="-752.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="2788.43" y="-752.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2766.64,-709.4 2766.64,-740.2 2998.6,-740.2 2998.6,-709.4 2766.64,-709.4"/>
<text text-anchor="start" x="2773.64" y="-721.6" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="2803.99" y="-721.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2766.64,-678.6 2766.64,-709.4 2998.6,-709.4 2998.6,-678.6 2766.64,-678.6"/>
<text text-anchor="start" x="2773.64" y="-690.8" font-family="Arial" font-size="14.00">path </text>
<text text-anchor="start" x="2804.78" y="-690.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2766.64,-647.8 2766.64,-678.6 2998.6,-678.6 2998.6,-647.8 2766.64,-647.8"/>
<text text-anchor="start" x="2773.64" y="-660" font-family="Arial" font-size="14.00">url </text>
<text text-anchor="start" x="2793.09" y="-660" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2766.64,-617 2766.64,-647.8 2998.6,-647.8 2998.6,-617 2766.64,-617"/>
<text text-anchor="start" x="2773.64" y="-629.2" font-family="Arial" font-size="14.00">sort_index </text>
<text text-anchor="start" x="2842.12" y="-629.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
</g>
<!-- public.club&#45;&gt;public.image -->
<g id="edge4" class="edge">
<title>public.club:main_image_id&#45;&gt;public.image:id</title>
<path fill="none" stroke="black" d="M2822.94,-1512.68C2894.65,-1489.19 2819.13,-1201.18 2811.92,-1116.8 2801.67,-996.88 2777.37,-969.68 2766.64,-849.8 2762.91,-808.1 2723.77,-755.6 2765.64,-755.6"/>
<polygon fill="black" stroke="black" points="2823.14,-1512.65 2812.57,-1509.7 2817.86,-1513.45 2813.58,-1514.1 2813.58,-1514.1 2813.58,-1514.1 2817.86,-1513.45 2813.93,-1518.6 2823.14,-1512.65"/>
<text text-anchor="start" x="2819.92" y="-1524.2" font-family="Arial" font-size="10.00">FOREIGN KEY (main_image_id) REFERENCES image(id)</text>
</g>
<!-- public.club_facility -->
<g id="node4" class="node">
<title>public.club_facility</title>
<polygon fill="#efefef" stroke="none" points="220.15,-2550 220.15,-2585.6 499.09,-2585.6 499.09,-2550 220.15,-2550"/>
<polygon fill="none" stroke="black" points="220.15,-2550 220.15,-2585.6 499.09,-2585.6 499.09,-2550 220.15,-2550"/>
<text text-anchor="start" x="227.15" y="-2563.4" font-family="Arial Bold" font-size="18.00">public.club_facility</text>
<text text-anchor="start" x="367.6" y="-2563.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="398.72" y="-2563.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="220.15,-2519.2 220.15,-2550 499.09,-2550 499.09,-2519.2 220.15,-2519.2"/>
<text text-anchor="start" x="227.15" y="-2531.4" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="275.4" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="220.15,-2488.4 220.15,-2519.2 499.09,-2519.2 499.09,-2488.4 220.15,-2488.4"/>
<text text-anchor="start" x="227.15" y="-2500.6" font-family="Arial" font-size="14.00">facility_id </text>
<text text-anchor="start" x="288.62" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.club_facility&#45;&gt;public.club -->
<g id="edge5" class="edge">
<title>public.club_facility:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M510.39,-2532.98C587.32,-2506.75 484.79,-2169.77 551.62,-2106.4 571.34,-2087.7 2477.14,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="510.3,-2532.99 499.73,-2530.1 505.03,-2533.82 500.75,-2534.5 500.75,-2534.5 500.75,-2534.5 505.03,-2533.82 501.12,-2538.99 510.3,-2532.99"/>
<text text-anchor="start" x="166.35" y="-2544.6" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.facility -->
<g id="node17" class="node">
<title>public.facility</title>
<polygon fill="#efefef" stroke="none" points="240.14,-1652.8 240.14,-1688.4 479.1,-1688.4 479.1,-1652.8 240.14,-1652.8"/>
<polygon fill="none" stroke="black" points="240.14,-1652.8 240.14,-1688.4 479.1,-1688.4 479.1,-1652.8 240.14,-1652.8"/>
<text text-anchor="start" x="247.14" y="-1666.2" font-family="Arial Bold" font-size="18.00">public.facility</text>
<text text-anchor="start" x="347.61" y="-1666.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="378.73" y="-1666.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="240.14,-1622 240.14,-1652.8 479.1,-1652.8 479.1,-1622 240.14,-1622"/>
<text text-anchor="start" x="247.14" y="-1634.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="261.93" y="-1634.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="240.14,-1591.2 240.14,-1622 479.1,-1622 479.1,-1591.2 240.14,-1591.2"/>
<text text-anchor="start" x="247.14" y="-1603.4" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="330.42" y="-1603.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="240.14,-1560.4 240.14,-1591.2 479.1,-1591.2 479.1,-1560.4 240.14,-1560.4"/>
<text text-anchor="start" x="247.14" y="-1572.6" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="277.49" y="-1572.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="240.14,-1529.6 240.14,-1560.4 479.1,-1560.4 479.1,-1529.6 240.14,-1529.6"/>
<text text-anchor="start" x="247.14" y="-1541.8" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="286.05" y="-1541.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="240.14,-1498.8 240.14,-1529.6 479.1,-1529.6 479.1,-1498.8 240.14,-1498.8"/>
<text text-anchor="start" x="247.14" y="-1511" font-family="Arial" font-size="14.00">icon_url </text>
<text text-anchor="start" x="300.06" y="-1511" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.club_facility&#45;&gt;public.facility -->
<g id="edge6" class="edge">
<title>public.club_facility:facility_id&#45;&gt;public.facility:id</title>
<path fill="none" stroke="black" d="M359.89,-2477.21C370.11,-2274.28 667.62,-1637.4 480.1,-1637.4"/>
<polygon fill="black" stroke="black" points="359.89,-2477.07 355.13,-2486.95 359.75,-2482.4 359.64,-2486.73 359.64,-2486.73 359.64,-2486.73 359.75,-2482.4 364.13,-2487.18 359.89,-2477.07"/>
<text text-anchor="start" x="7" y="-2497.4" font-family="Arial" font-size="10.00">FOREIGN KEY (facility_id) REFERENCES facility(id) ON DELETE CASCADE</text>
</g>
<!-- public.club_image -->
<g id="node5" class="node">
<title>public.club_image</title>
<polygon fill="#efefef" stroke="none" points="2738.64,-2550 2738.64,-2585.6 3010.6,-2585.6 3010.6,-2550 2738.64,-2550"/>
<polygon fill="none" stroke="black" points="2738.64,-2550 2738.64,-2585.6 3010.6,-2585.6 3010.6,-2550 2738.64,-2550"/>
<text text-anchor="start" x="2745.64" y="-2563.4" font-family="Arial Bold" font-size="18.00">public.club_image</text>
<text text-anchor="start" x="2879.11" y="-2563.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2910.22" y="-2563.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2738.64,-2519.2 2738.64,-2550 3010.6,-2550 3010.6,-2519.2 2738.64,-2519.2"/>
<text text-anchor="start" x="2745.64" y="-2531.4" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="2793.9" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2738.64,-2488.4 2738.64,-2519.2 3010.6,-2519.2 3010.6,-2488.4 2738.64,-2488.4"/>
<text text-anchor="start" x="2745.64" y="-2500.6" font-family="Arial" font-size="14.00">image_id </text>
<text text-anchor="start" x="2806.35" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.club_image&#45;&gt;public.club -->
<g id="edge7" class="edge">
<title>public.club_image:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M2727.49,-2533.1C2631.74,-2501.3 2934.34,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="2727.42,-2533.09 2736.65,-2539 2732.7,-2533.87 2736.98,-2534.5 2736.98,-2534.5 2736.98,-2534.5 2732.7,-2533.87 2737.97,-2530.1 2727.42,-2533.09"/>
<text text-anchor="start" x="2403.9" y="-2544.6" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.club_image&#45;&gt;public.image -->
<g id="edge8" class="edge">
<title>public.club_image:image_id&#45;&gt;public.image:id</title>
<path fill="none" stroke="black" d="M2874.67,-2477.22C2882.47,-1707.29 3767.9,-755.6 2999.6,-755.6"/>
<polygon fill="black" stroke="black" points="2874.67,-2477.07 2870.12,-2487.04 2874.65,-2482.4 2874.62,-2486.73 2874.62,-2486.73 2874.62,-2486.73 2874.65,-2482.4 2879.12,-2487.09 2874.67,-2477.07"/>
<text text-anchor="start" x="2612.73" y="-2471.4" font-family="Arial" font-size="10.00">FOREIGN KEY (image_id) REFERENCES image(id) ON DELETE CASCADE</text>
</g>
<!-- public.coach -->
<g id="node6" class="node">
<title>public.coach</title>
<polygon fill="#efefef" stroke="none" points="3983.65,-1745.2 3983.65,-1780.8 4213.59,-1780.8 4213.59,-1745.2 3983.65,-1745.2"/>
<polygon fill="none" stroke="black" points="3983.65,-1745.2 3983.65,-1780.8 4213.59,-1780.8 4213.59,-1745.2 3983.65,-1745.2"/>
<text text-anchor="start" x="3990.65" y="-1758.6" font-family="Arial Bold" font-size="18.00">public.coach</text>
<text text-anchor="start" x="4082.1" y="-1758.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4113.22" y="-1758.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3983.65,-1714.4 3983.65,-1745.2 4213.59,-1745.2 4213.59,-1714.4 3983.65,-1714.4"/>
<text text-anchor="start" x="3990.65" y="-1726.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4005.43" y="-1726.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3983.65,-1683.6 3983.65,-1714.4 4213.59,-1714.4 4213.59,-1683.6 3983.65,-1683.6"/>
<text text-anchor="start" x="3990.65" y="-1695.8" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="4073.93" y="-1695.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="3983.65,-1652.8 3983.65,-1683.6 4213.59,-1683.6 4213.59,-1652.8 3983.65,-1652.8"/>
<text text-anchor="start" x="3990.65" y="-1665" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="4059.89" y="-1665" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3983.65,-1622 3983.65,-1652.8 4213.59,-1652.8 4213.59,-1622 3983.65,-1622"/>
<text text-anchor="start" x="3990.65" y="-1634.2" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="4059.13" y="-1634.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3983.65,-1591.2 3983.65,-1622 4213.59,-1622 4213.59,-1591.2 3983.65,-1591.2"/>
<text text-anchor="start" x="3990.65" y="-1603.4" font-family="Arial" font-size="14.00">training_prices_as_json </text>
<text text-anchor="start" x="4141.62" y="-1603.4" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="3983.65,-1560.4 3983.65,-1591.2 4213.59,-1591.2 4213.59,-1560.4 3983.65,-1560.4"/>
<text text-anchor="start" x="3990.65" y="-1572.6" font-family="Arial" font-size="14.00">profile_image_id </text>
<text text-anchor="start" x="4097.27" y="-1572.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3983.65,-1529.6 3983.65,-1560.4 4213.59,-1560.4 4213.59,-1529.6 3983.65,-1529.6"/>
<text text-anchor="start" x="3990.65" y="-1541.8" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="4085.58" y="-1541.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3983.65,-1498.8 3983.65,-1529.6 4213.59,-1529.6 4213.59,-1498.8 3983.65,-1498.8"/>
<text text-anchor="start" x="3990.65" y="-1511" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="4016.32" y="-1511" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3983.65,-1468 3983.65,-1498.8 4213.59,-1498.8 4213.59,-1468 3983.65,-1468"/>
<text text-anchor="start" x="3990.65" y="-1480.2" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="4088.72" y="-1480.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3983.65,-1437.2 3983.65,-1468 4213.59,-1468 4213.59,-1437.2 3983.65,-1437.2"/>
<text text-anchor="start" x="3990.65" y="-1449.4" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="4040.45" y="-1449.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3983.65,-1406.4 3983.65,-1437.2 4213.59,-1437.2 4213.59,-1406.4 3983.65,-1406.4"/>
<text text-anchor="start" x="3990.65" y="-1418.6" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="4049" y="-1418.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.coach&#45;&gt;public.image -->
<g id="edge9" class="edge">
<title>public.coach:profile_image_id&#45;&gt;public.image:id</title>
<path fill="none" stroke="black" d="M3972.31,-1575.71C3415.5,-1565.82 3565.14,-755.6 2999.6,-755.6"/>
<polygon fill="black" stroke="black" points="3972.31,-1575.71 3982.27,-1580.3 3977.65,-1575.76 3981.98,-1575.79 3981.98,-1575.79 3981.98,-1575.79 3977.65,-1575.76 3982.35,-1571.3 3972.31,-1575.71"/>
<text text-anchor="start" x="3708.9" y="-1585.8" font-family="Arial" font-size="10.00">FOREIGN KEY (profile_image_id) REFERENCES image(id)</text>
</g>
<!-- public.user -->
<g id="node30" class="node">
<title>public.user</title>
<polygon fill="#efefef" stroke="none" points="7102.75,-1002 7102.75,-1037.6 7496.49,-1037.6 7496.49,-1002 7102.75,-1002"/>
<polygon fill="none" stroke="black" points="7102.75,-1002 7102.75,-1037.6 7496.49,-1037.6 7496.49,-1002 7102.75,-1002"/>
<text text-anchor="start" x="7197.64" y="-1015.4" font-family="Arial Bold" font-size="18.00">public.user</text>
<text text-anchor="start" x="7277.12" y="-1015.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7308.23" y="-1015.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7102.75,-971.2 7102.75,-1002 7496.49,-1002 7496.49,-971.2 7102.75,-971.2"/>
<text text-anchor="start" x="7109.75" y="-983.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7124.53" y="-983.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7102.75,-940.4 7102.75,-971.2 7496.49,-971.2 7496.49,-940.4 7102.75,-940.4"/>
<text text-anchor="start" x="7109.75" y="-952.6" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="7179" y="-952.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-909.6 7102.75,-940.4 7496.49,-940.4 7496.49,-909.6 7102.75,-909.6"/>
<text text-anchor="start" x="7109.75" y="-921.8" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="7178.23" y="-921.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-878.8 7102.75,-909.6 7496.49,-909.6 7496.49,-878.8 7102.75,-878.8"/>
<text text-anchor="start" x="7109.75" y="-891" font-family="Arial" font-size="14.00">email </text>
<text text-anchor="start" x="7147.09" y="-891" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-848 7102.75,-878.8 7496.49,-878.8 7496.49,-848 7102.75,-848"/>
<text text-anchor="start" x="7109.75" y="-860.2" font-family="Arial" font-size="14.00">gender </text>
<text text-anchor="start" x="7157.23" y="-860.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-817.2 7102.75,-848 7496.49,-848 7496.49,-817.2 7102.75,-817.2"/>
<text text-anchor="start" x="7109.75" y="-829.4" font-family="Arial" font-size="14.00">birthday </text>
<text text-anchor="start" x="7163.44" y="-829.4" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="7102.75,-786.4 7102.75,-817.2 7496.49,-817.2 7496.49,-786.4 7102.75,-786.4"/>
<text text-anchor="start" x="7109.75" y="-798.6" font-family="Arial" font-size="14.00">skill_level </text>
<text text-anchor="start" x="7173.55" y="-798.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-755.6 7102.75,-786.4 7496.49,-786.4 7496.49,-755.6 7102.75,-755.6"/>
<text text-anchor="start" x="7109.75" y="-767.8" font-family="Arial" font-size="14.00">is_age_public </text>
<text text-anchor="start" x="7199.26" y="-767.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="7102.75,-724.8 7102.75,-755.6 7496.49,-755.6 7496.49,-724.8 7102.75,-724.8"/>
<text text-anchor="start" x="7109.75" y="-737" font-family="Arial" font-size="14.00">profile_image_path </text>
<text text-anchor="start" x="7232.72" y="-737" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-694 7102.75,-724.8 7496.49,-724.8 7496.49,-694 7102.75,-694"/>
<text text-anchor="start" x="7109.75" y="-706.2" font-family="Arial" font-size="14.00">is_marketing_consent_granted </text>
<text text-anchor="start" x="7305.09" y="-706.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="7102.75,-663.2 7102.75,-694 7496.49,-694 7496.49,-663.2 7102.75,-663.2"/>
<text text-anchor="start" x="7109.75" y="-675.4" font-family="Arial" font-size="14.00">marketing_consent_granted_at </text>
<text text-anchor="start" x="7306.66" y="-675.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7102.75,-632.4 7102.75,-663.2 7496.49,-663.2 7496.49,-632.4 7102.75,-632.4"/>
<text text-anchor="start" x="7109.75" y="-644.6" font-family="Arial" font-size="14.00">get_stream_token </text>
<text text-anchor="start" x="7225.71" y="-644.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7102.75,-601.6 7102.75,-632.4 7496.49,-632.4 7496.49,-601.6 7102.75,-601.6"/>
<text text-anchor="start" x="7109.75" y="-613.8" font-family="Arial" font-size="14.00">email_address_id </text>
<text text-anchor="start" x="7223.37" y="-613.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7102.75,-570.8 7102.75,-601.6 7496.49,-601.6 7496.49,-570.8 7102.75,-570.8"/>
<text text-anchor="start" x="7109.75" y="-583" font-family="Arial" font-size="14.00">preferred_playing_times </text>
<text text-anchor="start" x="7263.83" y="-583" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7102.75,-540 7102.75,-570.8 7496.49,-570.8 7496.49,-540 7102.75,-540"/>
<text text-anchor="start" x="7109.75" y="-552.2" font-family="Arial" font-size="14.00">dominant_hands </text>
<text text-anchor="start" x="7217.16" y="-552.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7102.75,-509.2 7102.75,-540 7496.49,-540 7496.49,-509.2 7102.75,-509.2"/>
<text text-anchor="start" x="7109.75" y="-521.4" font-family="Arial" font-size="14.00">locale </text>
<text text-anchor="start" x="7150.22" y="-521.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7102.75,-478.4 7102.75,-509.2 7496.49,-509.2 7496.49,-478.4 7102.75,-478.4"/>
<text text-anchor="start" x="7109.75" y="-490.6" font-family="Arial" font-size="14.00">is_deleted </text>
<text text-anchor="start" x="7177.47" y="-490.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="7102.75,-447.6 7102.75,-478.4 7496.49,-478.4 7496.49,-447.6 7102.75,-447.6"/>
<text text-anchor="start" x="7109.75" y="-459.8" font-family="Arial" font-size="14.00">deleted_at </text>
<text text-anchor="start" x="7179.03" y="-459.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7102.75,-416.8 7102.75,-447.6 7496.49,-447.6 7496.49,-416.8 7102.75,-416.8"/>
<text text-anchor="start" x="7109.75" y="-429" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="7179.8" y="-429" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7102.75,-386 7102.75,-416.8 7496.49,-416.8 7496.49,-386 7102.75,-386"/>
<text text-anchor="start" x="7109.75" y="-398.2" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="7207.82" y="-398.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.coach&#45;&gt;public.user -->
<g id="edge10" class="edge">
<title>public.coach:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M4224.7,-1452.27C4371.81,-1442.2 4232.52,-1206.99 4364.62,-1116.8 4490.34,-1030.96 6949.51,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="4224.92,-1452.26 4214.78,-1448.09 4219.59,-1452.44 4215.26,-1452.58 4215.26,-1452.58 4215.26,-1452.58 4219.59,-1452.44 4215.08,-1457.09 4224.92,-1452.26"/>
<text text-anchor="start" x="4221.59" y="-1462.6" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.coach_absence -->
<g id="node7" class="node">
<title>public.coach_absence</title>
<polygon fill="#efefef" stroke="none" points="4284.67,-2596.2 4284.67,-2631.8 4580.58,-2631.8 4580.58,-2596.2 4284.67,-2596.2"/>
<polygon fill="none" stroke="black" points="4284.67,-2596.2 4284.67,-2631.8 4580.58,-2631.8 4580.58,-2596.2 4284.67,-2596.2"/>
<text text-anchor="start" x="4291.67" y="-2609.6" font-family="Arial Bold" font-size="18.00">public.coach_absence</text>
<text text-anchor="start" x="4449.09" y="-2609.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4480.2" y="-2609.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="4284.67,-2565.4 4284.67,-2596.2 4580.58,-2596.2 4580.58,-2565.4 4284.67,-2565.4"/>
<text text-anchor="start" x="4291.67" y="-2577.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4306.45" y="-2577.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4284.67,-2534.6 4284.67,-2565.4 4580.58,-2565.4 4580.58,-2534.6 4284.67,-2534.6"/>
<text text-anchor="start" x="4291.67" y="-2546.8" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="4351.6" y="-2546.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4284.67,-2503.8 4284.67,-2534.6 4580.58,-2534.6 4580.58,-2503.8 4284.67,-2503.8"/>
<text text-anchor="start" x="4291.67" y="-2516" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="4317.34" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4284.67,-2473 4284.67,-2503.8 4580.58,-2503.8 4580.58,-2473 4284.67,-2473"/>
<text text-anchor="start" x="4291.67" y="-2485.2" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="4349.24" y="-2485.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="4284.67,-2442.2 4284.67,-2473 4580.58,-2473 4580.58,-2442.2 4284.67,-2442.2"/>
<text text-anchor="start" x="4291.67" y="-2454.4" font-family="Arial" font-size="14.00">ends_at </text>
<text text-anchor="start" x="4345.38" y="-2454.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.coach_absence&#45;&gt;public.coach -->
<g id="edge11" class="edge">
<title>public.coach_absence:coach_id&#45;&gt;public.coach:id</title>
<path fill="none" stroke="black" d="M4274.31,-2546.7C4200.38,-2490.26 4302.66,-1729.8 4214.59,-1729.8"/>
<polygon fill="black" stroke="black" points="4273.92,-2546.56 4281.85,-2554.13 4278.95,-2548.33 4283.03,-2549.78 4283.03,-2549.78 4283.03,-2549.78 4278.95,-2548.33 4284.85,-2545.65 4273.92,-2546.56"/>
<text text-anchor="start" x="4043.82" y="-2560" font-family="Arial" font-size="10.00">FOREIGN KEY (coach_id) REFERENCES coach(id)</text>
</g>
<!-- public.coach_club -->
<g id="node8" class="node">
<title>public.coach_club</title>
<polygon fill="#efefef" stroke="none" points="3534.65,-2550 3534.65,-2585.6 3804.59,-2585.6 3804.59,-2550 3534.65,-2550"/>
<polygon fill="none" stroke="black" points="3534.65,-2550 3534.65,-2585.6 3804.59,-2585.6 3804.59,-2550 3534.65,-2550"/>
<text text-anchor="start" x="3541.65" y="-2563.4" font-family="Arial Bold" font-size="18.00">public.coach_club</text>
<text text-anchor="start" x="3673.1" y="-2563.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3704.22" y="-2563.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3534.65,-2519.2 3534.65,-2550 3804.59,-2550 3804.59,-2519.2 3534.65,-2519.2"/>
<text text-anchor="start" x="3541.65" y="-2531.4" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="3601.58" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3534.65,-2488.4 3534.65,-2519.2 3804.59,-2519.2 3804.59,-2488.4 3534.65,-2488.4"/>
<text text-anchor="start" x="3541.65" y="-2500.6" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="3589.91" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.coach_club&#45;&gt;public.club -->
<g id="edge12" class="edge">
<title>public.coach_club:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M3523.62,-2502.16C3452.46,-2476.98 3541.02,-2168.69 3482.62,-2106.4 3378.92,-1995.81 2964.53,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="3523.45,-2502.14 3532.6,-2508.19 3528.72,-2502.99 3532.99,-2503.69 3532.99,-2503.69 3532.99,-2503.69 3528.72,-2502.99 3534.05,-2499.3 3523.45,-2502.14"/>
<text text-anchor="start" x="3540.65" y="-2513.8" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.coach_club&#45;&gt;public.coach -->
<g id="edge13" class="edge">
<title>public.coach_club:coach_id&#45;&gt;public.coach:id</title>
<path fill="none" stroke="black" d="M3814.66,-2529.48C3852.58,-2484.01 3846.84,-2149.96 3856.62,-2106.4 3895.27,-1934.18 3806.14,-1729.8 3982.65,-1729.8"/>
<polygon fill="black" stroke="black" points="3814.59,-2529.52 3803.67,-2530.52 3809.94,-2532.14 3806.17,-2534.27 3806.17,-2534.27 3806.17,-2534.27 3809.94,-2532.14 3808.09,-2538.36 3814.59,-2529.52"/>
<text text-anchor="start" x="3455.17" y="-2544.6" font-family="Arial" font-size="10.00">FOREIGN KEY (coach_id) REFERENCES coach(id) ON DELETE CASCADE</text>
</g>
<!-- public.court -->
<g id="node9" class="node">
<title>public.court</title>
<polygon fill="#efefef" stroke="none" points="5091.14,-2657.8 5091.14,-2693.4 5316.1,-2693.4 5316.1,-2657.8 5091.14,-2657.8"/>
<polygon fill="none" stroke="black" points="5091.14,-2657.8 5091.14,-2693.4 5316.1,-2693.4 5316.1,-2657.8 5091.14,-2657.8"/>
<text text-anchor="start" x="5098.14" y="-2671.2" font-family="Arial Bold" font-size="18.00">public.court</text>
<text text-anchor="start" x="5184.61" y="-2671.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5215.73" y="-2671.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5091.14,-2627 5091.14,-2657.8 5316.1,-2657.8 5316.1,-2627 5091.14,-2627"/>
<text text-anchor="start" x="5098.14" y="-2639.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5112.92" y="-2639.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5091.14,-2596.2 5091.14,-2627 5316.1,-2627 5316.1,-2596.2 5091.14,-2596.2"/>
<text text-anchor="start" x="5098.14" y="-2608.4" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="5137.05" y="-2608.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5091.14,-2565.4 5091.14,-2596.2 5316.1,-2596.2 5316.1,-2565.4 5091.14,-2565.4"/>
<text text-anchor="start" x="5098.14" y="-2577.6" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="5146.39" y="-2577.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5091.14,-2534.6 5091.14,-2565.4 5316.1,-2565.4 5316.1,-2534.6 5091.14,-2534.6"/>
<text text-anchor="start" x="5098.14" y="-2546.8" font-family="Arial" font-size="14.00">location_type </text>
<text text-anchor="start" x="5184.53" y="-2546.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5091.14,-2503.8 5091.14,-2534.6 5316.1,-2534.6 5316.1,-2503.8 5091.14,-2503.8"/>
<text text-anchor="start" x="5098.14" y="-2516" font-family="Arial" font-size="14.00">match_type </text>
<text text-anchor="start" x="5174.4" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5091.14,-2473 5091.14,-2503.8 5316.1,-2503.8 5316.1,-2473 5091.14,-2473"/>
<text text-anchor="start" x="5098.14" y="-2485.2" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="5181.42" y="-2485.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="5091.14,-2442.2 5091.14,-2473 5316.1,-2473 5316.1,-2442.2 5091.14,-2442.2"/>
<text text-anchor="start" x="5098.14" y="-2454.4" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="5156.5" y="-2454.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="5091.14,-2411.4 5091.14,-2442.2 5316.1,-2442.2 5316.1,-2411.4 5091.14,-2411.4"/>
<text text-anchor="start" x="5098.14" y="-2423.6" font-family="Arial" font-size="14.00">sport_id </text>
<text text-anchor="start" x="5151.83" y="-2423.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5091.14,-2380.6 5091.14,-2411.4 5316.1,-2411.4 5316.1,-2380.6 5091.14,-2380.6"/>
<text text-anchor="start" x="5098.14" y="-2392.8" font-family="Arial" font-size="14.00">is_premium </text>
<text text-anchor="start" x="5174.38" y="-2392.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.court&#45;&gt;public.club -->
<g id="edge14" class="edge">
<title>public.court:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M5079.86,-2580.53C4885.01,-2569.74 5160.78,-2243.78 5000.62,-2106.4 4955.52,-2067.71 3990.94,-2073.89 3931.62,-2070.4 3433.52,-2041.06 3311.88,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="5079.81,-2580.52 5089.68,-2585.29 5085.14,-2580.67 5089.47,-2580.78 5089.47,-2580.78 5089.47,-2580.78 5085.14,-2580.67 5089.92,-2576.29 5079.81,-2580.52"/>
<text text-anchor="start" x="5011.95" y="-2564.8" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.sport -->
<g id="node35" class="node">
<title>public.sport</title>
<polygon fill="#efefef" stroke="none" points="5091.63,-1606.6 5091.63,-1642.2 5315.61,-1642.2 5315.61,-1606.6 5091.63,-1606.6"/>
<polygon fill="none" stroke="black" points="5091.63,-1606.6 5091.63,-1642.2 5315.61,-1642.2 5315.61,-1606.6 5091.63,-1606.6"/>
<text text-anchor="start" x="5098.63" y="-1620" font-family="Arial Bold" font-size="18.00">public.sport</text>
<text text-anchor="start" x="5184.12" y="-1620" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5215.24" y="-1620" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5091.63,-1575.8 5091.63,-1606.6 5315.61,-1606.6 5315.61,-1575.8 5091.63,-1575.8"/>
<text text-anchor="start" x="5098.63" y="-1588" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5113.42" y="-1588" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5091.63,-1545 5091.63,-1575.8 5315.61,-1575.8 5315.61,-1545 5091.63,-1545"/>
<text text-anchor="start" x="5098.63" y="-1557.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="5128.98" y="-1557.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.court&#45;&gt;public.sport -->
<g id="edge15" class="edge">
<title>public.court:sport_id&#45;&gt;public.sport:id</title>
<path fill="none" stroke="black" d="M5324.3,-2419.58C5363.33,-2337.91 5360.49,-1591.2 5316.61,-1591.2"/>
<polygon fill="black" stroke="black" points="5324.4,-2419.48 5314.15,-2423.39 5320.63,-2423.26 5317.57,-2426.33 5317.57,-2426.33 5317.57,-2426.33 5320.63,-2423.26 5320.53,-2429.74 5324.4,-2419.48"/>
<text text-anchor="start" x="5205.13" y="-2410.8" font-family="Arial" font-size="10.00">FOREIGN KEY (sport_id) REFERENCES sport(id)</text>
</g>
<!-- public.court_blocker -->
<g id="node10" class="node">
<title>public.court_blocker</title>
<polygon fill="#efefef" stroke="none" points="7155.65,-1714.4 7155.65,-1750 7443.59,-1750 7443.59,-1714.4 7155.65,-1714.4"/>
<polygon fill="none" stroke="black" points="7155.65,-1714.4 7155.65,-1750 7443.59,-1750 7443.59,-1714.4 7155.65,-1714.4"/>
<text text-anchor="start" x="7162.65" y="-1727.8" font-family="Arial Bold" font-size="18.00">public.court_blocker</text>
<text text-anchor="start" x="7312.1" y="-1727.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7343.22" y="-1727.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7155.65,-1683.6 7155.65,-1714.4 7443.59,-1714.4 7443.59,-1683.6 7155.65,-1683.6"/>
<text text-anchor="start" x="7162.65" y="-1695.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7177.44" y="-1695.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7155.65,-1652.8 7155.65,-1683.6 7443.59,-1683.6 7443.59,-1652.8 7155.65,-1652.8"/>
<text text-anchor="start" x="7162.65" y="-1665" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="7220.23" y="-1665" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7155.65,-1622 7155.65,-1652.8 7443.59,-1652.8 7443.59,-1622 7155.65,-1622"/>
<text text-anchor="start" x="7162.65" y="-1634.2" font-family="Arial" font-size="14.00">ends_at </text>
<text text-anchor="start" x="7216.36" y="-1634.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7155.65,-1591.2 7155.65,-1622 7443.59,-1622 7443.59,-1591.2 7155.65,-1591.2"/>
<text text-anchor="start" x="7162.65" y="-1603.4" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="7188.33" y="-1603.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7155.65,-1560.4 7155.65,-1591.2 7443.59,-1591.2 7443.59,-1560.4 7155.65,-1560.4"/>
<text text-anchor="start" x="7162.65" y="-1572.6" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="7232.7" y="-1572.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7155.65,-1529.6 7155.65,-1560.4 7443.59,-1560.4 7443.59,-1529.6 7155.65,-1529.6"/>
<text text-anchor="start" x="7162.65" y="-1541.8" font-family="Arial" font-size="14.00">updated_at </text>
<text text-anchor="start" x="7236.61" y="-1541.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7155.65,-1498.8 7155.65,-1529.6 7443.59,-1529.6 7443.59,-1498.8 7155.65,-1498.8"/>
<text text-anchor="start" x="7162.65" y="-1511" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="7193.79" y="-1511" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7155.65,-1468 7155.65,-1498.8 7443.59,-1498.8 7443.59,-1468 7155.65,-1468"/>
<text text-anchor="start" x="7162.65" y="-1480.2" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="7254.49" y="-1480.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7155.65,-1437.2 7155.65,-1468 7443.59,-1468 7443.59,-1437.2 7155.65,-1437.2"/>
<text text-anchor="start" x="7162.65" y="-1449.4" font-family="Arial" font-size="14.00">updated_by_id </text>
<text text-anchor="start" x="7258.4" y="-1449.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.court_blocker&#45;&gt;public.user -->
<g id="edge16" class="edge">
<title>public.court_blocker:updated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M7299.92,-1425.96C7312.47,-1210.71 7712.4,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="7299.92,-1425.87 7295.13,-1435.73 7299.77,-1431.2 7299.64,-1435.53 7299.64,-1435.53 7299.64,-1435.53 7299.77,-1431.2 7304.13,-1436 7299.92,-1425.87"/>
<text text-anchor="start" x="7034.32" y="-1446.2" 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="edge17" class="edge">
<title>public.court_blocker:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M7453.5,-1478.33C7490.21,-1434.66 7493.58,-1122.63 7496.49,-1080.8 7499.4,-1039.03 7539.36,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="7453.57,-1478.29 7442.65,-1479.32 7448.94,-1480.93 7445.17,-1483.07 7445.17,-1483.07 7445.17,-1483.07 7448.94,-1480.93 7447.11,-1487.15 7453.57,-1478.29"/>
<text text-anchor="start" x="7451.59" y="-1493.4" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.court_image -->
<g id="node11" class="node">
<title>public.court_image</title>
<polygon fill="#efefef" stroke="none" points="3710.65,-3324 3710.65,-3359.6 3988.59,-3359.6 3988.59,-3324 3710.65,-3324"/>
<polygon fill="none" stroke="black" points="3710.65,-3324 3710.65,-3359.6 3988.59,-3359.6 3988.59,-3324 3710.65,-3324"/>
<text text-anchor="start" x="3717.65" y="-3337.4" font-family="Arial Bold" font-size="18.00">public.court_image</text>
<text text-anchor="start" x="3857.1" y="-3337.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3888.22" y="-3337.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3710.65,-3293.2 3710.65,-3324 3988.59,-3324 3988.59,-3293.2 3710.65,-3293.2"/>
<text text-anchor="start" x="3717.65" y="-3305.4" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="3771.34" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3710.65,-3262.4 3710.65,-3293.2 3988.59,-3293.2 3988.59,-3262.4 3710.65,-3262.4"/>
<text text-anchor="start" x="3717.65" y="-3274.6" font-family="Arial" font-size="14.00">image_id </text>
<text text-anchor="start" x="3778.35" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.court_image&#45;&gt;public.court -->
<g id="edge18" class="edge">
<title>public.court_image:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M3999.76,-3308.46C4223.96,-3301.98 4203.16,-3080.49 4421.62,-3003.6 4543.22,-2960.8 4900.55,-3048.88 5000.62,-2967.6 5116.98,-2873.09 4940.23,-2642.4 5090.14,-2642.4"/>
<polygon fill="black" stroke="black" points="3999.93,-3308.45 3989.86,-3304.1 3994.59,-3308.53 3990.26,-3308.59 3990.26,-3308.59 3990.26,-3308.59 3994.59,-3308.53 3989.99,-3313.09 3999.93,-3308.45"/>
<text text-anchor="start" x="3996.59" y="-3318.6" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id) ON DELETE CASCADE</text>
</g>
<!-- public.court_image&#45;&gt;public.image -->
<g id="edge19" class="edge">
<title>public.court_image:image_id&#45;&gt;public.image:id</title>
<path fill="none" stroke="black" d="M3699.49,-3277.52C3549.93,-3268.99 3612.25,-3069.8 3467.62,-3003.6 3384.27,-2965.45 232.09,-3032.77 167.62,-2967.6 101.7,-2900.96 146.26,-1163.4 187.62,-1116.8 379.62,-900.47 2476.4,-755.6 2765.64,-755.6"/>
<polygon fill="black" stroke="black" points="3699.32,-3277.51 3709.19,-3282.29 3704.65,-3277.66 3708.98,-3277.78 3708.98,-3277.78 3708.98,-3277.78 3704.65,-3277.66 3709.44,-3273.29 3699.32,-3277.51"/>
<text text-anchor="start" x="3358.12" y="-3287.8" font-family="Arial" font-size="10.00">FOREIGN KEY (image_id) REFERENCES image(id) ON DELETE CASCADE</text>
</g>
<!-- public.doctrine_migration_versions -->
<g id="node12" class="node">
<title>public.doctrine_migration_versions</title>
<polygon fill="#efefef" stroke="none" points="8748.15,-6266 8748.15,-6301.6 9143.09,-6301.6 9143.09,-6266 8748.15,-6266"/>
<polygon fill="none" stroke="black" points="8748.15,-6266 8748.15,-6301.6 9143.09,-6301.6 9143.09,-6266 8748.15,-6266"/>
<text text-anchor="start" x="8755.15" y="-6279.4" font-family="Arial Bold" font-size="18.00">public.doctrine_migration_versions</text>
<text text-anchor="start" x="9011.6" y="-6279.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="9042.72" y="-6279.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8748.15,-6235.2 8748.15,-6266 9143.09,-6266 9143.09,-6235.2 8748.15,-6235.2"/>
<text text-anchor="start" x="8755.15" y="-6247.4" font-family="Arial" font-size="14.00">version </text>
<text text-anchor="start" x="8804.17" y="-6247.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(191)]</text>
<polygon fill="none" stroke="black" points="8748.15,-6204.4 8748.15,-6235.2 9143.09,-6235.2 9143.09,-6204.4 8748.15,-6204.4"/>
<text text-anchor="start" x="8755.15" y="-6216.6" font-family="Arial" font-size="14.00">executed_at </text>
<text text-anchor="start" x="8835.32" y="-6216.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) without time zone]</text>
<polygon fill="none" stroke="black" points="8748.15,-6173.6 8748.15,-6204.4 9143.09,-6204.4 9143.09,-6173.6 8748.15,-6173.6"/>
<text text-anchor="start" x="8755.15" y="-6185.8" font-family="Arial" font-size="14.00">execution_time </text>
<text text-anchor="start" x="8853.21" y="-6185.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
</g>
<!-- public.document -->
<g id="node13" class="node">
<title>public.document</title>
<polygon fill="#efefef" stroke="none" points="8550.14,-740.2 8550.14,-775.8 8809.1,-775.8 8809.1,-740.2 8550.14,-740.2"/>
<polygon fill="none" stroke="black" points="8550.14,-740.2 8550.14,-775.8 8809.1,-775.8 8809.1,-740.2 8550.14,-740.2"/>
<text text-anchor="start" x="8557.14" y="-753.6" font-family="Arial Bold" font-size="18.00">public.document</text>
<text text-anchor="start" x="8677.61" y="-753.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8708.73" y="-753.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8550.14,-709.4 8550.14,-740.2 8809.1,-740.2 8809.1,-709.4 8550.14,-709.4"/>
<text text-anchor="start" x="8557.14" y="-721.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8571.93" y="-721.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8550.14,-678.6 8550.14,-709.4 8809.1,-709.4 8809.1,-678.6 8550.14,-678.6"/>
<text text-anchor="start" x="8557.14" y="-690.8" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="8640.42" y="-690.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="8550.14,-647.8 8550.14,-678.6 8809.1,-678.6 8809.1,-647.8 8550.14,-647.8"/>
<text text-anchor="start" x="8557.14" y="-660" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="8587.49" y="-660" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.document_approval -->
<g id="node14" class="node">
<title>public.document_approval</title>
<polygon fill="#efefef" stroke="none" points="8514.15,-1637.4 8514.15,-1673 8845.09,-1673 8845.09,-1637.4 8514.15,-1637.4"/>
<polygon fill="none" stroke="black" points="8514.15,-1637.4 8514.15,-1673 8845.09,-1673 8845.09,-1637.4 8514.15,-1637.4"/>
<text text-anchor="start" x="8521.15" y="-1650.8" font-family="Arial Bold" font-size="18.00">public.document_approval</text>
<text text-anchor="start" x="8713.6" y="-1650.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8744.72" y="-1650.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8514.15,-1606.6 8514.15,-1637.4 8845.09,-1637.4 8845.09,-1606.6 8514.15,-1606.6"/>
<text text-anchor="start" x="8521.15" y="-1618.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8535.94" y="-1618.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8514.15,-1575.8 8514.15,-1606.6 8845.09,-1606.6 8845.09,-1575.8 8514.15,-1575.8"/>
<text text-anchor="start" x="8521.15" y="-1588" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="8570.96" y="-1588" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8514.15,-1545 8514.15,-1575.8 8845.09,-1575.8 8845.09,-1545 8514.15,-1545"/>
<text text-anchor="start" x="8521.15" y="-1557.2" font-family="Arial" font-size="14.00">document_id </text>
<text text-anchor="start" x="8605.21" y="-1557.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8514.15,-1514.2 8514.15,-1545 8845.09,-1545 8845.09,-1514.2 8514.15,-1514.2"/>
<text text-anchor="start" x="8521.15" y="-1526.4" font-family="Arial" font-size="14.00">approved_at </text>
<text text-anchor="start" x="8602.88" y="-1526.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.document_approval&#45;&gt;public.document -->
<g id="edge20" class="edge">
<title>public.document_approval:document_id&#45;&gt;public.document:id</title>
<path fill="none" stroke="black" d="M8856.33,-1560.19C9217.11,-1544.97 9178.37,-724.8 8810.1,-724.8"/>
<polygon fill="black" stroke="black" points="8856.42,-1560.18 8846.33,-1555.89 8851.09,-1560.3 8846.76,-1560.39 8846.76,-1560.39 8846.76,-1560.39 8851.09,-1560.3 8846.52,-1564.89 8856.42,-1560.18"/>
<text text-anchor="start" x="8853.09" y="-1570.4" font-family="Arial" font-size="10.00">FOREIGN KEY (document_id) REFERENCES document(id)</text>
</g>
<!-- public.document_approval&#45;&gt;public.user -->
<g id="edge21" class="edge">
<title>public.document_approval:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8503.06,-1589.83C8415.24,-1564.32 8528.53,-1189.9 8456.62,-1116.8 8381.2,-1040.13 7605.04,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8502.91,-1589.81 8512.22,-1595.61 8508.2,-1590.53 8512.49,-1591.11 8512.49,-1591.11 8512.49,-1591.11 8508.2,-1590.53 8513.43,-1586.7 8502.91,-1589.81"/>
<text text-anchor="start" x="8280.67" y="-1601.2" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.email_address -->
<g id="node15" class="node">
<title>public.email_address</title>
<polygon fill="#efefef" stroke="none" points="7113.26,-228 7113.26,-263.6 7485.98,-263.6 7485.98,-228 7113.26,-228"/>
<polygon fill="none" stroke="black" points="7113.26,-228 7113.26,-263.6 7485.98,-263.6 7485.98,-228 7113.26,-228"/>
<text text-anchor="start" x="7161.15" y="-241.4" font-family="Arial Bold" font-size="18.00">public.email_address</text>
<text text-anchor="start" x="7313.6" y="-241.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7344.72" y="-241.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7113.26,-197.2 7113.26,-228 7485.98,-228 7485.98,-197.2 7113.26,-197.2"/>
<text text-anchor="start" x="7120.26" y="-209.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7135.05" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7113.26,-166.4 7113.26,-197.2 7485.98,-197.2 7485.98,-166.4 7113.26,-166.4"/>
<text text-anchor="start" x="7120.26" y="-178.6" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="7170.07" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7113.26,-135.6 7113.26,-166.4 7485.98,-166.4 7485.98,-135.6 7113.26,-135.6"/>
<text text-anchor="start" x="7120.26" y="-147.8" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="7215.2" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7113.26,-104.8 7113.26,-135.6 7485.98,-135.6 7485.98,-104.8 7113.26,-104.8"/>
<text text-anchor="start" x="7120.26" y="-117" font-family="Arial" font-size="14.00">confirmation_token </text>
<text text-anchor="start" x="7242.44" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7113.26,-74 7113.26,-104.8 7485.98,-104.8 7485.98,-74 7113.26,-74"/>
<text text-anchor="start" x="7120.26" y="-86.2" font-family="Arial" font-size="14.00">is_ownership_confirmed </text>
<text text-anchor="start" x="7275.12" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="7113.26,-43.2 7113.26,-74 7485.98,-74 7485.98,-43.2 7113.26,-43.2"/>
<text text-anchor="start" x="7120.26" y="-55.4" font-family="Arial" font-size="14.00">ownership_confirmed_at </text>
<text text-anchor="start" x="7276.68" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) without time zone]</text>
</g>
<!-- public.email_address&#45;&gt;public.user -->
<g id="edge22" class="edge">
<title>public.email_address:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M7497.36,-182.03C7844.87,-197.44 7851.72,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="7497.31,-182.03 7487.41,-177.31 7491.98,-181.91 7487.65,-181.81 7487.65,-181.81 7487.65,-181.81 7491.98,-181.91 7487.21,-186.31 7497.31,-182.03"/>
<text text-anchor="start" x="7493.98" y="-191.8" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.equipment -->
<g id="node16" class="node">
<title>public.equipment</title>
<polygon fill="#efefef" stroke="none" points="4684.64,-2611.6 4684.64,-2647.2 4948.6,-2647.2 4948.6,-2611.6 4684.64,-2611.6"/>
<polygon fill="none" stroke="black" points="4684.64,-2611.6 4684.64,-2647.2 4948.6,-2647.2 4948.6,-2611.6 4684.64,-2611.6"/>
<text text-anchor="start" x="4691.64" y="-2625" font-family="Arial Bold" font-size="18.00">public.equipment</text>
<text text-anchor="start" x="4817.11" y="-2625" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4848.23" y="-2625" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="4684.64,-2580.8 4684.64,-2611.6 4948.6,-2611.6 4948.6,-2580.8 4684.64,-2580.8"/>
<text text-anchor="start" x="4691.64" y="-2593" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4706.43" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4684.64,-2550 4684.64,-2580.8 4948.6,-2580.8 4948.6,-2550 4684.64,-2550"/>
<text text-anchor="start" x="4691.64" y="-2562.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="4721.99" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4684.64,-2519.2 4684.64,-2550 4948.6,-2550 4948.6,-2519.2 4684.64,-2519.2"/>
<text text-anchor="start" x="4691.64" y="-2531.4" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="4730.55" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="4684.64,-2488.4 4684.64,-2519.2 4948.6,-2519.2 4948.6,-2488.4 4684.64,-2488.4"/>
<text text-anchor="start" x="4691.64" y="-2500.6" font-family="Arial" font-size="14.00">fee_amount </text>
<text text-anchor="start" x="4769.47" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="4684.64,-2457.6 4684.64,-2488.4 4948.6,-2488.4 4948.6,-2457.6 4684.64,-2457.6"/>
<text text-anchor="start" x="4691.64" y="-2469.8" font-family="Arial" font-size="14.00">fee_currency </text>
<text text-anchor="start" x="4776.46" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="4684.64,-2426.8 4684.64,-2457.6 4948.6,-2457.6 4948.6,-2426.8 4684.64,-2426.8"/>
<text text-anchor="start" x="4691.64" y="-2439" font-family="Arial" font-size="14.00">sport_id </text>
<text text-anchor="start" x="4745.34" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.equipment&#45;&gt;public.sport -->
<g id="edge23" class="edge">
<title>public.equipment:sport_id&#45;&gt;public.sport:id</title>
<path fill="none" stroke="black" d="M4959.83,-2441.33C5132.45,-2410.91 4902.5,-1591.2 5090.63,-1591.2"/>
<polygon fill="black" stroke="black" points="4959.9,-2441.33 4949.55,-2437.69 4954.58,-2441.78 4950.27,-2442.14 4950.27,-2442.14 4950.27,-2442.14 4954.58,-2441.78 4950.31,-2446.66 4959.9,-2441.33"/>
<text text-anchor="start" x="4956.6" y="-2452.2" font-family="Arial" font-size="10.00">FOREIGN KEY (sport_id) REFERENCES sport(id)</text>
</g>
<!-- public.game -->
<g id="node18" class="node">
<title>public.game</title>
<polygon fill="#efefef" stroke="none" points="5975.11,-4621.6 5975.11,-4657.2 6322.13,-4657.2 6322.13,-4621.6 5975.11,-4621.6"/>
<polygon fill="none" stroke="black" points="5975.11,-4621.6 5975.11,-4657.2 6322.13,-4657.2 6322.13,-4621.6 5975.11,-4621.6"/>
<text text-anchor="start" x="6042.14" y="-4635" font-family="Arial Bold" font-size="18.00">public.game</text>
<text text-anchor="start" x="6130.61" y="-4635" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6161.73" y="-4635" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5975.11,-4590.8 5975.11,-4621.6 6322.13,-4621.6 6322.13,-4590.8 5975.11,-4590.8"/>
<text text-anchor="start" x="5982.11" y="-4603" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5996.89" y="-4603" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-4560 5975.11,-4590.8 6322.13,-4590.8 6322.13,-4560 5975.11,-4560"/>
<text text-anchor="start" x="5982.11" y="-4572.2" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="6035.8" y="-4572.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-4529.2 5975.11,-4560 6322.13,-4560 6322.13,-4529.2 5975.11,-4529.2"/>
<text text-anchor="start" x="5982.11" y="-4541.4" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="6030.36" y="-4541.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-4498.4 5975.11,-4529.2 6322.13,-4529.2 6322.13,-4498.4 5975.11,-4498.4"/>
<text text-anchor="start" x="5982.11" y="-4510.6" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="6042.04" y="-4510.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-4467.6 5975.11,-4498.4 6322.13,-4498.4 6322.13,-4467.6 5975.11,-4467.6"/>
<text text-anchor="start" x="5982.11" y="-4479.8" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="6011.68" y="-4479.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5975.11,-4436.8 5975.11,-4467.6 6322.13,-4467.6 6322.13,-4436.8 5975.11,-4436.8"/>
<text text-anchor="start" x="5982.11" y="-4449" font-family="Arial" font-size="14.00">phase </text>
<text text-anchor="start" x="6024.14" y="-4449" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5975.11,-4406 5975.11,-4436.8 6322.13,-4436.8 6322.13,-4406 5975.11,-4406"/>
<text text-anchor="start" x="5982.11" y="-4418.2" font-family="Arial" font-size="14.00">match_period_starts_at </text>
<text text-anchor="start" x="6132.3" y="-4418.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4375.2 5975.11,-4406 6322.13,-4406 6322.13,-4375.2 5975.11,-4375.2"/>
<text text-anchor="start" x="5982.11" y="-4387.4" font-family="Arial" font-size="14.00">match_period_ends_at </text>
<text text-anchor="start" x="6128.43" y="-4387.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4344.4 5975.11,-4375.2 6322.13,-4375.2 6322.13,-4344.4 5975.11,-4344.4"/>
<text text-anchor="start" x="5982.11" y="-4356.6" font-family="Arial" font-size="14.00">court_fee_amount </text>
<text text-anchor="start" x="6098.85" y="-4356.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="5975.11,-4313.6 5975.11,-4344.4 6322.13,-4344.4 6322.13,-4313.6 5975.11,-4313.6"/>
<text text-anchor="start" x="5982.11" y="-4325.8" font-family="Arial" font-size="14.00">court_fee_currency </text>
<text text-anchor="start" x="6105.84" y="-4325.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="5975.11,-4282.8 5975.11,-4313.6 6322.13,-4313.6 6322.13,-4282.8 5975.11,-4282.8"/>
<text text-anchor="start" x="5982.11" y="-4295" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6052.15" y="-4295" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4252 5975.11,-4282.8 6322.13,-4282.8 6322.13,-4252 5975.11,-4252"/>
<text text-anchor="start" x="5982.11" y="-4264.2" font-family="Arial" font-size="14.00">cancelled_at </text>
<text text-anchor="start" x="6064.61" y="-4264.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4221.2 5975.11,-4252 6322.13,-4252 6322.13,-4221.2 5975.11,-4221.2"/>
<text text-anchor="start" x="5982.11" y="-4233.4" font-family="Arial" font-size="14.00">scheduled_at </text>
<text text-anchor="start" x="6069.29" y="-4233.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4190.4 5975.11,-4221.2 6322.13,-4221.2 6322.13,-4190.4 5975.11,-4190.4"/>
<text text-anchor="start" x="5982.11" y="-4202.6" font-family="Arial" font-size="14.00">terminated_at </text>
<text text-anchor="start" x="6071.6" y="-4202.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4159.6 5975.11,-4190.4 6322.13,-4190.4 6322.13,-4159.6 5975.11,-4159.6"/>
<text text-anchor="start" x="5982.11" y="-4171.8" font-family="Arial" font-size="14.00">cancelled_by_id </text>
<text text-anchor="start" x="6086.4" y="-4171.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-4128.8 5975.11,-4159.6 6322.13,-4159.6 6322.13,-4128.8 5975.11,-4128.8"/>
<text text-anchor="start" x="5982.11" y="-4141" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="6013.24" y="-4141" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="5975.11,-4098 5975.11,-4128.8 6322.13,-4128.8 6322.13,-4098 5975.11,-4098"/>
<text text-anchor="start" x="5982.11" y="-4110.2" font-family="Arial" font-size="14.00">schedule_till_latest </text>
<text text-anchor="start" x="6104.29" y="-4110.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-4067.2 5975.11,-4098 6322.13,-4098 6322.13,-4067.2 5975.11,-4067.2"/>
<text text-anchor="start" x="5982.11" y="-4079.4" font-family="Arial" font-size="14.00">match_period_duration_in_seconds </text>
<text text-anchor="start" x="6207.82" y="-4079.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5975.11,-4036.4 5975.11,-4067.2 6322.13,-4067.2 6322.13,-4036.4 5975.11,-4036.4"/>
<text text-anchor="start" x="5982.11" y="-4048.6" font-family="Arial" font-size="14.00">day_index </text>
<text text-anchor="start" x="6049.82" y="-4048.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5975.11,-4005.6 5975.11,-4036.4 6322.13,-4036.4 6322.13,-4005.6 5975.11,-4005.6"/>
<text text-anchor="start" x="5982.11" y="-4017.8" font-family="Arial" font-size="14.00">day_name </text>
<text text-anchor="start" x="6051.38" y="-4017.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5975.11,-3974.8 5975.11,-4005.6 6322.13,-4005.6 6322.13,-3974.8 5975.11,-3974.8"/>
<text text-anchor="start" x="5982.11" y="-3987" font-family="Arial" font-size="14.00">running_at </text>
<text text-anchor="start" x="6052.16" y="-3987" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-3944 5975.11,-3974.8 6322.13,-3974.8 6322.13,-3944 5975.11,-3944"/>
<text text-anchor="start" x="5982.11" y="-3956.2" font-family="Arial" font-size="14.00">finished_at </text>
<text text-anchor="start" x="6053.71" y="-3956.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-3913.2 5975.11,-3944 6322.13,-3944 6322.13,-3913.2 5975.11,-3913.2"/>
<text text-anchor="start" x="5982.11" y="-3925.4" font-family="Arial" font-size="14.00">confirming_at </text>
<text text-anchor="start" x="6070.04" y="-3925.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-3882.4 5975.11,-3913.2 6322.13,-3913.2 6322.13,-3882.4 5975.11,-3882.4"/>
<text text-anchor="start" x="5982.11" y="-3894.6" font-family="Arial" font-size="14.00">match_series_id </text>
<text text-anchor="start" x="6087.93" y="-3894.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-3851.6 5975.11,-3882.4 6322.13,-3882.4 6322.13,-3851.6 5975.11,-3851.6"/>
<text text-anchor="start" x="5982.11" y="-3863.8" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="6073.95" y="-3863.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-3820.8 5975.11,-3851.6 6322.13,-3851.6 6322.13,-3820.8 5975.11,-3820.8"/>
<text text-anchor="start" x="5982.11" y="-3833" font-family="Arial" font-size="14.00">split_payment_id </text>
<text text-anchor="start" x="6091.06" y="-3833" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5975.11,-3790 5975.11,-3820.8 6322.13,-3820.8 6322.13,-3790 5975.11,-3790"/>
<text text-anchor="start" x="5982.11" y="-3802.2" font-family="Arial" font-size="14.00">version </text>
<text text-anchor="start" x="6031.13" y="-3802.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5975.11,-3759.2 5975.11,-3790 6322.13,-3790 6322.13,-3759.2 5975.11,-3759.2"/>
<text text-anchor="start" x="5982.11" y="-3771.4" font-family="Arial" font-size="14.00">is_split_payment_migrated </text>
<text text-anchor="start" x="6152.53" y="-3771.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="5975.11,-3728.4 5975.11,-3759.2 6322.13,-3759.2 6322.13,-3728.4 5975.11,-3728.4"/>
<text text-anchor="start" x="5982.11" y="-3740.6" font-family="Arial" font-size="14.00">abandoned_at </text>
<text text-anchor="start" x="6075.53" y="-3740.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5975.11,-3697.6 5975.11,-3728.4 6322.13,-3728.4 6322.13,-3697.6 5975.11,-3697.6"/>
<text text-anchor="start" x="5982.11" y="-3709.8" font-family="Arial" font-size="14.00">reserved_at </text>
<text text-anchor="start" x="6059.93" y="-3709.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.game&#45;&gt;public.club -->
<g id="edge24" class="edge">
<title>public.game:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M5963.73,-4544.6C4620.25,-4543.91 4169.75,-4408.69 3077.62,-3618.4 2788.15,-3408.93 2722.38,-3305.29 2605.62,-2967.6 2574.33,-2877.1 2623.4,-2187.59 2572.62,-2106.4 2554.63,-2077.64 2522.91,-2099.41 2505.32,-2070.4 2483.61,-2034.6 2462.45,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="5963.77,-4544.6 5973.77,-4549.1 5969.11,-4544.6 5973.44,-4544.6 5973.44,-4544.6 5973.44,-4544.6 5969.11,-4544.6 5973.77,-4540.1 5963.77,-4544.6"/>
<text text-anchor="start" x="5750.94" y="-4554.6" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.game&#45;&gt;public.court -->
<g id="edge25" class="edge">
<title>public.game:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M5963.97,-4575.3C5540.38,-4567.22 5804.98,-4047.95 5739.62,-3618.4 5729.32,-3550.74 5748.9,-3053.09 5701.62,-3003.6 5650.05,-2949.62 5421.63,-3019.14 5367.62,-2967.6 5314.71,-2917.11 5390.24,-2642.4 5317.1,-2642.4"/>
<polygon fill="black" stroke="black" points="5963.77,-4575.3 5973.73,-4579.9 5969.11,-4575.35 5973.44,-4575.39 5973.44,-4575.39 5973.44,-4575.39 5969.11,-4575.35 5973.81,-4570.9 5963.77,-4575.3"/>
<text text-anchor="start" x="5743.17" y="-4585.4" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id)</text>
</g>
<!-- public.match_coach -->
<g id="node22" class="node">
<title>public.match_coach</title>
<polygon fill="#efefef" stroke="none" points="5366.16,-3401 5366.16,-3436.6 5649.08,-3436.6 5649.08,-3401 5366.16,-3401"/>
<polygon fill="none" stroke="black" points="5366.16,-3401 5366.16,-3436.6 5649.08,-3436.6 5649.08,-3401 5366.16,-3401"/>
<text text-anchor="start" x="5373.16" y="-3414.4" font-family="Arial Bold" font-size="18.00">public.match_coach</text>
<text text-anchor="start" x="5517.6" y="-3414.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5548.71" y="-3414.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5366.16,-3370.2 5366.16,-3401 5649.08,-3401 5649.08,-3370.2 5366.16,-3370.2"/>
<text text-anchor="start" x="5373.16" y="-3382.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5387.94" y="-3382.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5366.16,-3339.4 5366.16,-3370.2 5649.08,-3370.2 5649.08,-3339.4 5366.16,-3339.4"/>
<text text-anchor="start" x="5373.16" y="-3351.6" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="5433.09" y="-3351.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5366.16,-3308.6 5366.16,-3339.4 5649.08,-3339.4 5649.08,-3308.6 5366.16,-3308.6"/>
<text text-anchor="start" x="5373.16" y="-3320.8" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="5442.4" y="-3320.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5366.16,-3277.8 5366.16,-3308.6 5649.08,-3308.6 5649.08,-3277.8 5366.16,-3277.8"/>
<text text-anchor="start" x="5373.16" y="-3290" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="5441.64" y="-3290" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5366.16,-3247 5366.16,-3277.8 5649.08,-3277.8 5649.08,-3247 5366.16,-3247"/>
<text text-anchor="start" x="5373.16" y="-3259.2" font-family="Arial" font-size="14.00">trained_players </text>
<text text-anchor="start" x="5472.77" y="-3259.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5366.16,-3216.2 5366.16,-3247 5649.08,-3247 5649.08,-3216.2 5366.16,-3216.2"/>
<text text-anchor="start" x="5373.16" y="-3228.4" font-family="Arial" font-size="14.00">price__amount </text>
<text text-anchor="start" x="5469.66" y="-3228.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="5366.16,-3185.4 5366.16,-3216.2 5649.08,-3216.2 5649.08,-3185.4 5366.16,-3185.4"/>
<text text-anchor="start" x="5373.16" y="-3197.6" font-family="Arial" font-size="14.00">price__currency </text>
<text text-anchor="start" x="5476.65" y="-3197.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.game&#45;&gt;public.match_coach -->
<g id="edge26" class="edge">
<title>public.game:coach_id&#45;&gt;public.match_coach:id</title>
<path fill="none" stroke="black" d="M5963.9,-4513.7C5563,-4505.6 5814.21,-4015.99 5706.62,-3618.4 5692.71,-3567.01 5703.32,-3385.6 5650.08,-3385.6"/>
<polygon fill="black" stroke="black" points="5963.77,-4513.7 5973.73,-4518.3 5969.11,-4513.75 5973.44,-4513.79 5973.44,-4513.79 5973.44,-4513.79 5969.11,-4513.75 5973.82,-4509.3 5963.77,-4513.7"/>
<text text-anchor="start" x="5701.47" y="-4523.8" font-family="Arial" font-size="10.00">FOREIGN KEY (coach_id) REFERENCES match_coach(id)</text>
</g>
<!-- public.game&#45;&gt;public.user -->
<g id="edge27" class="edge">
<title>public.game:cancelled_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6333.42,-4174.77C6551.63,-4164.91 6457.58,-3837.65 6322.13,-3654.4 6289.92,-3610.81 6237.79,-3662.02 6205.62,-3618.4 6165.07,-3563.43 6164.16,-3057.89 6205.62,-3003.6 6242.53,-2955.27 6300.05,-3015.41 6337.62,-2967.6 6401.18,-2886.72 6321.66,-1194.88 6388.62,-1116.8 6493.49,-994.52 6940.66,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="6333.47,-4174.77 6323.37,-4170.49 6328.13,-4174.89 6323.8,-4174.99 6323.8,-4174.99 6323.8,-4174.99 6328.13,-4174.89 6323.57,-4179.49 6333.47,-4174.77"/>
<text text-anchor="start" x="6330.13" y="-4185" 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="edge28" class="edge">
<title>public.game:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6333.12,-3866.44C6414.87,-3856.8 6378.71,-3725.65 6322.13,-3654.4 6279.09,-3600.2 6213.53,-3672.7 6170.62,-3618.4 6128.27,-3564.8 6129.48,-3058.14 6170.62,-3003.6 6205.69,-2957.1 6260.81,-3013.53 6296.62,-2967.6 6359.87,-2886.47 6288.18,-1194.48 6355.62,-1116.8 6465.96,-989.7 6933.44,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="6333.45,-3866.42 6323.21,-3862.49 6328.13,-3866.72 6323.8,-3866.96 6323.8,-3866.96 6323.8,-3866.96 6328.13,-3866.72 6323.72,-3871.47 6333.45,-3866.42"/>
<text text-anchor="start" x="6330.13" y="-3877" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.match_series -->
<g id="node41" class="node">
<title>public.match_series</title>
<polygon fill="#efefef" stroke="none" points="5791.46,-3539.6 5791.46,-3575.2 6077.79,-3575.2 6077.79,-3539.6 5791.46,-3539.6"/>
<polygon fill="none" stroke="black" points="5791.46,-3539.6 5791.46,-3575.2 6077.79,-3575.2 6077.79,-3539.6 5791.46,-3539.6"/>
<text text-anchor="start" x="5800.65" y="-3553" font-family="Arial Bold" font-size="18.00">public.match_series</text>
<text text-anchor="start" x="5944.1" y="-3553" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5975.22" y="-3553" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5791.46,-3508.8 5791.46,-3539.6 6077.79,-3539.6 6077.79,-3508.8 5791.46,-3508.8"/>
<text text-anchor="start" x="5798.46" y="-3521" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5813.24" y="-3521" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5791.46,-3478 5791.46,-3508.8 6077.79,-3508.8 6077.79,-3478 5791.46,-3478"/>
<text text-anchor="start" x="5798.46" y="-3490.2" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="5852.15" y="-3490.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5791.46,-3447.2 5791.46,-3478 6077.79,-3478 6077.79,-3447.2 5791.46,-3447.2"/>
<text text-anchor="start" x="5798.46" y="-3459.4" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="5859.16" y="-3459.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5791.46,-3416.4 5791.46,-3447.2 6077.79,-3447.2 6077.79,-3416.4 5791.46,-3416.4"/>
<text text-anchor="start" x="5798.46" y="-3428.6" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="5868.5" y="-3428.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5791.46,-3385.6 5791.46,-3416.4 6077.79,-3416.4 6077.79,-3385.6 5791.46,-3385.6"/>
<text text-anchor="start" x="5798.46" y="-3397.8" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="5839.7" y="-3397.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5791.46,-3354.8 5791.46,-3385.6 6077.79,-3385.6 6077.79,-3354.8 5791.46,-3354.8"/>
<text text-anchor="start" x="5798.46" y="-3367" font-family="Arial" font-size="14.00">payment_plan </text>
<text text-anchor="start" x="5890.3" y="-3367" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5791.46,-3324 5791.46,-3354.8 6077.79,-3354.8 6077.79,-3324 5791.46,-3324"/>
<text text-anchor="start" x="5798.46" y="-3336.2" font-family="Arial" font-size="14.00">match_duration_in_seconds </text>
<text text-anchor="start" x="5977.46" y="-3336.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5791.46,-3293.2 5791.46,-3324 6077.79,-3324 6077.79,-3293.2 5791.46,-3293.2"/>
<text text-anchor="start" x="5798.46" y="-3305.4" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="5828.81" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5791.46,-3262.4 5791.46,-3293.2 6077.79,-3293.2 6077.79,-3262.4 5791.46,-3262.4"/>
<text text-anchor="start" x="5798.46" y="-3274.6" font-family="Arial" font-size="14.00">weekday </text>
<text text-anchor="start" x="5857.6" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5791.46,-3231.6 5791.46,-3262.4 6077.79,-3262.4 6077.79,-3231.6 5791.46,-3231.6"/>
<text text-anchor="start" x="5798.46" y="-3243.8" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="5829.59" y="-3243.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5791.46,-3200.8 5791.46,-3231.6 6077.79,-3231.6 6077.79,-3200.8 5791.46,-3200.8"/>
<text text-anchor="start" x="5798.46" y="-3213" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="5856.03" y="-3213" font-family="Arial" font-size="14.00" fill="#666666">[time(0) without time zone]</text>
<polygon fill="none" stroke="black" points="5791.46,-3170 5791.46,-3200.8 6077.79,-3200.8 6077.79,-3170 5791.46,-3170"/>
<text text-anchor="start" x="5798.46" y="-3182.2" font-family="Arial" font-size="14.00">discount_percentage </text>
<text text-anchor="start" x="5932.33" y="-3182.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5791.46,-3139.2 5791.46,-3170 6077.79,-3170 6077.79,-3139.2 5791.46,-3139.2"/>
<text text-anchor="start" x="5798.46" y="-3151.4" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="5846.71" y="-3151.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5791.46,-3108.4 5791.46,-3139.2 6077.79,-3139.2 6077.79,-3108.4 5791.46,-3108.4"/>
<text text-anchor="start" x="5798.46" y="-3120.6" font-family="Arial" font-size="14.00">discount_id </text>
<text text-anchor="start" x="5873.17" y="-3120.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5791.46,-3077.6 5791.46,-3108.4 6077.79,-3108.4 6077.79,-3077.6 5791.46,-3077.6"/>
<text text-anchor="start" x="5798.46" y="-3089.8" font-family="Arial" font-size="14.00">activated_at </text>
<text text-anchor="start" x="5877.84" y="-3089.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5791.46,-3046.8 5791.46,-3077.6 6077.79,-3077.6 6077.79,-3046.8 5791.46,-3046.8"/>
<text text-anchor="start" x="5798.46" y="-3059" font-family="Arial" font-size="14.00">terminated_at </text>
<text text-anchor="start" x="5887.95" y="-3059" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.game&#45;&gt;public.match_series -->
<g id="edge29" class="edge">
<title>public.game:match_series_id&#45;&gt;public.match_series:id</title>
<path fill="none" stroke="black" d="M5963.84,-3897.29C5869.03,-3887.56 5914.44,-3739.59 5975.11,-3654.4 6003.16,-3615.01 6049.6,-3657.7 6077.79,-3618.4 6102.18,-3584.37 6120.65,-3524.2 6078.79,-3524.2"/>
<polygon fill="black" stroke="black" points="5963.78,-3897.29 5973.55,-3902.28 5969.11,-3897.55 5973.44,-3897.77 5973.44,-3897.77 5973.44,-3897.77 5969.11,-3897.55 5973.99,-3893.29 5963.78,-3897.29"/>
<text text-anchor="start" x="5668.7" y="-3907.8" font-family="Arial" font-size="10.00">FOREIGN KEY (match_series_id) REFERENCES match_series(id)</text>
</g>
<!-- public.split_payment -->
<g id="node51" class="node">
<title>public.split_payment</title>
<polygon fill="#efefef" stroke="none" points="7115.64,-3324 7115.64,-3359.6 7405.6,-3359.6 7405.6,-3324 7115.64,-3324"/>
<polygon fill="none" stroke="black" points="7115.64,-3324 7115.64,-3359.6 7405.6,-3359.6 7405.6,-3324 7115.64,-3324"/>
<text text-anchor="start" x="7122.64" y="-3337.4" font-family="Arial Bold" font-size="18.00">public.split_payment</text>
<text text-anchor="start" x="7274.12" y="-3337.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7305.23" y="-3337.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7115.64,-3293.2 7115.64,-3324 7405.6,-3324 7405.6,-3293.2 7115.64,-3293.2"/>
<text text-anchor="start" x="7122.64" y="-3305.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7137.42" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7115.64,-3262.4 7115.64,-3293.2 7405.6,-3293.2 7405.6,-3262.4 7115.64,-3262.4"/>
<text text-anchor="start" x="7122.64" y="-3274.6" font-family="Arial" font-size="14.00">is_split_payment_enabled </text>
<text text-anchor="start" x="7288.41" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.game&#45;&gt;public.split_payment -->
<g id="edge30" class="edge">
<title>public.game:split_payment_id&#45;&gt;public.split_payment:id</title>
<path fill="none" stroke="black" d="M6333.5,-3836.1C6512.31,-3832.7 6952.23,-3744.39 7063.62,-3618.4 7109.83,-3566.13 7044.86,-3308.6 7114.64,-3308.6"/>
<polygon fill="black" stroke="black" points="6333.47,-3836.1 6323.42,-3831.7 6328.13,-3836.15 6323.8,-3836.19 6323.8,-3836.19 6323.8,-3836.19 6328.13,-3836.15 6323.51,-3840.7 6333.47,-3836.1"/>
<text text-anchor="start" x="6330.13" y="-3846.2" font-family="Arial" font-size="10.00">FOREIGN KEY (split_payment_id) REFERENCES split_payment(id)</text>
</g>
<!-- public.group -->
<g id="node19" class="node">
<title>public.group</title>
<polygon fill="#efefef" stroke="none" points="603.63,-2596.2 603.63,-2631.8 833.61,-2631.8 833.61,-2596.2 603.63,-2596.2"/>
<polygon fill="none" stroke="black" points="603.63,-2596.2 603.63,-2631.8 833.61,-2631.8 833.61,-2596.2 603.63,-2596.2"/>
<text text-anchor="start" x="610.63" y="-2609.6" font-family="Arial Bold" font-size="18.00">public.group</text>
<text text-anchor="start" x="702.12" y="-2609.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="733.24" y="-2609.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="603.63,-2565.4 603.63,-2596.2 833.61,-2596.2 833.61,-2565.4 603.63,-2565.4"/>
<text text-anchor="start" x="610.63" y="-2577.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="625.42" y="-2577.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="603.63,-2534.6 603.63,-2565.4 833.61,-2565.4 833.61,-2534.6 603.63,-2534.6"/>
<text text-anchor="start" x="610.63" y="-2546.8" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="658.89" y="-2546.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="603.63,-2503.8 603.63,-2534.6 833.61,-2534.6 833.61,-2503.8 603.63,-2503.8"/>
<text text-anchor="start" x="610.63" y="-2516" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="649.54" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="603.63,-2473 603.63,-2503.8 833.61,-2503.8 833.61,-2473 603.63,-2473"/>
<text text-anchor="start" x="610.63" y="-2485.2" font-family="Arial" font-size="14.00">keycloak_id </text>
<text text-anchor="start" x="687.67" y="-2485.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="603.63,-2442.2 603.63,-2473 833.61,-2473 833.61,-2442.2 603.63,-2442.2"/>
<text text-anchor="start" x="610.63" y="-2454.4" font-family="Arial" font-size="14.00">role_id </text>
<text text-anchor="start" x="656.55" y="-2454.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.group&#45;&gt;public.club -->
<g id="edge31" class="edge">
<title>public.group:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M844.77,-2548.49C925.22,-2522.62 816.91,-2172.79 885.62,-2106.4 1015.37,-1981.01 2323.88,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="844.83,-2548.48 834.28,-2545.5 839.55,-2549.26 835.27,-2549.9 835.27,-2549.9 835.27,-2549.9 839.55,-2549.26 835.6,-2554.4 844.83,-2548.48"/>
<text text-anchor="start" x="841.61" y="-2560" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.role -->
<g id="node27" class="node">
<title>public.role</title>
<polygon fill="#efefef" stroke="none" points="610.64,-1622 610.64,-1657.6 826.6,-1657.6 826.6,-1622 610.64,-1622"/>
<polygon fill="none" stroke="black" points="610.64,-1622 610.64,-1657.6 826.6,-1657.6 826.6,-1622 610.64,-1622"/>
<text text-anchor="start" x="617.64" y="-1635.4" font-family="Arial Bold" font-size="18.00">public.role</text>
<text text-anchor="start" x="695.11" y="-1635.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="726.23" y="-1635.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="610.64,-1591.2 610.64,-1622 826.6,-1622 826.6,-1591.2 610.64,-1591.2"/>
<text text-anchor="start" x="617.64" y="-1603.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="632.42" y="-1603.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="610.64,-1560.4 610.64,-1591.2 826.6,-1591.2 826.6,-1560.4 610.64,-1560.4"/>
<text text-anchor="start" x="617.64" y="-1572.6" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="656.55" y="-1572.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="610.64,-1529.6 610.64,-1560.4 826.6,-1560.4 826.6,-1529.6 610.64,-1529.6"/>
<text text-anchor="start" x="617.64" y="-1541.8" font-family="Arial" font-size="14.00">keycloak_id </text>
<text text-anchor="start" x="694.68" y="-1541.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.group&#45;&gt;public.role -->
<g id="edge32" class="edge">
<title>public.group:role_id&#45;&gt;public.role:id</title>
<path fill="none" stroke="black" d="M718.74,-2430.77C727.51,-2058.61 1198.21,-1606.6 827.6,-1606.6"/>
<polygon fill="black" stroke="black" points="718.74,-2430.87 714.12,-2440.81 718.68,-2436.2 718.63,-2440.53 718.63,-2440.53 718.63,-2440.53 718.68,-2436.2 723.12,-2440.92 718.74,-2430.87"/>
<text text-anchor="start" x="498.8" y="-2425.2" font-family="Arial" font-size="10.00">FOREIGN KEY (role_id) REFERENCES role(id)</text>
</g>
<!-- public.liked_clubs -->
<g id="node21" class="node">
<title>public.liked_clubs</title>
<polygon fill="#efefef" stroke="none" points="3909.14,-2550 3909.14,-2585.6 4180.1,-2585.6 4180.1,-2550 3909.14,-2550"/>
<polygon fill="none" stroke="black" points="3909.14,-2550 3909.14,-2585.6 4180.1,-2585.6 4180.1,-2550 3909.14,-2550"/>
<text text-anchor="start" x="3916.14" y="-2563.4" font-family="Arial Bold" font-size="18.00">public.liked_clubs</text>
<text text-anchor="start" x="4048.61" y="-2563.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4079.73" y="-2563.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3909.14,-2519.2 3909.14,-2550 4180.1,-2550 4180.1,-2519.2 3909.14,-2519.2"/>
<text text-anchor="start" x="3916.14" y="-2531.4" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="3965.94" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3909.14,-2488.4 3909.14,-2519.2 4180.1,-2519.2 4180.1,-2488.4 3909.14,-2488.4"/>
<text text-anchor="start" x="3916.14" y="-2500.6" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="3964.39" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.liked_clubs&#45;&gt;public.club -->
<g id="edge33" class="edge">
<title>public.liked_clubs:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M3898.11,-2502.15C3827.07,-2476.81 3917.15,-2166.64 3856.62,-2106.4 3773.79,-2023.96 2929.79,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="3897.94,-2502.12 3907.08,-2508.19 3903.2,-2502.99 3907.48,-2503.69 3907.48,-2503.69 3907.48,-2503.69 3903.2,-2502.99 3908.54,-2499.31 3897.94,-2502.12"/>
<text text-anchor="start" x="3574.39" y="-2487.8" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.liked_clubs&#45;&gt;public.user -->
<g id="edge34" class="edge">
<title>public.liked_clubs:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M4191.04,-2533.22C4270.86,-2509.63 4194.08,-2190.25 4232.62,-2106.4 4241.68,-2086.68 4251.44,-2086.83 4265.62,-2070.4 4622.21,-1657.11 4554.45,-1366.94 5039.62,-1116.8 5243.68,-1011.6 6872.17,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="4191.34,-2533.18 4180.82,-2530.1 4186.06,-2533.91 4181.77,-2534.51 4181.77,-2534.51 4181.77,-2534.51 4186.06,-2533.91 4182.05,-2539.01 4191.34,-2533.18"/>
<text text-anchor="start" x="4013.07" y="-2518.6" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id) ON DELETE CASCADE</text>
</g>
<!-- public.match_coach&#45;&gt;public.coach -->
<g id="edge35" class="edge">
<title>public.match_coach:coach_id&#45;&gt;public.coach:id</title>
<path fill="none" stroke="black" d="M5354.99,-3354.62C5164.18,-3347.93 5208.63,-3150.87 5074.62,-3003.6 5059.39,-2986.86 5047.74,-2988.31 5038.62,-2967.6 5000.02,-2879.94 5053.43,-2186.31 5000.62,-2106.4 4787.02,-1783.24 4601.97,-1729.8 4214.59,-1729.8"/>
<polygon fill="black" stroke="black" points="5354.82,-3354.62 5364.74,-3359.29 5360.16,-3354.71 5364.49,-3354.79 5364.49,-3354.79 5364.49,-3354.79 5360.16,-3354.71 5364.9,-3350.29 5354.82,-3354.62"/>
<text text-anchor="start" x="5125.31" y="-3364.8" font-family="Arial" font-size="10.00">FOREIGN KEY (coach_id) REFERENCES coach(id)</text>
</g>
<!-- public.match_player&#45;&gt;public.game -->
<g id="edge36" class="edge">
<title>public.match_player:game_id&#45;&gt;public.game:id</title>
<path fill="none" stroke="black" d="M7178.68,-5087.32C7014.44,-5078.03 7133.15,-4839.19 6990.62,-4736.4 6868.05,-4648 6474.26,-4606.2 6323.13,-4606.2"/>
<polygon fill="black" stroke="black" points="7178.51,-5087.32 7188.38,-5092.09 7183.84,-5087.46 7188.17,-5087.58 7188.17,-5087.58 7188.17,-5087.58 7183.84,-5087.46 7188.63,-5083.09 7178.51,-5087.32"/>
<text text-anchor="start" x="6952.34" y="-5097.6" font-family="Arial" font-size="10.00">FOREIGN KEY (game_id) REFERENCES game(id)</text>
</g>
<!-- public.terms_of_service -->
<g id="node28" class="node">
<title>public.terms_of_service</title>
<polygon fill="#efefef" stroke="none" points="7609.65,-4175 7609.65,-4210.6 7921.59,-4210.6 7921.59,-4175 7609.65,-4175"/>
<polygon fill="none" stroke="black" points="7609.65,-4175 7609.65,-4210.6 7921.59,-4210.6 7921.59,-4175 7609.65,-4175"/>
<text text-anchor="start" x="7616.65" y="-4188.4" font-family="Arial Bold" font-size="18.00">public.terms_of_service</text>
<text text-anchor="start" x="7790.1" y="-4188.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7821.21" y="-4188.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7609.65,-4144.2 7609.65,-4175 7921.59,-4175 7921.59,-4144.2 7609.65,-4144.2"/>
<text text-anchor="start" x="7616.65" y="-4156.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7631.44" y="-4156.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.match_player&#45;&gt;public.terms_of_service -->
<g id="edge37" class="edge">
<title>public.match_player:terms_of_service_id&#45;&gt;public.terms_of_service:id</title>
<path fill="none" stroke="black" d="M7528.03,-4991.83C7604.88,-4934.33 7518.73,-4159.6 7608.65,-4159.6"/>
<polygon fill="black" stroke="black" points="7528.16,-4991.79 7517.23,-4990.84 7523.12,-4993.55 7519.03,-4994.98 7519.03,-4994.98 7519.03,-4994.98 7523.12,-4993.55 7520.2,-4999.34 7528.16,-4991.79"/>
<text text-anchor="start" x="7352.53" y="-4979.2" font-family="Arial" font-size="10.00">FOREIGN KEY (terms_of_service_id) REFERENCES terms_of_service(id)</text>
</g>
<!-- public.match_player&#45;&gt;public.user -->
<g id="edge38" class="edge">
<title>public.match_player:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M7519.82,-5108.51C7524.51,-5038.02 7525.94,-4586.27 7528.62,-3618.4 7530.16,-3062.49 7593.7,-1668.89 7528.62,-1116.8 7521.65,-1057.71 7556.99,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="7519.87,-5108.17 7514,-5117.43 7519.11,-5113.45 7518.5,-5117.74 7518.5,-5117.74 7518.5,-5117.74 7519.11,-5113.45 7522.9,-5118.71 7519.87,-5108.17"/>
<text text-anchor="start" x="7405.66" y="-5102.4" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.discount -->
<g id="node40" class="node">
<title>public.discount</title>
<polygon fill="#efefef" stroke="none" points="6471.08,-2781 6471.08,-2816.6 6874.16,-2816.6 6874.16,-2781 6471.08,-2781"/>
<polygon fill="none" stroke="black" points="6471.08,-2781 6471.08,-2816.6 6874.16,-2816.6 6874.16,-2781 6471.08,-2781"/>
<text text-anchor="start" x="6555.13" y="-2794.4" font-family="Arial Bold" font-size="18.00">public.discount</text>
<text text-anchor="start" x="6665.62" y="-2794.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6696.74" y="-2794.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6471.08,-2750.2 6471.08,-2781 6874.16,-2781 6874.16,-2750.2 6471.08,-2750.2"/>
<text text-anchor="start" x="6478.08" y="-2762.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6492.86" y="-2762.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6471.08,-2719.4 6471.08,-2750.2 6874.16,-2750.2 6874.16,-2719.4 6471.08,-2719.4"/>
<text text-anchor="start" x="6478.08" y="-2731.6" font-family="Arial" font-size="14.00">group_id </text>
<text text-anchor="start" x="6536.46" y="-2731.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6471.08,-2688.6 6471.08,-2719.4 6874.16,-2719.4 6874.16,-2688.6 6471.08,-2688.6"/>
<text text-anchor="start" x="6478.08" y="-2700.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6548.12" y="-2700.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6471.08,-2657.8 6471.08,-2688.6 6874.16,-2688.6 6874.16,-2657.8 6471.08,-2657.8"/>
<text text-anchor="start" x="6478.08" y="-2670" font-family="Arial" font-size="14.00">valid_from </text>
<text text-anchor="start" x="6546.54" y="-2670" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6471.08,-2627 6471.08,-2657.8 6874.16,-2657.8 6874.16,-2627 6471.08,-2627"/>
<text text-anchor="start" x="6478.08" y="-2639.2" font-family="Arial" font-size="14.00">valid_till </text>
<text text-anchor="start" x="6531.77" y="-2639.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6471.08,-2596.2 6471.08,-2627 6874.16,-2627 6874.16,-2596.2 6471.08,-2596.2"/>
<text text-anchor="start" x="6478.08" y="-2608.4" font-family="Arial" font-size="14.00">percentage </text>
<text text-anchor="start" x="6552.02" y="-2608.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="6471.08,-2565.4 6471.08,-2596.2 6874.16,-2596.2 6874.16,-2565.4 6471.08,-2565.4"/>
<text text-anchor="start" x="6478.08" y="-2577.6" font-family="Arial" font-size="14.00">is_enabled </text>
<text text-anchor="start" x="6549.69" y="-2577.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="6471.08,-2534.6 6471.08,-2565.4 6874.16,-2565.4 6874.16,-2534.6 6471.08,-2534.6"/>
<text text-anchor="start" x="6478.08" y="-2546.8" font-family="Arial" font-size="14.00">applicable_on_days </text>
<text text-anchor="start" x="6605.73" y="-2546.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="6471.08,-2503.8 6471.08,-2534.6 6874.16,-2534.6 6874.16,-2503.8 6471.08,-2503.8"/>
<text text-anchor="start" x="6478.08" y="-2516" font-family="Arial" font-size="14.00">applicable_from_time </text>
<text text-anchor="start" x="6615.03" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[time(0) without time zone]</text>
<polygon fill="none" stroke="black" points="6471.08,-2473 6471.08,-2503.8 6874.16,-2503.8 6874.16,-2473 6471.08,-2473"/>
<text text-anchor="start" x="6478.08" y="-2485.2" font-family="Arial" font-size="14.00">applicable_till_time </text>
<text text-anchor="start" x="6600.25" y="-2485.2" font-family="Arial" font-size="14.00" fill="#666666">[time(0) without time zone]</text>
<polygon fill="none" stroke="black" points="6471.08,-2442.2 6471.08,-2473 6874.16,-2473 6874.16,-2442.2 6471.08,-2442.2"/>
<text text-anchor="start" x="6478.08" y="-2454.4" font-family="Arial" font-size="14.00">applicable_on_sports </text>
<text text-anchor="start" x="6614.28" y="-2454.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="6471.08,-2411.4 6471.08,-2442.2 6874.16,-2442.2 6874.16,-2411.4 6471.08,-2411.4"/>
<text text-anchor="start" x="6478.08" y="-2423.6" font-family="Arial" font-size="14.00">applicable_on_locations </text>
<text text-anchor="start" x="6631.41" y="-2423.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="6471.08,-2380.6 6471.08,-2411.4 6874.16,-2411.4 6874.16,-2380.6 6471.08,-2380.6"/>
<text text-anchor="start" x="6478.08" y="-2392.8" font-family="Arial" font-size="14.00">max_playable_hours_in_validity_period </text>
<text text-anchor="start" x="6727.12" y="-2392.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="6471.08,-2349.8 6471.08,-2380.6 6874.16,-2380.6 6874.16,-2349.8 6471.08,-2349.8"/>
<text text-anchor="start" x="6478.08" y="-2362" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="6507.65" y="-2362" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6471.08,-2319 6471.08,-2349.8 6874.16,-2349.8 6874.16,-2319 6471.08,-2319"/>
<text text-anchor="start" x="6478.08" y="-2331.2" font-family="Arial" font-size="14.00">played_hours_in_validity_period </text>
<text text-anchor="start" x="6681.99" y="-2331.2" font-family="Arial" font-size="14.00" fill="#666666">[double precision]</text>
<polygon fill="none" stroke="black" points="6471.08,-2288.2 6471.08,-2319 6874.16,-2319 6874.16,-2288.2 6471.08,-2288.2"/>
<text text-anchor="start" x="6478.08" y="-2300.4" font-family="Arial" font-size="14.00">played_hours_last_computed_at </text>
<text text-anchor="start" x="6684.33" y="-2300.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6471.08,-2257.4 6471.08,-2288.2 6874.16,-2288.2 6874.16,-2257.4 6471.08,-2257.4"/>
<text text-anchor="start" x="6478.08" y="-2269.6" font-family="Arial" font-size="14.00">origin </text>
<text text-anchor="start" x="6516.21" y="-2269.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.match_player&#45;&gt;public.discount -->
<g id="edge39" class="edge">
<title>public.match_player:discount_id&#45;&gt;public.discount:id</title>
<path fill="none" stroke="black" d="M7521.18,-4831.41C7538.14,-4688.18 7474.61,-3021.17 7457.62,-3003.6 7375.24,-2918.43 7016.49,-3043.64 6925.62,-2967.6 6854.65,-2908.21 6967.7,-2765.6 6875.16,-2765.6"/>
<polygon fill="black" stroke="black" points="7521.23,-4831.26 7514.17,-4839.65 7519.77,-4836.39 7518.59,-4840.56 7518.59,-4840.56 7518.59,-4840.56 7519.77,-4836.39 7522.82,-4842.11 7521.23,-4831.26"/>
<text text-anchor="start" x="7391.42" y="-4825.2" font-family="Arial" font-size="10.00">FOREIGN KEY (discount_id) REFERENCES discount(id)</text>
</g>
<!-- public.payment -->
<g id="node24" class="node">
<title>public.payment</title>
<polygon fill="#efefef" stroke="none" points="8377.57,-6420 8377.57,-6455.6 8643.67,-6455.6 8643.67,-6420 8377.57,-6420"/>
<polygon fill="none" stroke="black" points="8377.57,-6420 8377.57,-6455.6 8643.67,-6455.6 8643.67,-6420 8377.57,-6420"/>
<text text-anchor="start" x="8392.64" y="-6433.4" font-family="Arial Bold" font-size="18.00">public.payment</text>
<text text-anchor="start" x="8504.11" y="-6433.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8535.23" y="-6433.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8377.57,-6389.2 8377.57,-6420 8643.67,-6420 8643.67,-6389.2 8377.57,-6389.2"/>
<text text-anchor="start" x="8384.57" y="-6401.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8399.35" y="-6401.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8377.57,-6358.4 8377.57,-6389.2 8643.67,-6389.2 8643.67,-6358.4 8377.57,-6358.4"/>
<text text-anchor="start" x="8384.57" y="-6370.6" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="8425.81" y="-6370.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8377.57,-6327.6 8377.57,-6358.4 8643.67,-6358.4 8643.67,-6327.6 8377.57,-6327.6"/>
<text text-anchor="start" x="8384.57" y="-6339.8" font-family="Arial" font-size="14.00">total_amount </text>
<text text-anchor="start" x="8469.4" y="-6339.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8377.57,-6296.8 8377.57,-6327.6 8643.67,-6327.6 8643.67,-6296.8 8377.57,-6296.8"/>
<text text-anchor="start" x="8384.57" y="-6309" font-family="Arial" font-size="14.00">total_currency </text>
<text text-anchor="start" x="8476.39" y="-6309" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="8377.57,-6266 8377.57,-6296.8 8643.67,-6296.8 8643.67,-6266 8377.57,-6266"/>
<text text-anchor="start" x="8384.57" y="-6278.2" font-family="Arial" font-size="14.00">stripe_client_secret </text>
<text text-anchor="start" x="8509.07" y="-6278.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8377.57,-6235.2 8377.57,-6266 8643.67,-6266 8643.67,-6235.2 8377.57,-6235.2"/>
<text text-anchor="start" x="8384.57" y="-6247.4" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="8432.82" y="-6247.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="8377.57,-6204.4 8377.57,-6235.2 8643.67,-6235.2 8643.67,-6204.4 8377.57,-6204.4"/>
<text text-anchor="start" x="8384.57" y="-6216.6" font-family="Arial" font-size="14.00">paid_at </text>
<text text-anchor="start" x="8434.39" y="-6216.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8377.57,-6173.6 8377.57,-6204.4 8643.67,-6204.4 8643.67,-6173.6 8377.57,-6173.6"/>
<text text-anchor="start" x="8384.57" y="-6185.8" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="8456.95" y="-6185.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8377.57,-6142.8 8377.57,-6173.6 8643.67,-6173.6 8643.67,-6142.8 8377.57,-6142.8"/>
<text text-anchor="start" x="8384.57" y="-6155" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="8544.89" y="-6155" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8377.57,-6112 8377.57,-6142.8 8643.67,-6142.8 8643.67,-6112 8377.57,-6112"/>
<text text-anchor="start" x="8384.57" y="-6124.2" font-family="Arial" font-size="14.00">payment_source </text>
<text text-anchor="start" x="8491.96" y="-6124.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8377.57,-6081.2 8377.57,-6112 8643.67,-6112 8643.67,-6081.2 8377.57,-6081.2"/>
<text text-anchor="start" x="8384.57" y="-6093.4" font-family="Arial" font-size="14.00">expired_at </text>
<text text-anchor="start" x="8453.84" y="-6093.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8377.57,-6050.4 8377.57,-6081.2 8643.67,-6081.2 8643.67,-6050.4 8377.57,-6050.4"/>
<text text-anchor="start" x="8384.57" y="-6062.6" font-family="Arial" font-size="14.00">voucher_redemption_id </text>
<text text-anchor="start" x="8534.77" y="-6062.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8377.57,-6019.6 8377.57,-6050.4 8643.67,-6050.4 8643.67,-6019.6 8377.57,-6019.6"/>
<text text-anchor="start" x="8384.57" y="-6031.8" font-family="Arial" font-size="14.00">cart_id </text>
<text text-anchor="start" x="8430.48" y="-6031.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.payment&#45;&gt;public.cart -->
<g id="edge40" class="edge">
<title>public.payment:cart_id&#45;&gt;public.cart:id</title>
<path fill="none" stroke="black" d="M8366.52,-6034.96C8215.89,-6033.65 8150.97,-6001.85 8057.62,-5878.8 8019.51,-5828.57 8069.15,-5599.8 8006.1,-5599.8"/>
<polygon fill="black" stroke="black" points="8366.23,-6034.96 8376.22,-6039.5 8371.57,-6034.98 8375.9,-6035 8375.9,-6035 8375.9,-6035 8371.57,-6034.98 8376.25,-6030.5 8366.23,-6034.96"/>
<text text-anchor="start" x="8156.76" y="-6045" font-family="Arial" font-size="10.00">FOREIGN KEY (cart_id) REFERENCES cart(id)</text>
</g>
<!-- public.voucher -->
<g id="node31" class="node">
<title>public.voucher</title>
<polygon fill="#efefef" stroke="none" points="8103.4,-1868.4 8103.4,-1904 8371.84,-1904 8371.84,-1868.4 8103.4,-1868.4"/>
<polygon fill="none" stroke="black" points="8103.4,-1868.4 8103.4,-1904 8371.84,-1904 8371.84,-1868.4 8103.4,-1868.4"/>
<text text-anchor="start" x="8121.64" y="-1881.8" font-family="Arial Bold" font-size="18.00">public.voucher</text>
<text text-anchor="start" x="8229.11" y="-1881.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8260.22" y="-1881.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8103.4,-1837.6 8103.4,-1868.4 8371.84,-1868.4 8371.84,-1837.6 8103.4,-1837.6"/>
<text text-anchor="start" x="8110.4" y="-1849.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8125.19" y="-1849.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8103.4,-1806.8 8103.4,-1837.6 8371.84,-1837.6 8371.84,-1806.8 8103.4,-1806.8"/>
<text text-anchor="start" x="8110.4" y="-1819" font-family="Arial" font-size="14.00">code </text>
<text text-anchor="start" x="8144.65" y="-1819" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8103.4,-1776 8103.4,-1806.8 8371.84,-1806.8 8371.84,-1776 8103.4,-1776"/>
<text text-anchor="start" x="8110.4" y="-1788.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="8171.1" y="-1788.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8103.4,-1745.2 8103.4,-1776 8371.84,-1776 8371.84,-1745.2 8103.4,-1745.2"/>
<text text-anchor="start" x="8110.4" y="-1757.4" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="8215.47" y="-1757.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8103.4,-1714.4 8103.4,-1745.2 8371.84,-1745.2 8371.84,-1714.4 8103.4,-1714.4"/>
<text text-anchor="start" x="8110.4" y="-1726.6" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="8222.45" y="-1726.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="8103.4,-1683.6 8103.4,-1714.4 8371.84,-1714.4 8371.84,-1683.6 8103.4,-1683.6"/>
<text text-anchor="start" x="8110.4" y="-1695.8" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="8136.08" y="-1695.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8103.4,-1652.8 8103.4,-1683.6 8371.84,-1683.6 8371.84,-1652.8 8103.4,-1652.8"/>
<text text-anchor="start" x="8110.4" y="-1665" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="8140.75" y="-1665" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8103.4,-1622 8103.4,-1652.8 8371.84,-1652.8 8371.84,-1622 8103.4,-1622"/>
<text text-anchor="start" x="8110.4" y="-1634.2" font-family="Arial" font-size="14.00">percentage </text>
<text text-anchor="start" x="8184.34" y="-1634.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="8103.4,-1591.2 8103.4,-1622 8371.84,-1622 8371.84,-1591.2 8103.4,-1591.2"/>
<text text-anchor="start" x="8110.4" y="-1603.4" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="8202.24" y="-1603.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8103.4,-1560.4 8103.4,-1591.2 8371.84,-1591.2 8371.84,-1560.4 8103.4,-1560.4"/>
<text text-anchor="start" x="8110.4" y="-1572.6" font-family="Arial" font-size="14.00">expires_at </text>
<text text-anchor="start" x="8178.88" y="-1572.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8103.4,-1529.6 8103.4,-1560.4 8371.84,-1560.4 8371.84,-1529.6 8103.4,-1529.6"/>
<text text-anchor="start" x="8110.4" y="-1541.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="8180.45" y="-1541.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8103.4,-1498.8 8103.4,-1529.6 8371.84,-1529.6 8371.84,-1498.8 8103.4,-1498.8"/>
<text text-anchor="start" x="8110.4" y="-1511" font-family="Arial" font-size="14.00">blocked_by_id </text>
<text text-anchor="start" x="8203.8" y="-1511" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8103.4,-1468 8103.4,-1498.8 8371.84,-1498.8 8371.84,-1468 8103.4,-1468"/>
<text text-anchor="start" x="8110.4" y="-1480.2" font-family="Arial" font-size="14.00">blocked_at </text>
<text text-anchor="start" x="8182.01" y="-1480.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8103.4,-1437.2 8103.4,-1468 8371.84,-1468 8371.84,-1437.2 8103.4,-1437.2"/>
<text text-anchor="start" x="8110.4" y="-1449.4" font-family="Arial" font-size="14.00">allowed_redemptions </text>
<text text-anchor="start" x="8246.59" y="-1449.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="8103.4,-1406.4 8103.4,-1437.2 8371.84,-1437.2 8371.84,-1406.4 8103.4,-1406.4"/>
<text text-anchor="start" x="8110.4" y="-1418.6" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="8141.54" y="-1418.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="8103.4,-1375.6 8103.4,-1406.4 8371.84,-1406.4 8371.84,-1375.6 8103.4,-1375.6"/>
<text text-anchor="start" x="8110.4" y="-1387.8" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="8151.64" y="-1387.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8103.4,-1344.8 8103.4,-1375.6 8371.84,-1375.6 8371.84,-1344.8 8103.4,-1344.8"/>
<text text-anchor="start" x="8110.4" y="-1357" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="8139.97" y="-1357" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8103.4,-1314 8103.4,-1344.8 8371.84,-1344.8 8371.84,-1314 8103.4,-1314"/>
<text text-anchor="start" x="8110.4" y="-1326.2" font-family="Arial" font-size="14.00">max_redemptions_per_user </text>
<text text-anchor="start" x="8288.61" y="-1326.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="8103.4,-1283.2 8103.4,-1314 8371.84,-1314 8371.84,-1283.2 8103.4,-1283.2"/>
<text text-anchor="start" x="8110.4" y="-1295.4" font-family="Arial" font-size="14.00">original_kind </text>
<text text-anchor="start" x="8192.9" y="-1295.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.payment&#45;&gt;public.voucher -->
<g id="edge41" class="edge">
<title>public.payment:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M8654.92,-6188.47C8732.34,-6179.79 8650.02,-6066.98 8643.67,-5976.4 8613.01,-5538.89 8510.62,-5437.18 8510.62,-4998.6 8510.62,-4998.6 8510.62,-4998.6 8510.62,-3310 8510.62,-3176.23 8549.75,-2221.52 8481.62,-2106.4 8465.39,-2078.98 8438.35,-2096.18 8419.62,-2070.4 8361.53,-1990.44 8471.67,-1853 8372.84,-1853"/>
<polygon fill="black" stroke="black" points="8654.99,-6188.46 8644.77,-6184.49 8649.66,-6188.74 8645.34,-6188.97 8645.34,-6188.97 8645.34,-6188.97 8649.66,-6188.74 8645.24,-6193.48 8654.99,-6188.46"/>
<text text-anchor="start" x="8519.36" y="-6173" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.voucher_redemption -->
<g id="node32" class="node">
<title>public.voucher_redemption</title>
<polygon fill="#efefef" stroke="none" points="8582.16,-2611.6 8582.16,-2647.2 8919.08,-2647.2 8919.08,-2611.6 8582.16,-2611.6"/>
<polygon fill="none" stroke="black" points="8582.16,-2611.6 8582.16,-2647.2 8919.08,-2647.2 8919.08,-2611.6 8582.16,-2611.6"/>
<text text-anchor="start" x="8589.16" y="-2625" font-family="Arial Bold" font-size="18.00">public.voucher_redemption</text>
<text text-anchor="start" x="8787.6" y="-2625" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8818.71" y="-2625" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8582.16,-2580.8 8582.16,-2611.6 8919.08,-2611.6 8919.08,-2580.8 8582.16,-2580.8"/>
<text text-anchor="start" x="8589.16" y="-2593" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8603.94" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8582.16,-2550 8582.16,-2580.8 8919.08,-2580.8 8919.08,-2550 8582.16,-2550"/>
<text text-anchor="start" x="8589.16" y="-2562.2" font-family="Arial" font-size="14.00">redeemed_by_id </text>
<text text-anchor="start" x="8697.34" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8582.16,-2519.2 8582.16,-2550 8919.08,-2550 8919.08,-2519.2 8582.16,-2519.2"/>
<text text-anchor="start" x="8589.16" y="-2531.4" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="8661.53" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8582.16,-2488.4 8582.16,-2519.2 8919.08,-2519.2 8919.08,-2488.4 8582.16,-2488.4"/>
<text text-anchor="start" x="8589.16" y="-2500.6" font-family="Arial" font-size="14.00">redeemed_at </text>
<text text-anchor="start" x="8675.55" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8582.16,-2457.6 8582.16,-2488.4 8919.08,-2488.4 8919.08,-2457.6 8582.16,-2457.6"/>
<text text-anchor="start" x="8589.16" y="-2469.8" font-family="Arial" font-size="14.00">redeemed_amount_amount </text>
<text text-anchor="start" x="8765.05" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8582.16,-2426.8 8582.16,-2457.6 8919.08,-2457.6 8919.08,-2426.8 8582.16,-2426.8"/>
<text text-anchor="start" x="8589.16" y="-2439" font-family="Arial" font-size="14.00">redeemed_amount_currency </text>
<text text-anchor="start" x="8772.04" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.payment&#45;&gt;public.voucher_redemption -->
<g id="edge42" class="edge">
<title>public.payment:voucher_redemption_id&#45;&gt;public.voucher_redemption:id</title>
<path fill="none" stroke="black" d="M8654.5,-6063.4C8756.69,-6010.93 8649.62,-5113.71 8649.62,-4998.6 8649.62,-4998.6 8649.62,-4998.6 8649.62,-4176.4 8649.62,-4088.53 8493.28,-2596.2 8581.16,-2596.2"/>
<polygon fill="black" stroke="black" points="8654.71,-6063.35 8643.93,-6061.35 8649.53,-6064.62 8645.32,-6065.64 8645.32,-6065.64 8645.32,-6065.64 8649.53,-6064.62 8646.06,-6070.09 8654.71,-6063.35"/>
<text text-anchor="start" x="8651.67" y="-6075.8" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_redemption_id) REFERENCES voucher_redemption(id)</text>
</g>
<!-- public.payment_intent -->
<g id="node25" class="node">
<title>public.payment_intent</title>
<polygon fill="#efefef" stroke="none" points="5466.64,-5072.2 5466.64,-5107.8 5766.6,-5107.8 5766.6,-5072.2 5466.64,-5072.2"/>
<polygon fill="none" stroke="black" points="5466.64,-5072.2 5466.64,-5107.8 5766.6,-5107.8 5766.6,-5072.2 5466.64,-5072.2"/>
<text text-anchor="start" x="5473.64" y="-5085.6" font-family="Arial Bold" font-size="18.00">public.payment_intent</text>
<text text-anchor="start" x="5635.11" y="-5085.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5666.22" y="-5085.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5466.64,-5041.4 5466.64,-5072.2 5766.6,-5072.2 5766.6,-5041.4 5466.64,-5041.4"/>
<text text-anchor="start" x="5473.64" y="-5053.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5488.43" y="-5053.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5466.64,-5010.6 5466.64,-5041.4 5766.6,-5041.4 5766.6,-5010.6 5466.64,-5010.6"/>
<text text-anchor="start" x="5473.64" y="-5022.8" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="5523.45" y="-5022.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5466.64,-4979.8 5466.64,-5010.6 5766.6,-5010.6 5766.6,-4979.8 5466.64,-4979.8"/>
<text text-anchor="start" x="5473.64" y="-4992" font-family="Arial" font-size="14.00">match_id </text>
<text text-anchor="start" x="5534.34" y="-4992" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5466.64,-4949 5466.64,-4979.8 5766.6,-4979.8 5766.6,-4949 5466.64,-4949"/>
<text text-anchor="start" x="5473.64" y="-4961.2" font-family="Arial" font-size="14.00">total_in_cents </text>
<text text-anchor="start" x="5563.93" y="-4961.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5466.64,-4918.2 5466.64,-4949 5766.6,-4949 5766.6,-4918.2 5466.64,-4918.2"/>
<text text-anchor="start" x="5473.64" y="-4930.4" font-family="Arial" font-size="14.00">currency </text>
<text text-anchor="start" x="5531.22" y="-4930.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5466.64,-4887.4 5466.64,-4918.2 5766.6,-4918.2 5766.6,-4887.4 5466.64,-4887.4"/>
<text text-anchor="start" x="5473.64" y="-4899.6" font-family="Arial" font-size="14.00">stripe_client_secret </text>
<text text-anchor="start" x="5598.15" y="-4899.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.payment_intent&#45;&gt;public.game -->
<g id="edge43" class="edge">
<title>public.payment_intent:match_id&#45;&gt;public.game:id</title>
<path fill="none" stroke="black" d="M5777.84,-4994.82C5956.78,-4981.27 5781.9,-4606.2 5974.11,-4606.2"/>
<polygon fill="black" stroke="black" points="5777.92,-4994.82 5767.77,-4990.69 5772.59,-4995.02 5768.27,-4995.18 5768.27,-4995.18 5768.27,-4995.18 5772.59,-4995.02 5768.1,-4999.68 5777.92,-4994.82"/>
<text text-anchor="start" x="5774.6" y="-5005.2" font-family="Arial" font-size="10.00">FOREIGN KEY (match_id) REFERENCES game(id) ON DELETE RESTRICT</text>
</g>
<!-- public.payment_intent&#45;&gt;public.user -->
<g id="edge44" class="edge">
<title>public.payment_intent:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M5456.39,-5021.72C5346.69,-4921.23 5237.67,-3082.6 5313.62,-3003.6 5384.14,-2930.25 6157.45,-3040.31 6228.62,-2967.6 6300.55,-2894.1 6194.01,-1194.29 6261.62,-1116.8 6323.72,-1045.62 7007.29,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="5456.26,-5021.66 5463.45,-5029.94 5461.11,-5023.9 5465.04,-5025.72 5465.04,-5025.72 5465.04,-5025.72 5461.11,-5023.9 5467.23,-5021.78 5456.26,-5021.66"/>
<text text-anchor="start" x="5120.93" y="-5036" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id) ON DELETE RESTRICT</text>
</g>
<!-- public.player_equipment -->
<g id="node26" class="node">
<title>public.player_equipment</title>
<polygon fill="#efefef" stroke="none" points="5961.65,-5676.8 5961.65,-5712.4 6279.59,-5712.4 6279.59,-5676.8 5961.65,-5676.8"/>
<polygon fill="none" stroke="black" points="5961.65,-5676.8 5961.65,-5712.4 6279.59,-5712.4 6279.59,-5676.8 5961.65,-5676.8"/>
<text text-anchor="start" x="5968.65" y="-5690.2" font-family="Arial Bold" font-size="18.00">public.player_equipment</text>
<text text-anchor="start" x="6148.1" y="-5690.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6179.22" y="-5690.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5961.65,-5646 5961.65,-5676.8 6279.59,-5676.8 6279.59,-5646 5961.65,-5646"/>
<text text-anchor="start" x="5968.65" y="-5658.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5983.44" y="-5658.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5961.65,-5615.2 5961.65,-5646 6279.59,-5646 6279.59,-5615.2 5961.65,-5615.2"/>
<text text-anchor="start" x="5968.65" y="-5627.4" font-family="Arial" font-size="14.00">equipment_id </text>
<text text-anchor="start" x="6056.6" y="-5627.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5961.65,-5584.4 5961.65,-5615.2 6279.59,-5615.2 6279.59,-5584.4 5961.65,-5584.4"/>
<text text-anchor="start" x="5968.65" y="-5596.6" font-family="Arial" font-size="14.00">player_id </text>
<text text-anchor="start" x="6029.36" y="-5596.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5961.65,-5553.6 5961.65,-5584.4 6279.59,-5584.4 6279.59,-5553.6 5961.65,-5553.6"/>
<text text-anchor="start" x="5968.65" y="-5565.8" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="5999" y="-5565.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5961.65,-5522.8 5961.65,-5553.6 6279.59,-5553.6 6279.59,-5522.8 5961.65,-5522.8"/>
<text text-anchor="start" x="5968.65" y="-5535" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="6007.56" y="-5535" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5961.65,-5492 5961.65,-5522.8 6279.59,-5522.8 6279.59,-5492 5961.65,-5492"/>
<text text-anchor="start" x="5968.65" y="-5504.2" font-family="Arial" font-size="14.00">rental_fee_amount </text>
<text text-anchor="start" x="6089.29" y="-5504.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="5961.65,-5461.2 5961.65,-5492 6279.59,-5492 6279.59,-5461.2 5961.65,-5461.2"/>
<text text-anchor="start" x="5968.65" y="-5473.4" font-family="Arial" font-size="14.00">rental_fee_currency </text>
<text text-anchor="start" x="6096.28" y="-5473.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.player_equipment&#45;&gt;public.equipment -->
<g id="edge45" class="edge">
<title>public.player_equipment:equipment_id&#45;&gt;public.equipment:id</title>
<path fill="none" stroke="black" d="M5950.42,-5630.55C5665.04,-5627.53 5579.47,-5497.58 5414.62,-5258.8 5254.03,-5026.2 5188.79,-4291.12 4996.62,-2967.6 4990.64,-2926.44 4991.2,-2596.2 4949.6,-2596.2"/>
<polygon fill="black" stroke="black" points="5950.32,-5630.55 5960.29,-5635.1 5955.65,-5630.57 5959.98,-5630.6 5959.98,-5630.6 5959.98,-5630.6 5955.65,-5630.57 5960.34,-5626.1 5950.32,-5630.55"/>
<text text-anchor="start" x="5680.78" y="-5640.6" font-family="Arial" font-size="10.00">FOREIGN KEY (equipment_id) REFERENCES equipment(id)</text>
</g>
<!-- public.player_equipment&#45;&gt;public.match_player -->
<g id="edge46" class="edge">
<title>public.player_equipment:player_id&#45;&gt;public.match_player:id</title>
<path fill="none" stroke="black" d="M6291.01,-5599.75C6631.67,-5596.19 6682.64,-5417.74 6990.62,-5258.8 7080.08,-5212.64 7088.17,-5149.2 7188.84,-5149.2"/>
<polygon fill="black" stroke="black" points="6290.92,-5599.75 6280.9,-5595.3 6285.59,-5599.77 6281.26,-5599.8 6281.26,-5599.8 6281.26,-5599.8 6285.59,-5599.77 6280.95,-5604.3 6290.92,-5599.75"/>
<text text-anchor="start" x="6287.59" y="-5609.8" font-family="Arial" font-size="10.00">FOREIGN KEY (player_id) REFERENCES match_player(id)</text>
</g>
<!-- public.training_schedule -->
<g id="node29" class="node">
<title>public.training_schedule</title>
<polygon fill="#efefef" stroke="none" points="3114.65,-2611.6 3114.65,-2647.2 3430.59,-2647.2 3430.59,-2611.6 3114.65,-2611.6"/>
<polygon fill="none" stroke="black" points="3114.65,-2611.6 3114.65,-2647.2 3430.59,-2647.2 3430.59,-2611.6 3114.65,-2611.6"/>
<text text-anchor="start" x="3121.65" y="-2625" font-family="Arial Bold" font-size="18.00">public.training_schedule</text>
<text text-anchor="start" x="3299.1" y="-2625" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3330.22" y="-2625" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3114.65,-2580.8 3114.65,-2611.6 3430.59,-2611.6 3430.59,-2580.8 3114.65,-2580.8"/>
<text text-anchor="start" x="3121.65" y="-2593" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="3136.44" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3114.65,-2550 3114.65,-2580.8 3430.59,-2580.8 3430.59,-2550 3114.65,-2550"/>
<text text-anchor="start" x="3121.65" y="-2562.2" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="3169.9" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3114.65,-2519.2 3114.65,-2550 3430.59,-2550 3430.59,-2519.2 3114.65,-2519.2"/>
<text text-anchor="start" x="3121.65" y="-2531.4" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="3181.58" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3114.65,-2488.4 3114.65,-2519.2 3430.59,-2519.2 3430.59,-2488.4 3114.65,-2488.4"/>
<text text-anchor="start" x="3121.65" y="-2500.6" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="3204.93" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="3114.65,-2457.6 3114.65,-2488.4 3430.59,-2488.4 3430.59,-2457.6 3114.65,-2457.6"/>
<text text-anchor="start" x="3121.65" y="-2469.8" font-family="Arial" font-size="14.00">training_time_as_json </text>
<text text-anchor="start" x="3261.73" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="3114.65,-2426.8 3114.65,-2457.6 3430.59,-2457.6 3430.59,-2426.8 3114.65,-2426.8"/>
<text text-anchor="start" x="3121.65" y="-2439" font-family="Arial" font-size="14.00">is_visible </text>
<text text-anchor="start" x="3182.34" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.training_schedule&#45;&gt;public.club -->
<g id="edge47" class="edge">
<title>public.training_schedule:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M3103.34,-2563.97C3018.72,-2538.73 3118.51,-2188.02 3062.62,-2106.4 2991.9,-2003.13 2938.08,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="3103.41,-2563.98 3112.7,-2569.81 3108.7,-2564.71 3112.99,-2565.31 3112.99,-2565.31 3112.99,-2565.31 3108.7,-2564.71 3113.94,-2560.9 3103.41,-2563.98"/>
<text text-anchor="start" x="3063.11" y="-2549.4" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.training_schedule&#45;&gt;public.coach -->
<g id="edge48" class="edge">
<title>public.training_schedule:coach_id&#45;&gt;public.coach:id</title>
<path fill="none" stroke="black" d="M3441.5,-2533.21C3520.74,-2509.35 3436.62,-2186.39 3482.62,-2106.4 3621.33,-1865.23 3704.43,-1729.8 3982.65,-1729.8"/>
<polygon fill="black" stroke="black" points="3441.82,-2533.16 3431.29,-2530.1 3436.54,-2533.9 3432.25,-2534.51 3432.25,-2534.51 3432.25,-2534.51 3436.54,-2533.9 3432.55,-2539.01 3441.82,-2533.16"/>
<text text-anchor="start" x="3191.75" y="-2518.6" font-family="Arial" font-size="10.00">FOREIGN KEY (coach_id) REFERENCES coach(id)</text>
</g>
<!-- public.user&#45;&gt;public.email_address -->
<g id="edge49" class="edge">
<title>public.user:email_address_id&#45;&gt;public.email_address:id</title>
<path fill="none" stroke="black" d="M7507.81,-616.54C7676.81,-601.36 7663.26,-212.6 7486.98,-212.6"/>
<polygon fill="black" stroke="black" points="7507.82,-616.54 7497.63,-612.49 7502.49,-616.78 7498.16,-616.97 7498.16,-616.97 7498.16,-616.97 7502.49,-616.78 7498.02,-621.48 7507.82,-616.54"/>
<text text-anchor="start" x="7504.49" y="-627" font-family="Arial" font-size="10.00">FOREIGN KEY (email_address_id) REFERENCES email_address(id)</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge50" class="edge">
<title>public.voucher:blocked_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8092.33,-1512.57C8020.63,-1487.46 8104.2,-1180.03 8046.62,-1116.8 7962.17,-1024.08 7622.9,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8092.2,-1512.55 8101.35,-1518.59 8097.46,-1513.4 8101.74,-1514.09 8101.74,-1514.09 8101.74,-1514.09 8097.46,-1513.4 8102.79,-1509.7 8092.2,-1512.55"/>
<text text-anchor="start" x="7838.78" y="-1524.2" 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="edge51" class="edge">
<title>public.voucher:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8092.74,-1787.45C8033.35,-1734.73 8093.36,-1171.15 8046.62,-1116.8 7964.85,-1021.71 7622.9,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8092.83,-1787.49 8100.39,-1795.44 8097.77,-1789.51 8101.78,-1791.15 8101.78,-1791.15 8101.78,-1791.15 8097.77,-1789.51 8103.79,-1787.11 8092.83,-1787.49"/>
<text text-anchor="start" x="7862.14" y="-1801.4" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher&#45;&gt;public.user -->
<g id="edge52" class="edge">
<title>public.voucher:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8092.25,-1605.28C8001.03,-1579.88 8116.91,-1196.03 8046.62,-1116.8 7963.39,-1022.99 7622.9,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8092.15,-1605.26 8101.49,-1611.02 8097.44,-1605.95 8101.74,-1606.51 8101.74,-1606.51 8101.74,-1606.51 8097.44,-1605.95 8102.65,-1602.09 8092.15,-1605.26"/>
<text text-anchor="start" x="7839.9" y="-1616.6" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher_redemption&#45;&gt;public.user -->
<g id="edge53" class="edge">
<title>public.voucher_redemption:redeemed_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8571.06,-2564.04C8485.44,-2539.5 8579.55,-2188.95 8524.62,-2106.4 8506.76,-2079.55 8478.36,-2097.96 8461.62,-2070.4 8406.58,-1979.76 8494.77,-1195.43 8423.62,-1116.8 8353.9,-1039.75 7601.41,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8570.91,-2564.02 8580.22,-2569.82 8576.2,-2564.73 8580.49,-2565.31 8580.49,-2565.31 8580.49,-2565.31 8576.2,-2564.73 8581.42,-2560.9 8570.91,-2564.02"/>
<text text-anchor="start" x="8377.27" y="-2549.4" font-family="Arial" font-size="10.00">FOREIGN KEY (redeemed_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher_redemption&#45;&gt;public.voucher -->
<g id="edge54" class="edge">
<title>public.voucher_redemption:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M8571.26,-2533.17C8492.32,-2508.78 8582.13,-2178.75 8524.62,-2106.4 8496.26,-2070.73 8459.06,-2104.31 8428.62,-2070.4 8361.98,-1996.17 8472.59,-1853 8372.84,-1853"/>
<polygon fill="black" stroke="black" points="8570.93,-2533.13 8580.18,-2539.01 8576.21,-2533.89 8580.49,-2534.5 8580.49,-2534.5 8580.49,-2534.5 8576.21,-2533.89 8581.47,-2530.1 8570.93,-2533.13"/>
<text text-anchor="start" x="8455.84" y="-2518.6" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.service_term -->
<g id="node33" class="node">
<title>public.service_term</title>
<polygon fill="#efefef" stroke="none" points="7621.84,-5180 7621.84,-5215.6 7921.4,-5215.6 7921.4,-5180 7621.84,-5180"/>
<polygon fill="none" stroke="black" points="7621.84,-5180 7621.84,-5215.6 7921.4,-5215.6 7921.4,-5180 7621.84,-5180"/>
<text text-anchor="start" x="7638.15" y="-5193.4" font-family="Arial Bold" font-size="18.00">public.service_term</text>
<text text-anchor="start" x="7780.6" y="-5193.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7811.71" y="-5193.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7621.84,-5149.2 7621.84,-5180 7921.4,-5180 7921.4,-5149.2 7621.84,-5149.2"/>
<text text-anchor="start" x="7628.84" y="-5161.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7643.63" y="-5161.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7621.84,-5118.4 7621.84,-5149.2 7921.4,-5149.2 7921.4,-5118.4 7621.84,-5118.4"/>
<text text-anchor="start" x="7628.84" y="-5130.6" font-family="Arial" font-size="14.00">terms_of_service_id </text>
<text text-anchor="start" x="7758.01" y="-5130.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7621.84,-5087.6 7621.84,-5118.4 7921.4,-5118.4 7921.4,-5087.6 7621.84,-5087.6"/>
<text text-anchor="start" x="7628.84" y="-5099.8" font-family="Arial" font-size="14.00">action </text>
<text text-anchor="start" x="7670.09" y="-5099.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7621.84,-5056.8 7621.84,-5087.6 7921.4,-5087.6 7921.4,-5056.8 7621.84,-5056.8"/>
<text text-anchor="start" x="7628.84" y="-5069" font-family="Arial" font-size="14.00">applicable_phases </text>
<text text-anchor="start" x="7748.71" y="-5069" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7621.84,-5026 7621.84,-5056.8 7921.4,-5056.8 7921.4,-5026 7621.84,-5026"/>
<text text-anchor="start" x="7628.84" y="-5038.2" font-family="Arial" font-size="14.00">due_fee_amount </text>
<text text-anchor="start" x="7737.82" y="-5038.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="7621.84,-4995.2 7621.84,-5026 7921.4,-5026 7921.4,-4995.2 7621.84,-4995.2"/>
<text text-anchor="start" x="7628.84" y="-5007.4" font-family="Arial" font-size="14.00">due_fee_currency </text>
<text text-anchor="start" x="7744.81" y="-5007.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(3)]</text>
<polygon fill="none" stroke="black" points="7621.84,-4964.4 7621.84,-4995.2 7921.4,-4995.2 7921.4,-4964.4 7621.84,-4964.4"/>
<text text-anchor="start" x="7628.84" y="-4976.6" font-family="Arial" font-size="14.00">applicable_kinds </text>
<text text-anchor="start" x="7736.25" y="-4976.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7621.84,-4933.6 7621.84,-4964.4 7921.4,-4964.4 7921.4,-4933.6 7621.84,-4933.6"/>
<text text-anchor="start" x="7628.84" y="-4945.8" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="7659.19" y="-4945.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7621.84,-4902.8 7621.84,-4933.6 7921.4,-4933.6 7921.4,-4902.8 7621.84,-4902.8"/>
<text text-anchor="start" x="7628.84" y="-4915" font-family="Arial" font-size="14.00">applicable_from </text>
<text text-anchor="start" x="7731.56" y="-4915" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7621.84,-4872 7621.84,-4902.8 7921.4,-4902.8 7921.4,-4872 7621.84,-4872"/>
<text text-anchor="start" x="7628.84" y="-4884.2" font-family="Arial" font-size="14.00">applicable_till </text>
<text text-anchor="start" x="7716.79" y="-4884.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="7621.84,-4841.2 7621.84,-4872 7921.4,-4872 7921.4,-4841.2 7621.84,-4841.2"/>
<text text-anchor="start" x="7628.84" y="-4853.4" font-family="Arial" font-size="14.00">is_action_allowed </text>
<text text-anchor="start" x="7743.25" y="-4853.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="7621.84,-4810.4 7621.84,-4841.2 7921.4,-4841.2 7921.4,-4810.4 7621.84,-4810.4"/>
<text text-anchor="start" x="7628.84" y="-4822.6" font-family="Arial" font-size="14.00">applicable_roles </text>
<text text-anchor="start" x="7733.91" y="-4822.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="7621.84,-4779.6 7621.84,-4810.4 7921.4,-4810.4 7921.4,-4779.6 7621.84,-4779.6"/>
<text text-anchor="start" x="7628.84" y="-4791.8" font-family="Arial" font-size="14.00">legacy_type </text>
<text text-anchor="start" x="7707.45" y="-4791.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.service_term&#45;&gt;public.terms_of_service -->
<g id="edge55" class="edge">
<title>public.service_term:terms_of_service_id&#45;&gt;public.terms_of_service:id</title>
<path fill="none" stroke="black" d="M7610.74,-5132.26C7537.79,-5108.55 7598.51,-4817.81 7621.84,-4736.4 7661.67,-4597.44 8067.14,-4159.6 7922.59,-4159.6"/>
<polygon fill="black" stroke="black" points="7610.62,-5132.24 7619.83,-5138.2 7615.9,-5133.05 7620.18,-5133.7 7620.18,-5133.7 7620.18,-5133.7 7615.9,-5133.05 7621.19,-5129.3 7610.62,-5132.24"/>
<text text-anchor="start" x="7282.09" y="-5143.8" font-family="Arial" font-size="10.00">FOREIGN KEY (terms_of_service_id) REFERENCES terms_of_service(id)</text>
</g>
<!-- public.refund -->
<g id="node34" class="node">
<title>public.refund</title>
<polygon fill="#efefef" stroke="none" points="8109.65,-5800 8109.65,-5835.6 8439.6,-5835.6 8439.6,-5800 8109.65,-5800"/>
<polygon fill="none" stroke="black" points="8109.65,-5800 8109.65,-5835.6 8439.6,-5835.6 8439.6,-5800 8109.65,-5800"/>
<text text-anchor="start" x="8164.14" y="-5813.4" font-family="Arial Bold" font-size="18.00">public.refund</text>
<text text-anchor="start" x="8260.61" y="-5813.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8291.73" y="-5813.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8109.65,-5769.2 8109.65,-5800 8439.6,-5800 8439.6,-5769.2 8109.65,-5769.2"/>
<text text-anchor="start" x="8116.65" y="-5781.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8131.43" y="-5781.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8109.65,-5738.4 8109.65,-5769.2 8439.6,-5769.2 8439.6,-5738.4 8109.65,-5738.4"/>
<text text-anchor="start" x="8116.65" y="-5750.6" font-family="Arial" font-size="14.00">player_id </text>
<text text-anchor="start" x="8177.35" y="-5750.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8109.65,-5707.6 8109.65,-5738.4 8439.6,-5738.4 8439.6,-5707.6 8109.65,-5707.6"/>
<text text-anchor="start" x="8116.65" y="-5719.8" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="8157.89" y="-5719.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8109.65,-5676.8 8109.65,-5707.6 8439.6,-5707.6 8439.6,-5676.8 8109.65,-5676.8"/>
<text text-anchor="start" x="8116.65" y="-5689" font-family="Arial" font-size="14.00">refunded_at </text>
<text text-anchor="start" x="8195.27" y="-5689" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8109.65,-5646 8109.65,-5676.8 8439.6,-5676.8 8439.6,-5646 8109.65,-5646"/>
<text text-anchor="start" x="8116.65" y="-5658.2" font-family="Arial" font-size="14.00">stripe_refund_id </text>
<text text-anchor="start" x="8220.93" y="-5658.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8109.65,-5615.2 8109.65,-5646 8439.6,-5646 8439.6,-5615.2 8109.65,-5615.2"/>
<text text-anchor="start" x="8116.65" y="-5627.4" font-family="Arial" font-size="14.00">total_amount </text>
<text text-anchor="start" x="8201.48" y="-5627.4" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8109.65,-5584.4 8109.65,-5615.2 8439.6,-5615.2 8439.6,-5584.4 8109.65,-5584.4"/>
<text text-anchor="start" x="8116.65" y="-5596.6" font-family="Arial" font-size="14.00">total_currency </text>
<text text-anchor="start" x="8208.47" y="-5596.6" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="8109.65,-5553.6 8109.65,-5584.4 8439.6,-5584.4 8439.6,-5553.6 8109.65,-5553.6"/>
<text text-anchor="start" x="8116.65" y="-5565.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="8186.69" y="-5565.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8109.65,-5522.8 8109.65,-5553.6 8439.6,-5553.6 8439.6,-5522.8 8109.65,-5522.8"/>
<text text-anchor="start" x="8116.65" y="-5535" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="8189.02" y="-5535" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8109.65,-5492 8109.65,-5522.8 8439.6,-5522.8 8439.6,-5492 8109.65,-5492"/>
<text text-anchor="start" x="8116.65" y="-5504.2" font-family="Arial" font-size="14.00">refunded_amount_voucher_amount </text>
<text text-anchor="start" x="8342.36" y="-5504.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8109.65,-5461.2 8109.65,-5492 8439.6,-5492 8439.6,-5461.2 8109.65,-5461.2"/>
<text text-anchor="start" x="8116.65" y="-5473.4" font-family="Arial" font-size="14.00">refunded_amount_voucher_currency </text>
<text text-anchor="start" x="8349.35" y="-5473.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="8109.65,-5430.4 8109.65,-5461.2 8439.6,-5461.2 8439.6,-5430.4 8109.65,-5430.4"/>
<text text-anchor="start" x="8116.65" y="-5442.6" font-family="Arial" font-size="14.00">refunded_amount_online_amount </text>
<text text-anchor="start" x="8329.92" y="-5442.6" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8109.65,-5399.6 8109.65,-5430.4 8439.6,-5430.4 8439.6,-5399.6 8109.65,-5399.6"/>
<text text-anchor="start" x="8116.65" y="-5411.8" font-family="Arial" font-size="14.00">refunded_amount_online_currency </text>
<text text-anchor="start" x="8336.91" y="-5411.8" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="8109.65,-5368.8 8109.65,-5399.6 8439.6,-5399.6 8439.6,-5368.8 8109.65,-5368.8"/>
<text text-anchor="start" x="8116.65" y="-5381" font-family="Arial" font-size="14.00">strategy </text>
<text text-anchor="start" x="8170.33" y="-5381" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8109.65,-5338 8109.65,-5368.8 8439.6,-5368.8 8439.6,-5338 8109.65,-5338"/>
<text text-anchor="start" x="8116.65" y="-5350.2" font-family="Arial" font-size="14.00">event_registration_id </text>
<text text-anchor="start" x="8250.51" y="-5350.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.refund&#45;&gt;public.match_player -->
<g id="edge56" class="edge">
<title>public.refund:player_id&#45;&gt;public.match_player:id</title>
<path fill="none" stroke="black" d="M8098.39,-5752.31C8014.83,-5726.19 8128.85,-5363.44 8057.62,-5294.8 7979.32,-5219.35 7659.14,-5320.52 7569.62,-5258.8 7525.35,-5228.28 7572.17,-5149.2 7518.4,-5149.2"/>
<polygon fill="black" stroke="black" points="8098.42,-5752.32 8107.67,-5758.21 8103.7,-5753.08 8107.98,-5753.7 8107.98,-5753.7 8107.98,-5753.7 8103.7,-5753.08 8108.96,-5749.3 8098.42,-5752.32"/>
<text text-anchor="start" x="7834.91" y="-5763.8" font-family="Arial" font-size="10.00">FOREIGN KEY (player_id) REFERENCES match_player(id)</text>
</g>
<!-- public.refund&#45;&gt;public.voucher -->
<g id="edge57" class="edge">
<title>public.refund:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M8445.97,-5529.58C8466.49,-5460.12 8472.62,-4973.86 8472.62,-4178.4 8472.62,-4178.4 8472.62,-4178.4 8472.62,-3310 8472.62,-3176.25 8504.01,-2230.29 8453.62,-2106.4 8445.33,-2086.01 8429.87,-2089.88 8419.62,-2070.4 8373.6,-1982.94 8471.67,-1853 8372.84,-1853"/>
<polygon fill="black" stroke="black" points="8446.06,-5529.43 8436.95,-5535.54 8443.24,-5533.96 8440.95,-5537.63 8440.95,-5537.63 8440.95,-5537.63 8443.24,-5533.96 8444.59,-5540.3 8446.06,-5529.43"/>
<text text-anchor="start" x="8447.6" y="-5548.2" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.refund&#45;&gt;public.event_registration -->
<g id="edge58" class="edge">
<title>public.refund:event_registration_id&#45;&gt;public.event_registration:id</title>
<path fill="none" stroke="black" d="M8445.96,-5344.9C8482.45,-5217.46 8422.6,-3699.08 8415.62,-3654.4 8397.46,-3538.1 8456.3,-3401 8338.59,-3401"/>
<polygon fill="black" stroke="black" points="8446.11,-5344.66 8436.97,-5350.72 8443.26,-5349.17 8440.95,-5352.83 8440.95,-5352.83 8440.95,-5352.83 8443.26,-5349.17 8444.58,-5355.52 8446.11,-5344.66"/>
<text text-anchor="start" x="8447.6" y="-5363.4" font-family="Arial" font-size="10.00">FOREIGN KEY (event_registration_id) REFERENCES event_registration(id)</text>
</g>
<!-- public.user_group -->
<g id="node36" class="node">
<title>public.user_group</title>
<polygon fill="#efefef" stroke="none" points="6613.72,-1729.8 6613.72,-1765.4 6905.52,-1765.4 6905.52,-1729.8 6613.72,-1729.8"/>
<polygon fill="none" stroke="black" points="6613.72,-1729.8 6613.72,-1765.4 6905.52,-1765.4 6905.52,-1729.8 6613.72,-1729.8"/>
<text text-anchor="start" x="6632.14" y="-1743.2" font-family="Arial Bold" font-size="18.00">public.user_group</text>
<text text-anchor="start" x="6762.61" y="-1743.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6793.73" y="-1743.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6613.72,-1699 6613.72,-1729.8 6905.52,-1729.8 6905.52,-1699 6613.72,-1699"/>
<text text-anchor="start" x="6620.72" y="-1711.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6635.51" y="-1711.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6613.72,-1668.2 6613.72,-1699 6905.52,-1699 6905.52,-1668.2 6613.72,-1668.2"/>
<text text-anchor="start" x="6620.72" y="-1680.4" font-family="Arial" font-size="14.00">public_name </text>
<text text-anchor="start" x="6704" y="-1680.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6613.72,-1637.4 6613.72,-1668.2 6905.52,-1668.2 6905.52,-1637.4 6613.72,-1637.4"/>
<text text-anchor="start" x="6620.72" y="-1649.6" font-family="Arial" font-size="14.00">internal_name </text>
<text text-anchor="start" x="6713.34" y="-1649.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(60)]</text>
<polygon fill="none" stroke="black" points="6613.72,-1606.6 6613.72,-1637.4 6905.52,-1637.4 6905.52,-1606.6 6613.72,-1606.6"/>
<text text-anchor="start" x="6620.72" y="-1618.8" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="6651.86" y="-1618.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="6613.72,-1575.8 6613.72,-1606.6 6905.52,-1606.6 6905.52,-1575.8 6613.72,-1575.8"/>
<text text-anchor="start" x="6620.72" y="-1588" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6690.77" y="-1588" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6613.72,-1545 6613.72,-1575.8 6905.52,-1575.8 6905.52,-1545 6613.72,-1545"/>
<text text-anchor="start" x="6620.72" y="-1557.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="6651.08" y="-1557.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6613.72,-1514.2 6613.72,-1545 6905.52,-1545 6905.52,-1514.2 6613.72,-1514.2"/>
<text text-anchor="start" x="6620.72" y="-1526.4" font-family="Arial" font-size="14.00">invite_code </text>
<text text-anchor="start" x="6695.44" y="-1526.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(10)]</text>
<polygon fill="none" stroke="black" points="6613.72,-1483.4 6613.72,-1514.2 6905.52,-1514.2 6905.52,-1483.4 6613.72,-1483.4"/>
<text text-anchor="start" x="6620.72" y="-1495.6" font-family="Arial" font-size="14.00">deactivated_by_id </text>
<text text-anchor="start" x="6737.48" y="-1495.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6613.72,-1452.6 6613.72,-1483.4 6905.52,-1483.4 6905.52,-1452.6 6613.72,-1452.6"/>
<text text-anchor="start" x="6620.72" y="-1464.8" font-family="Arial" font-size="14.00">deactivated_at </text>
<text text-anchor="start" x="6715.68" y="-1464.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6613.72,-1421.8 6613.72,-1452.6 6905.52,-1452.6 6905.52,-1421.8 6613.72,-1421.8"/>
<text text-anchor="start" x="6620.72" y="-1434" font-family="Arial" font-size="14.00">active </text>
<text text-anchor="start" x="6661.19" y="-1434" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.user_group&#45;&gt;public.user -->
<g id="edge59" class="edge">
<title>public.user_group:deactivated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6916.88,-1498.47C7141.7,-1483.9 6861.7,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="6916.85,-1498.47 6906.71,-1494.29 6911.51,-1498.64 6907.18,-1498.78 6907.18,-1498.78 6907.18,-1498.78 6911.51,-1498.64 6906.99,-1503.29 6916.85,-1498.47"/>
<text text-anchor="start" x="6841.69" y="-1482.8" font-family="Arial" font-size="10.00">FOREIGN KEY (deactivated_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.user_group_club -->
<g id="node37" class="node">
<title>public.user_group_club</title>
<polygon fill="#efefef" stroke="none" points="5867.14,-2550 5867.14,-2585.6 6176.1,-2585.6 6176.1,-2550 5867.14,-2550"/>
<polygon fill="none" stroke="black" points="5867.14,-2550 5867.14,-2585.6 6176.1,-2585.6 6176.1,-2550 5867.14,-2550"/>
<text text-anchor="start" x="5874.14" y="-2563.4" font-family="Arial Bold" font-size="18.00">public.user_group_club</text>
<text text-anchor="start" x="6044.61" y="-2563.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6075.72" y="-2563.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5867.14,-2519.2 5867.14,-2550 6176.1,-2550 6176.1,-2519.2 5867.14,-2519.2"/>
<text text-anchor="start" x="5874.14" y="-2531.4" font-family="Arial" font-size="14.00">user_group_id </text>
<text text-anchor="start" x="5967.54" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5867.14,-2488.4 5867.14,-2519.2 6176.1,-2519.2 6176.1,-2488.4 5867.14,-2488.4"/>
<text text-anchor="start" x="5874.14" y="-2500.6" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="5922.4" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.user_group_club&#45;&gt;public.club -->
<g id="edge60" class="edge">
<title>public.user_group_club:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M5856.14,-2502.14C5785.43,-2476.55 5879.14,-2163.44 5815.62,-2106.4 5776.68,-2071.43 3983.89,-2073.1 3931.62,-2070.4 3433.32,-2044.69 3311.88,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="5855.95,-2502.1 5865.08,-2508.18 5861.21,-2502.98 5865.48,-2503.69 5865.48,-2503.69 5865.48,-2503.69 5861.21,-2502.98 5866.55,-2499.31 5855.95,-2502.1"/>
<text text-anchor="start" x="5532.4" y="-2513.8" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.user_group_club&#45;&gt;public.user_group -->
<g id="edge61" class="edge">
<title>public.user_group_club:user_group_id&#45;&gt;public.user_group:id</title>
<path fill="none" stroke="black" d="M6187.5,-2534.42C6583.25,-2520.64 6203.49,-1714.4 6612.72,-1714.4"/>
<polygon fill="black" stroke="black" points="6187.43,-2534.42 6177.35,-2530.09 6182.1,-2534.51 6177.77,-2534.59 6177.77,-2534.59 6177.77,-2534.59 6182.1,-2534.51 6177.51,-2539.09 6187.43,-2534.42"/>
<text text-anchor="start" x="6184.1" y="-2544.6" font-family="Arial" font-size="10.00">FOREIGN KEY (user_group_id) REFERENCES user_group(id) ON DELETE CASCADE</text>
</g>
<!-- public.opening_time -->
<g id="node38" class="node">
<title>public.opening_time</title>
<polygon fill="#efefef" stroke="none" points="1433.14,-2657.8 1433.14,-2693.4 1720.1,-2693.4 1720.1,-2657.8 1433.14,-2657.8"/>
<polygon fill="none" stroke="black" points="1433.14,-2657.8 1433.14,-2693.4 1720.1,-2693.4 1720.1,-2657.8 1433.14,-2657.8"/>
<text text-anchor="start" x="1440.14" y="-2671.2" font-family="Arial Bold" font-size="18.00">public.opening_time</text>
<text text-anchor="start" x="1588.61" y="-2671.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1619.73" y="-2671.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="1433.14,-2627 1433.14,-2657.8 1720.1,-2657.8 1720.1,-2627 1433.14,-2627"/>
<text text-anchor="start" x="1440.14" y="-2639.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="1454.92" y="-2639.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1433.14,-2596.2 1433.14,-2627 1720.1,-2627 1720.1,-2596.2 1433.14,-2596.2"/>
<text text-anchor="start" x="1440.14" y="-2608.4" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="1488.39" y="-2608.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1433.14,-2565.4 1433.14,-2596.2 1720.1,-2596.2 1720.1,-2565.4 1433.14,-2565.4"/>
<text text-anchor="start" x="1440.14" y="-2577.6" font-family="Arial" font-size="14.00">index </text>
<text text-anchor="start" x="1477.5" y="-2577.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="1433.14,-2534.6 1433.14,-2565.4 1720.1,-2565.4 1720.1,-2534.6 1433.14,-2534.6"/>
<text text-anchor="start" x="1440.14" y="-2546.8" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="1479.05" y="-2546.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1433.14,-2503.8 1433.14,-2534.6 1720.1,-2534.6 1720.1,-2503.8 1433.14,-2503.8"/>
<text text-anchor="start" x="1440.14" y="-2516" font-family="Arial" font-size="14.00">opens_at </text>
<text text-anchor="start" x="1501.63" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1433.14,-2473 1433.14,-2503.8 1720.1,-2503.8 1720.1,-2473 1433.14,-2473"/>
<text text-anchor="start" x="1440.14" y="-2485.2" font-family="Arial" font-size="14.00">closes_at </text>
<text text-anchor="start" x="1503.17" y="-2485.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1433.14,-2442.2 1433.14,-2473 1720.1,-2473 1720.1,-2442.2 1433.14,-2442.2"/>
<text text-anchor="start" x="1440.14" y="-2454.4" font-family="Arial" font-size="14.00">opened_hours </text>
<text text-anchor="start" x="1533.55" y="-2454.4" font-family="Arial" font-size="14.00" fill="#666666">[numeric(4,2)]</text>
<polygon fill="none" stroke="black" points="1433.14,-2411.4 1433.14,-2442.2 1720.1,-2442.2 1720.1,-2411.4 1433.14,-2411.4"/>
<text text-anchor="start" x="1440.14" y="-2423.6" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="1470.49" y="-2423.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="1433.14,-2380.6 1433.14,-2411.4 1720.1,-2411.4 1720.1,-2380.6 1433.14,-2380.6"/>
<text text-anchor="start" x="1440.14" y="-2392.8" font-family="Arial" font-size="14.00">is_opened </text>
<text text-anchor="start" x="1508.64" y="-2392.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.opening_time&#45;&gt;public.club -->
<g id="edge62" class="edge">
<title>public.opening_time:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M1731.25,-2610.31C1825.27,-2584.72 1698.32,-2186.45 1772.62,-2106.4 1884.97,-1985.35 2339.17,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="1731.35,-2610.3 1720.87,-2607.09 1726.06,-2610.97 1721.77,-2611.52 1721.77,-2611.52 1721.77,-2611.52 1726.06,-2610.97 1722,-2616.02 1731.35,-2610.3"/>
<text text-anchor="start" x="1728.1" y="-2621.6" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.member -->
<g id="node39" class="node">
<title>public.member</title>
<polygon fill="#efefef" stroke="none" points="6978.18,-2627 6978.18,-2662.6 7245.06,-2662.6 7245.06,-2627 6978.18,-2627"/>
<polygon fill="none" stroke="black" points="6978.18,-2627 6978.18,-2662.6 7245.06,-2662.6 7245.06,-2627 6978.18,-2627"/>
<text text-anchor="start" x="6995.14" y="-2640.4" font-family="Arial Bold" font-size="18.00">public.member</text>
<text text-anchor="start" x="7103.61" y="-2640.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7134.73" y="-2640.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6978.18,-2596.2 6978.18,-2627 7245.06,-2627 7245.06,-2596.2 6978.18,-2596.2"/>
<text text-anchor="start" x="6985.18" y="-2608.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6999.97" y="-2608.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6978.18,-2565.4 6978.18,-2596.2 7245.06,-2596.2 7245.06,-2565.4 6978.18,-2565.4"/>
<text text-anchor="start" x="6985.18" y="-2577.6" font-family="Arial" font-size="14.00">group_id </text>
<text text-anchor="start" x="7043.56" y="-2577.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6978.18,-2534.6 6978.18,-2565.4 7245.06,-2565.4 7245.06,-2534.6 6978.18,-2534.6"/>
<text text-anchor="start" x="6985.18" y="-2546.8" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="7034.99" y="-2546.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6978.18,-2503.8 6978.18,-2534.6 7245.06,-2534.6 7245.06,-2503.8 6978.18,-2503.8"/>
<text text-anchor="start" x="6985.18" y="-2516" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="7055.23" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6978.18,-2473 6978.18,-2503.8 7245.06,-2503.8 7245.06,-2473 6978.18,-2473"/>
<text text-anchor="start" x="6985.18" y="-2485.2" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="7080.12" y="-2485.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6978.18,-2442.2 6978.18,-2473 7245.06,-2473 7245.06,-2442.2 6978.18,-2442.2"/>
<text text-anchor="start" x="6985.18" y="-2454.4" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="7026.42" y="-2454.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6978.18,-2411.4 6978.18,-2442.2 7245.06,-2442.2 7245.06,-2411.4 6978.18,-2411.4"/>
<text text-anchor="start" x="6985.18" y="-2423.6" font-family="Arial" font-size="14.00">added_by_id </text>
<text text-anchor="start" x="7069.25" y="-2423.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.member&#45;&gt;public.user -->
<g id="edge63" class="edge">
<title>public.member:added_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M7111.4,-2400.25C7106.55,-2253.66 7024.96,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="7111.39,-2400.07 7107.11,-2410.16 7111.51,-2405.4 7111.61,-2409.73 7111.61,-2409.73 7111.61,-2409.73 7111.51,-2405.4 7116.11,-2409.97 7111.39,-2400.07"/>
<text text-anchor="start" x="7118.62" y="-2420.4" 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="edge64" class="edge">
<title>public.member:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6966.84,-2549.35C6903.6,-2540.57 6975.31,-2445.16 6978.18,-2368.2 6983.92,-2214.18 6947.62,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="6966.87,-2549.35 6976.56,-2554.47 6972.19,-2549.68 6976.51,-2549.96 6976.51,-2549.96 6976.51,-2549.96 6972.19,-2549.68 6977.13,-2545.49 6966.87,-2549.35"/>
<text text-anchor="start" x="6924.31" y="-2534" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.member&#45;&gt;public.user_group -->
<g id="edge65" class="edge">
<title>public.member:group_id&#45;&gt;public.user_group:id</title>
<path fill="none" stroke="black" d="M6967.79,-2577.66C6888.94,-2520.95 6999.71,-1714.4 6906.52,-1714.4"/>
<polygon fill="black" stroke="black" points="6967.38,-2577.53 6975.44,-2584.96 6972.44,-2579.22 6976.54,-2580.59 6976.54,-2580.59 6976.54,-2580.59 6972.44,-2579.22 6978.29,-2576.43 6967.38,-2577.53"/>
<text text-anchor="start" x="6984.18" y="-2590.8" font-family="Arial" font-size="10.00">FOREIGN KEY (group_id) REFERENCES user_group(id)</text>
</g>
<!-- public.discount&#45;&gt;public.user_group -->
<g id="edge66" class="edge">
<title>public.discount:group_id&#45;&gt;public.user_group:id</title>
<path fill="none" stroke="black" d="M6884.32,-2730.19C6928.12,-2681.7 6889.55,-2266.44 6874.16,-2214.2 6803.35,-1973.72 6362.04,-1714.4 6612.72,-1714.4"/>
<polygon fill="black" stroke="black" points="6884.39,-2730.15 6873.44,-2730.63 6879.63,-2732.55 6875.76,-2734.5 6875.76,-2734.5 6875.76,-2734.5 6879.63,-2732.55 6877.49,-2738.67 6884.39,-2730.15"/>
<text text-anchor="start" x="6882.16" y="-2744.8" font-family="Arial" font-size="10.00">FOREIGN KEY (group_id) REFERENCES user_group(id)</text>
</g>
<!-- public.match_series&#45;&gt;public.club -->
<g id="edge67" class="edge">
<title>public.match_series:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M5780.36,-3153.88C5717.61,-3144.27 5765.82,-3040.83 5701.62,-3003.6 5629.16,-2961.59 2745.49,-3027.18 2686.62,-2967.6 2652.99,-2933.57 2657.84,-2144.62 2686.62,-2106.4 2721.48,-2060.12 2776.82,-2116.5 2811.92,-2070.4 2837.29,-2037.09 2854.79,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="5780.15,-3153.87 5789.8,-3159.06 5785.47,-3154.24 5789.79,-3154.55 5789.79,-3154.55 5789.79,-3154.55 5785.47,-3154.24 5790.44,-3150.09 5780.15,-3153.87"/>
<text text-anchor="start" x="5567.29" y="-3138.6" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.match_series&#45;&gt;public.court -->
<g id="edge68" class="edge">
<title>public.match_series:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M5780.32,-3492.06C5689.43,-3466.35 5810.1,-3077.9 5734.62,-3003.6 5676.22,-2946.11 5427.17,-3023.89 5367.62,-2967.6 5314.47,-2917.36 5390.24,-2642.4 5317.1,-2642.4"/>
<polygon fill="black" stroke="black" points="5780.21,-3492.05 5789.53,-3497.82 5785.5,-3492.75 5789.79,-3493.31 5789.79,-3493.31 5789.79,-3493.31 5785.5,-3492.75 5790.71,-3488.89 5780.21,-3492.05"/>
<text text-anchor="start" x="5559.52" y="-3503.4" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id)</text>
</g>
<!-- public.match_series&#45;&gt;public.user -->
<g id="edge69" class="edge">
<title>public.match_series:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6089.09,-3461.14C6173.55,-3435.47 6070.23,-3078.85 6134.62,-3003.6 6172.76,-2959.02 6225.64,-3013.94 6261.62,-2967.6 6387.79,-2805.12 6174.45,-1271.88 6309.62,-1116.8 6368.23,-1049.56 7012.55,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="6089.02,-3461.15 6078.49,-3458.1 6083.74,-3461.9 6079.45,-3462.51 6079.45,-3462.51 6079.45,-3462.51 6083.74,-3461.9 6079.75,-3467.01 6089.02,-3461.15"/>
<text text-anchor="start" x="6023.97" y="-3446.6" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.match_series&#45;&gt;public.discount -->
<g id="edge70" class="edge">
<title>public.match_series:discount_id&#45;&gt;public.discount:id</title>
<path fill="none" stroke="black" d="M6089.1,-3123.29C6155.08,-3116.49 6142.99,-3043.05 6205.62,-3003.6 6243.47,-2979.76 6263.15,-2993.51 6299.62,-2967.6 6395.38,-2899.55 6352.61,-2765.6 6470.08,-2765.6"/>
<polygon fill="black" stroke="black" points="6089.11,-3123.29 6078.9,-3119.29 6083.78,-3123.55 6079.45,-3123.77 6079.45,-3123.77 6079.45,-3123.77 6083.78,-3123.55 6079.34,-3128.28 6089.11,-3123.29"/>
<text text-anchor="start" x="6085.79" y="-3107.8" font-family="Arial" font-size="10.00">FOREIGN KEY (discount_id) REFERENCES discount(id)</text>
</g>
<!-- public.event_template -->
<g id="node42" class="node">
<title>public.event_template</title>
<polygon fill="#efefef" stroke="none" points="5430.65,-1699 5430.65,-1734.6 5728.59,-1734.6 5728.59,-1699 5430.65,-1699"/>
<polygon fill="none" stroke="black" points="5430.65,-1699 5430.65,-1734.6 5728.59,-1734.6 5728.59,-1699 5430.65,-1699"/>
<text text-anchor="start" x="5437.65" y="-1712.4" font-family="Arial Bold" font-size="18.00">public.event_template</text>
<text text-anchor="start" x="5597.1" y="-1712.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5628.21" y="-1712.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5430.65,-1668.2 5430.65,-1699 5728.59,-1699 5728.59,-1668.2 5430.65,-1668.2"/>
<text text-anchor="start" x="5437.65" y="-1680.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5452.44" y="-1680.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5430.65,-1637.4 5430.65,-1668.2 5728.59,-1668.2 5728.59,-1637.4 5430.65,-1637.4"/>
<text text-anchor="start" x="5437.65" y="-1649.6" font-family="Arial" font-size="14.00">teaser_image_id </text>
<text text-anchor="start" x="5545.05" y="-1649.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5430.65,-1606.6 5430.65,-1637.4 5728.59,-1637.4 5728.59,-1606.6 5430.65,-1606.6"/>
<text text-anchor="start" x="5437.65" y="-1618.8" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="5520.94" y="-1618.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="5430.65,-1575.8 5430.65,-1606.6 5728.59,-1606.6 5728.59,-1575.8 5430.65,-1575.8"/>
<text text-anchor="start" x="5437.65" y="-1588" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="5463.33" y="-1588" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5430.65,-1545 5430.65,-1575.8 5728.59,-1575.8 5728.59,-1545 5430.65,-1545"/>
<text text-anchor="start" x="5437.65" y="-1557.2" font-family="Arial" font-size="14.00">subtitle </text>
<text text-anchor="start" x="5485.9" y="-1557.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5430.65,-1514.2 5430.65,-1545 5728.59,-1545 5728.59,-1514.2 5430.65,-1514.2"/>
<text text-anchor="start" x="5437.65" y="-1526.4" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="5509.25" y="-1526.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="5430.65,-1483.4 5430.65,-1514.2 5728.59,-1514.2 5728.59,-1483.4 5430.65,-1483.4"/>
<text text-anchor="start" x="5437.65" y="-1495.6" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="5496.01" y="-1495.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="5430.65,-1452.6 5430.65,-1483.4 5728.59,-1483.4 5728.59,-1452.6 5430.65,-1452.6"/>
<text text-anchor="start" x="5437.65" y="-1464.8" font-family="Arial" font-size="14.00">stripe_product_id </text>
<text text-anchor="start" x="5548.94" y="-1464.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
</g>
<!-- public.event_template&#45;&gt;public.image -->
<g id="edge71" class="edge">
<title>public.event_template:teaser_image_id&#45;&gt;public.image:id</title>
<path fill="none" stroke="black" d="M5419.47,-1651.59C5318.09,-1625.91 5448.34,-1200.49 5367.62,-1116.8 5182.85,-925.23 3265.76,-755.6 2999.6,-755.6"/>
<polygon fill="black" stroke="black" points="5419.39,-1651.58 5428.79,-1657.23 5424.69,-1652.21 5428.99,-1652.72 5428.99,-1652.72 5428.99,-1652.72 5424.69,-1652.21 5429.85,-1648.29 5419.39,-1651.58"/>
<text text-anchor="start" x="5366.33" y="-1636.8" font-family="Arial" font-size="10.00">FOREIGN KEY (teaser_image_id) REFERENCES image(id)</text>
</g>
<!-- public.club_event -->
<g id="node43" class="node">
<title>public.club_event</title>
<polygon fill="#efefef" stroke="none" points="5420.04,-2888.8 5420.04,-2924.4 5763.2,-2924.4 5763.2,-2888.8 5420.04,-2888.8"/>
<polygon fill="none" stroke="black" points="5420.04,-2888.8 5420.04,-2924.4 5763.2,-2924.4 5763.2,-2888.8 5420.04,-2888.8"/>
<text text-anchor="start" x="5465.15" y="-2902.2" font-family="Arial Bold" font-size="18.00">public.club_event</text>
<text text-anchor="start" x="5593.61" y="-2902.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="5624.72" y="-2902.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="5420.04,-2858 5420.04,-2888.8 5763.2,-2888.8 5763.2,-2858 5420.04,-2858"/>
<text text-anchor="start" x="5427.04" y="-2870.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="5441.83" y="-2870.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5420.04,-2827.2 5420.04,-2858 5763.2,-2858 5763.2,-2827.2 5420.04,-2827.2"/>
<text text-anchor="start" x="5427.04" y="-2839.4" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="5510.33" y="-2839.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2796.4 5420.04,-2827.2 5763.2,-2827.2 5763.2,-2796.4 5420.04,-2796.4"/>
<text text-anchor="start" x="5427.04" y="-2808.6" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="5485.4" y="-2808.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="5420.04,-2765.6 5420.04,-2796.4 5763.2,-2796.4 5763.2,-2765.6 5420.04,-2765.6"/>
<text text-anchor="start" x="5427.04" y="-2777.8" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="5475.3" y="-2777.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5420.04,-2734.8 5420.04,-2765.6 5763.2,-2765.6 5763.2,-2734.8 5420.04,-2734.8"/>
<text text-anchor="start" x="5427.04" y="-2747" font-family="Arial" font-size="14.00">template_id </text>
<text text-anchor="start" x="5503.31" y="-2747" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5420.04,-2704 5420.04,-2734.8 5763.2,-2734.8 5763.2,-2704 5420.04,-2704"/>
<text text-anchor="start" x="5427.04" y="-2716.2" font-family="Arial" font-size="14.00">event_period_starts_at </text>
<text text-anchor="start" x="5573.36" y="-2716.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5420.04,-2673.2 5420.04,-2704 5763.2,-2704 5763.2,-2673.2 5420.04,-2673.2"/>
<text text-anchor="start" x="5427.04" y="-2685.4" font-family="Arial" font-size="14.00">event_period_ends_at </text>
<text text-anchor="start" x="5569.49" y="-2685.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5420.04,-2642.4 5420.04,-2673.2 5763.2,-2673.2 5763.2,-2642.4 5420.04,-2642.4"/>
<text text-anchor="start" x="5427.04" y="-2654.6" font-family="Arial" font-size="14.00">event_period_duration_in_seconds </text>
<text text-anchor="start" x="5648.88" y="-2654.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5420.04,-2611.6 5420.04,-2642.4 5763.2,-2642.4 5763.2,-2611.6 5420.04,-2611.6"/>
<text text-anchor="start" x="5427.04" y="-2623.8" font-family="Arial" font-size="14.00">price_per_person_amount </text>
<text text-anchor="start" x="5594.38" y="-2623.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="5420.04,-2580.8 5420.04,-2611.6 5763.2,-2611.6 5763.2,-2580.8 5420.04,-2580.8"/>
<text text-anchor="start" x="5427.04" y="-2593" font-family="Arial" font-size="14.00">price_per_person_currency </text>
<text text-anchor="start" x="5601.36" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2550 5420.04,-2580.8 5763.2,-2580.8 5763.2,-2550 5420.04,-2550"/>
<text text-anchor="start" x="5427.04" y="-2562.2" font-family="Arial" font-size="14.00">stripe_price_id </text>
<text text-anchor="start" x="5521.98" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2519.2 5420.04,-2550 5763.2,-2550 5763.2,-2519.2 5420.04,-2519.2"/>
<text text-anchor="start" x="5427.04" y="-2531.4" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="5468.29" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2488.4 5420.04,-2519.2 5763.2,-2519.2 5763.2,-2488.4 5420.04,-2488.4"/>
<text text-anchor="start" x="5427.04" y="-2500.6" font-family="Arial" font-size="14.00">max_confirmed_registrations </text>
<text text-anchor="start" x="5610.68" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5420.04,-2457.6 5420.04,-2488.4 5763.2,-2488.4 5763.2,-2457.6 5420.04,-2457.6"/>
<text text-anchor="start" x="5427.04" y="-2469.8" font-family="Arial" font-size="14.00">registration_opens_at </text>
<text text-anchor="start" x="5565.58" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5420.04,-2426.8 5420.04,-2457.6 5763.2,-2457.6 5763.2,-2426.8 5420.04,-2426.8"/>
<text text-anchor="start" x="5427.04" y="-2439" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="5498.64" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="5420.04,-2396 5420.04,-2426.8 5763.2,-2426.8 5763.2,-2396 5420.04,-2396"/>
<text text-anchor="start" x="5427.04" y="-2408.2" font-family="Arial" font-size="14.00">persons_per_team </text>
<text text-anchor="start" x="5547.67" y="-2408.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="5420.04,-2365.2 5420.04,-2396 5763.2,-2396 5763.2,-2365.2 5420.04,-2365.2"/>
<text text-anchor="start" x="5427.04" y="-2377.4" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="5457.4" y="-2377.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2334.4 5420.04,-2365.2 5763.2,-2365.2 5763.2,-2334.4 5420.04,-2334.4"/>
<text text-anchor="start" x="5427.04" y="-2346.6" font-family="Arial" font-size="14.00">is_registrations_hidden </text>
<text text-anchor="start" x="5574.91" y="-2346.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="5420.04,-2303.6 5420.04,-2334.4 5763.2,-2334.4 5763.2,-2303.6 5420.04,-2303.6"/>
<text text-anchor="start" x="5427.04" y="-2315.8" font-family="Arial" font-size="14.00">registration_closes_at </text>
<text text-anchor="start" x="5567.12" y="-2315.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5420.04,-2272.8 5420.04,-2303.6 5763.2,-2303.6 5763.2,-2272.8 5420.04,-2272.8"/>
<text text-anchor="start" x="5427.04" y="-2285" font-family="Arial" font-size="14.00">free_cancellation_strategy </text>
<text text-anchor="start" x="5594.37" y="-2285" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2242 5420.04,-2272.8 5763.2,-2272.8 5763.2,-2242 5420.04,-2242"/>
<text text-anchor="start" x="5427.04" y="-2254.2" font-family="Arial" font-size="14.00">updated_by_id </text>
<text text-anchor="start" x="5522.8" y="-2254.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="5420.04,-2211.2 5420.04,-2242 5763.2,-2242 5763.2,-2211.2 5420.04,-2211.2"/>
<text text-anchor="start" x="5427.04" y="-2223.4" font-family="Arial" font-size="14.00">cancellation_reason </text>
<text text-anchor="start" x="5555.46" y="-2223.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="5420.04,-2180.4 5420.04,-2211.2 5763.2,-2211.2 5763.2,-2180.4 5420.04,-2180.4"/>
<text text-anchor="start" x="5427.04" y="-2192.6" font-family="Arial" font-size="14.00">updated_at </text>
<text text-anchor="start" x="5501" y="-2192.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="5420.04,-2149.6 5420.04,-2180.4 5763.2,-2180.4 5763.2,-2149.6 5420.04,-2149.6"/>
<text text-anchor="start" x="5427.04" y="-2161.8" font-family="Arial" font-size="14.00">sport_id </text>
<text text-anchor="start" x="5480.74" y="-2161.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.club_event&#45;&gt;public.club -->
<g id="edge72" class="edge">
<title>public.club_event:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M5409.46,-2777.02C5351.01,-2723.87 5420.52,-2155.79 5368.62,-2106.4 5339.69,-2078.87 3971.49,-2072.58 3931.62,-2070.4 3433.4,-2043.21 3311.88,-1976.2 2812.92,-1976.2"/>
<polygon fill="black" stroke="black" points="5409.5,-2777.03 5417.01,-2785.03 5414.43,-2779.08 5418.43,-2780.74 5418.43,-2780.74 5418.43,-2780.74 5414.43,-2779.08 5420.46,-2776.72 5409.5,-2777.03"/>
<text text-anchor="start" x="5195.88" y="-2791" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.club_event&#45;&gt;public.user -->
<g id="edge73" class="edge">
<title>public.club_event:updated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M5774.45,-2256.71C5830.36,-2248.51 5790.92,-2169.09 5814.62,-2106.4 5983.5,-1659.63 5856.18,-1409.48 6233.62,-1116.8 6387.78,-997.26 6906.67,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="5774.51,-2256.7 5764.23,-2252.89 5769.18,-2257.06 5764.86,-2257.35 5764.86,-2257.35 5764.86,-2257.35 5769.18,-2257.06 5764.83,-2261.87 5774.51,-2256.7"/>
<text text-anchor="start" x="5771.2" y="-2267.4" font-family="Arial" font-size="10.00">FOREIGN KEY (updated_by_id) REFERENCES &quot;user&quot;(id) ON DELETE SET NULL</text>
</g>
<!-- public.club_event&#45;&gt;public.sport -->
<g id="edge74" class="edge">
<title>public.club_event:sport_id&#45;&gt;public.sport:id</title>
<path fill="none" stroke="black" d="M5408.72,-2163.65C5298.16,-2132.96 5442.47,-1591.2 5316.61,-1591.2"/>
<polygon fill="black" stroke="black" points="5408.8,-2163.66 5418.13,-2169.42 5414.09,-2164.35 5418.38,-2164.91 5418.38,-2164.91 5418.38,-2164.91 5414.09,-2164.35 5419.3,-2160.49 5408.8,-2163.66"/>
<text text-anchor="start" x="5188.11" y="-2175" font-family="Arial" font-size="10.00">FOREIGN KEY (sport_id) REFERENCES sport(id)</text>
</g>
<!-- public.club_event&#45;&gt;public.event_template -->
<g id="edge75" class="edge">
<title>public.club_event:template_id&#45;&gt;public.event_template:id</title>
<path fill="none" stroke="black" d="M5409.75,-2746.51C5351.79,-2697.2 5394.9,-2169.77 5420.04,-2106.4 5505.94,-1889.93 5962.47,-1683.6 5729.59,-1683.6"/>
<polygon fill="black" stroke="black" points="5409.44,-2746.38 5417.07,-2754.26 5414.4,-2748.35 5418.42,-2749.95 5418.42,-2749.95 5418.42,-2749.95 5414.4,-2748.35 5420.4,-2745.89 5409.44,-2746.38"/>
<text text-anchor="start" x="5125.84" y="-2760.2" font-family="Arial" font-size="10.00">FOREIGN KEY (template_id) REFERENCES event_template(id)</text>
</g>
<!-- public.event_registration&#45;&gt;public.user -->
<g id="edge76" class="edge">
<title>public.event_registration:cancelled_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8008.54,-3213.74C7965.76,-3191.17 7985.87,-3019.51 7980.62,-2967.6 7942.04,-2586.31 8009.81,-2482.77 7937.62,-2106.4 7836.89,-1581.22 8032.24,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8008.61,-3213.76 8017.27,-3220.49 8013.79,-3215.02 8018,-3216.04 8018,-3216.04 8018,-3216.04 8013.79,-3215.02 8019.39,-3211.75 8008.61,-3213.76"/>
<text text-anchor="start" x="7816.85" y="-3200.2" 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="edge77" class="edge">
<title>public.event_registration:created_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8013.81,-3238.07C7985.79,-3133.04 7975.62,-2136.37 7973.62,-2106.4 7958.92,-1886.01 8017.52,-1290.14 7880.62,-1116.8 7824.89,-1046.23 7587.41,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8013.72,-3237.92 8014.54,-3248.85 8016.27,-3242.61 8018.33,-3246.41 8018.33,-3246.41 8018.33,-3246.41 8016.27,-3242.61 8022.45,-3244.56 8013.72,-3237.92"/>
<text text-anchor="start" x="7756.15" y="-3257" font-family="Arial" font-size="10.00">FOREIGN KEY (created_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.event_registration&#45;&gt;public.club_event -->
<g id="edge78" class="edge">
<title>public.event_registration:event_id&#45;&gt;public.club_event:id</title>
<path fill="none" stroke="black" d="M8008.6,-3368.36C7944.43,-3342.68 8026.44,-3055.67 7967.62,-3003.6 7878.05,-2924.31 5916.73,-3029.93 5814.62,-2967.6 5774.09,-2942.86 5811.68,-2873.4 5764.2,-2873.4"/>
<polygon fill="black" stroke="black" points="8008.49,-3368.34 8017.51,-3374.57 8013.73,-3369.3 8017.99,-3370.08 8017.99,-3370.08 8017.99,-3370.08 8013.73,-3369.3 8019.13,-3365.71 8008.49,-3368.34"/>
<text text-anchor="start" x="7825.92" y="-3354.2" font-family="Arial" font-size="10.00">FOREIGN KEY (event_id) REFERENCES club_event(id)</text>
</g>
<!-- public.team -->
<g id="node47" class="node">
<title>public.team</title>
<polygon fill="#efefef" stroke="none" points="7662.14,-2534.6 7662.14,-2570.2 7885.1,-2570.2 7885.1,-2534.6 7662.14,-2534.6"/>
<polygon fill="none" stroke="black" points="7662.14,-2534.6 7662.14,-2570.2 7885.1,-2570.2 7885.1,-2534.6 7662.14,-2534.6"/>
<text text-anchor="start" x="7669.14" y="-2548" font-family="Arial Bold" font-size="18.00">public.team</text>
<text text-anchor="start" x="7753.61" y="-2548" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7784.73" y="-2548" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7662.14,-2503.8 7662.14,-2534.6 7885.1,-2534.6 7885.1,-2503.8 7662.14,-2503.8"/>
<text text-anchor="start" x="7669.14" y="-2516" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7683.93" y="-2516" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.event_registration&#45;&gt;public.team -->
<g id="edge79" class="edge">
<title>public.event_registration:team_id&#45;&gt;public.team:id</title>
<path fill="none" stroke="black" d="M8008.72,-3275.64C7960.55,-3252.92 7990.1,-3057.44 7967.62,-3003.6 7960.12,-2985.62 7949.59,-2985.79 7942.62,-2967.6 7906.66,-2873.83 7986.53,-2519.2 7886.1,-2519.2"/>
<polygon fill="black" stroke="black" points="8008.55,-3275.6 8017.37,-3282.13 8013.77,-3276.74 8018,-3277.66 8018,-3277.66 8018,-3277.66 8013.77,-3276.74 8019.28,-3273.33 8008.55,-3275.6"/>
<text text-anchor="start" x="7787.72" y="-3287.8" font-family="Arial" font-size="10.00">FOREIGN KEY (team_id) REFERENCES team(id)</text>
</g>
<!-- public.court_blocker_court -->
<g id="node45" class="node">
<title>public.court_blocker_court</title>
<polygon fill="#efefef" stroke="none" points="6677.66,-3324 6677.66,-3359.6 7011.58,-3359.6 7011.58,-3324 6677.66,-3324"/>
<polygon fill="none" stroke="black" points="6677.66,-3324 6677.66,-3359.6 7011.58,-3359.6 7011.58,-3324 6677.66,-3324"/>
<text text-anchor="start" x="6684.66" y="-3337.4" font-family="Arial Bold" font-size="18.00">public.court_blocker_court</text>
<text text-anchor="start" x="6880.09" y="-3337.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6911.21" y="-3337.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6677.66,-3293.2 6677.66,-3324 7011.58,-3324 7011.58,-3293.2 6677.66,-3293.2"/>
<text text-anchor="start" x="6684.66" y="-3305.4" font-family="Arial" font-size="14.00">court_blocker_id </text>
<text text-anchor="start" x="6791.27" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6677.66,-3262.4 6677.66,-3293.2 7011.58,-3293.2 7011.58,-3262.4 6677.66,-3262.4"/>
<text text-anchor="start" x="6684.66" y="-3274.6" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="6738.35" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.court_blocker_court&#45;&gt;public.court -->
<g id="edge81" class="edge">
<title>public.court_blocker_court:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M6666.5,-3277.31C6562.27,-3266.55 6717.05,-3081.82 6625.62,-3003.6 6519.36,-2912.7 5472.5,-3060.08 5367.62,-2967.6 5312.77,-2919.23 5390.24,-2642.4 5317.1,-2642.4"/>
<polygon fill="black" stroke="black" points="6666.34,-3277.3 6676.11,-3282.28 6671.66,-3277.56 6675.99,-3277.77 6675.99,-3277.77 6675.99,-3277.77 6671.66,-3277.56 6676.54,-3273.29 6666.34,-3277.3"/>
<text text-anchor="start" x="6335.14" y="-3287.8" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id) ON DELETE CASCADE</text>
</g>
<!-- public.court_blocker_court&#45;&gt;public.court_blocker -->
<g id="edge80" class="edge">
<title>public.court_blocker_court:court_blocker_id&#45;&gt;public.court_blocker:id</title>
<path fill="none" stroke="black" d="M7022.68,-3306.37C7074.36,-3281.14 7017.38,-3049.23 7063.62,-3003.6 7138.51,-2929.69 7224.3,-3043.07 7297.62,-2967.6 7396.49,-2865.82 7586.49,-1699 7444.59,-1699"/>
<polygon fill="black" stroke="black" points="7022.67,-3306.37 7011.94,-3304.13 7017.46,-3307.52 7013.23,-3308.46 7013.23,-3308.46 7013.23,-3308.46 7017.46,-3307.52 7013.88,-3312.92 7022.67,-3306.37"/>
<text text-anchor="start" x="7019.58" y="-3318.6" font-family="Arial" font-size="10.00">FOREIGN KEY (court_blocker_id) REFERENCES court_blocker(id) ON DELETE CASCADE</text>
</g>
<!-- public.training_time -->
<g id="node46" class="node">
<title>public.training_time</title>
<polygon fill="#efefef" stroke="none" points="3130.14,-3385.6 3130.14,-3421.2 3415.1,-3421.2 3415.1,-3385.6 3130.14,-3385.6"/>
<polygon fill="none" stroke="black" points="3130.14,-3385.6 3130.14,-3421.2 3415.1,-3421.2 3415.1,-3385.6 3130.14,-3385.6"/>
<text text-anchor="start" x="3137.14" y="-3399" font-family="Arial Bold" font-size="18.00">public.training_time</text>
<text text-anchor="start" x="3283.61" y="-3399" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="3314.73" y="-3399" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="3130.14,-3354.8 3130.14,-3385.6 3415.1,-3385.6 3415.1,-3354.8 3130.14,-3354.8"/>
<text text-anchor="start" x="3137.14" y="-3367" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="3151.93" y="-3367" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="3130.14,-3324 3130.14,-3354.8 3415.1,-3354.8 3415.1,-3324 3130.14,-3324"/>
<text text-anchor="start" x="3137.14" y="-3336.2" font-family="Arial" font-size="14.00">index </text>
<text text-anchor="start" x="3174.5" y="-3336.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="3130.14,-3293.2 3130.14,-3324 3415.1,-3324 3415.1,-3293.2 3130.14,-3293.2"/>
<text text-anchor="start" x="3137.14" y="-3305.4" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="3176.05" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3130.14,-3262.4 3130.14,-3293.2 3415.1,-3293.2 3415.1,-3262.4 3130.14,-3262.4"/>
<text text-anchor="start" x="3137.14" y="-3274.6" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="3194.72" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3130.14,-3231.6 3130.14,-3262.4 3415.1,-3262.4 3415.1,-3231.6 3130.14,-3231.6"/>
<text text-anchor="start" x="3137.14" y="-3243.8" font-family="Arial" font-size="14.00">ends_at </text>
<text text-anchor="start" x="3190.85" y="-3243.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="3130.14,-3200.8 3130.14,-3231.6 3415.1,-3231.6 3415.1,-3200.8 3130.14,-3200.8"/>
<text text-anchor="start" x="3137.14" y="-3213" font-family="Arial" font-size="14.00">training_schedule_id </text>
<text text-anchor="start" x="3269.46" y="-3213" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.training_time&#45;&gt;public.training_schedule -->
<g id="edge82" class="edge">
<title>public.training_time:training_schedule_id&#45;&gt;public.training_schedule:id</title>
<path fill="none" stroke="black" d="M3273.1,-3189.52C3286.33,-3039.56 3567.05,-2596.2 3431.59,-2596.2"/>
<polygon fill="black" stroke="black" points="3273.1,-3189.48 3268.14,-3199.26 3272.85,-3194.81 3272.65,-3199.13 3272.65,-3199.13 3272.65,-3199.13 3272.85,-3194.81 3277.13,-3199.68 3273.1,-3189.48"/>
<text text-anchor="start" x="2929.37" y="-3209.8" font-family="Arial" font-size="10.00">FOREIGN KEY (training_schedule_id) REFERENCES training_schedule(id)</text>
</g>
<!-- public.team_member -->
<g id="node48" class="node">
<title>public.team_member</title>
<polygon fill="#efefef" stroke="none" points="7624.15,-3416.4 7624.15,-3452 7915.09,-3452 7915.09,-3416.4 7624.15,-3416.4"/>
<polygon fill="none" stroke="black" points="7624.15,-3416.4 7624.15,-3452 7915.09,-3452 7915.09,-3416.4 7624.15,-3416.4"/>
<text text-anchor="start" x="7631.15" y="-3429.8" font-family="Arial Bold" font-size="18.00">public.team_member</text>
<text text-anchor="start" x="7783.6" y="-3429.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7814.72" y="-3429.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7624.15,-3385.6 7624.15,-3416.4 7915.09,-3416.4 7915.09,-3385.6 7624.15,-3385.6"/>
<text text-anchor="start" x="7631.15" y="-3397.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7645.94" y="-3397.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7624.15,-3354.8 7624.15,-3385.6 7915.09,-3385.6 7915.09,-3354.8 7624.15,-3354.8"/>
<text text-anchor="start" x="7631.15" y="-3367" font-family="Arial" font-size="14.00">team_id </text>
<text text-anchor="start" x="7684.85" y="-3367" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7624.15,-3324 7624.15,-3354.8 7915.09,-3354.8 7915.09,-3324 7624.15,-3324"/>
<text text-anchor="start" x="7631.15" y="-3336.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="7701.2" y="-3336.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) without time zone]</text>
<polygon fill="none" stroke="black" points="7624.15,-3293.2 7624.15,-3324 7915.09,-3324 7915.09,-3293.2 7624.15,-3293.2"/>
<text text-anchor="start" x="7631.15" y="-3305.4" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="7700.4" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7624.15,-3262.4 7624.15,-3293.2 7915.09,-3293.2 7915.09,-3262.4 7624.15,-3262.4"/>
<text text-anchor="start" x="7631.15" y="-3274.6" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="7699.63" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7624.15,-3231.6 7624.15,-3262.4 7915.09,-3262.4 7915.09,-3231.6 7624.15,-3231.6"/>
<text text-anchor="start" x="7631.15" y="-3243.8" font-family="Arial" font-size="14.00">email_address </text>
<text text-anchor="start" x="7726.09" y="-3243.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="7624.15,-3200.8 7624.15,-3231.6 7915.09,-3231.6 7915.09,-3200.8 7624.15,-3200.8"/>
<text text-anchor="start" x="7631.15" y="-3213" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="7680.96" y="-3213" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7624.15,-3170 7624.15,-3200.8 7915.09,-3200.8 7915.09,-3170 7624.15,-3170"/>
<text text-anchor="start" x="7631.15" y="-3182.2" font-family="Arial" font-size="14.00">role </text>
<text text-anchor="start" x="7658.39" y="-3182.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.team_member&#45;&gt;public.user -->
<g id="edge83" class="edge">
<title>public.team_member:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M7612.82,-3215.75C7519.12,-3207.06 7613.77,-3074.5 7609.62,-2967.6 7601.64,-2762.05 7618.64,-1315.81 7566.62,-1116.8 7550.05,-1053.41 7563.01,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="7612.83,-3215.75 7622.62,-3220.68 7618.16,-3215.98 7622.48,-3216.17 7622.48,-3216.17 7622.48,-3216.17 7618.16,-3215.98 7623.01,-3211.69 7612.83,-3215.75"/>
<text text-anchor="start" x="7390.67" y="-3200.2" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.team_member&#45;&gt;public.team -->
<g id="edge84" class="edge">
<title>public.team_member:team_id&#45;&gt;public.team:id</title>
<path fill="none" stroke="black" d="M7926.11,-3367.49C7964.32,-3344.06 7926.6,-3175.75 7915.09,-3126.8 7881.59,-2984.34 7514.8,-2519.2 7661.14,-2519.2"/>
<polygon fill="black" stroke="black" points="7926.06,-3367.5 7915.23,-3365.77 7920.91,-3368.89 7916.73,-3370.03 7916.73,-3370.03 7916.73,-3370.03 7920.91,-3368.89 7917.59,-3374.46 7926.06,-3367.5"/>
<text text-anchor="start" x="7685.15" y="-3380.2" font-family="Arial" font-size="10.00">FOREIGN KEY (team_id) REFERENCES team(id)</text>
</g>
<!-- public.event_term -->
<g id="node49" class="node">
<title>public.event_term</title>
<polygon fill="#efefef" stroke="none" points="8063.84,-4313.6 8063.84,-4349.2 8363.4,-4349.2 8363.4,-4313.6 8063.84,-4313.6"/>
<polygon fill="none" stroke="black" points="8063.84,-4313.6 8063.84,-4349.2 8363.4,-4349.2 8363.4,-4313.6 8063.84,-4313.6"/>
<text text-anchor="start" x="8086.15" y="-4327" font-family="Arial Bold" font-size="18.00">public.event_term</text>
<text text-anchor="start" x="8216.6" y="-4327" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8247.72" y="-4327" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8063.84,-4282.8 8063.84,-4313.6 8363.4,-4313.6 8363.4,-4282.8 8063.84,-4282.8"/>
<text text-anchor="start" x="8070.84" y="-4295" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8085.63" y="-4295" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8063.84,-4252 8063.84,-4282.8 8363.4,-4282.8 8363.4,-4252 8063.84,-4252"/>
<text text-anchor="start" x="8070.84" y="-4264.2" font-family="Arial" font-size="14.00">action </text>
<text text-anchor="start" x="8112.09" y="-4264.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8063.84,-4221.2 8063.84,-4252 8363.4,-4252 8363.4,-4221.2 8063.84,-4221.2"/>
<text text-anchor="start" x="8070.84" y="-4233.4" font-family="Arial" font-size="14.00">applicable_from </text>
<text text-anchor="start" x="8173.56" y="-4233.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8063.84,-4190.4 8063.84,-4221.2 8363.4,-4221.2 8363.4,-4190.4 8063.84,-4190.4"/>
<text text-anchor="start" x="8070.84" y="-4202.6" font-family="Arial" font-size="14.00">applicable_till </text>
<text text-anchor="start" x="8158.79" y="-4202.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8063.84,-4159.6 8063.84,-4190.4 8363.4,-4190.4 8363.4,-4159.6 8063.84,-4159.6"/>
<text text-anchor="start" x="8070.84" y="-4171.8" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="8101.19" y="-4171.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8063.84,-4128.8 8063.84,-4159.6 8363.4,-4159.6 8363.4,-4128.8 8063.84,-4128.8"/>
<text text-anchor="start" x="8070.84" y="-4141" font-family="Arial" font-size="14.00">legacy_type </text>
<text text-anchor="start" x="8149.45" y="-4141" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8063.84,-4098 8063.84,-4128.8 8363.4,-4128.8 8363.4,-4098 8063.84,-4098"/>
<text text-anchor="start" x="8070.84" y="-4110.2" font-family="Arial" font-size="14.00">due_fee_amount </text>
<text text-anchor="start" x="8179.82" y="-4110.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8063.84,-4067.2 8063.84,-4098 8363.4,-4098 8363.4,-4067.2 8063.84,-4067.2"/>
<text text-anchor="start" x="8070.84" y="-4079.4" font-family="Arial" font-size="14.00">due_fee_currency </text>
<text text-anchor="start" x="8186.81" y="-4079.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(3)]</text>
<polygon fill="none" stroke="black" points="8063.84,-4036.4 8063.84,-4067.2 8363.4,-4067.2 8363.4,-4036.4 8063.84,-4036.4"/>
<text text-anchor="start" x="8070.84" y="-4048.6" font-family="Arial" font-size="14.00">is_action_allowed </text>
<text text-anchor="start" x="8185.25" y="-4048.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="8063.84,-4005.6 8063.84,-4036.4 8363.4,-4036.4 8363.4,-4005.6 8063.84,-4005.6"/>
<text text-anchor="start" x="8070.84" y="-4017.8" font-family="Arial" font-size="14.00">event_registration_id </text>
<text text-anchor="start" x="8204.7" y="-4017.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.event_term&#45;&gt;public.event_registration -->
<g id="edge85" class="edge">
<title>public.event_term:event_registration_id&#45;&gt;public.event_registration:id</title>
<path fill="none" stroke="black" d="M8213.8,-3994.54C8223.26,-3722.65 8609.2,-3401 8338.59,-3401"/>
<polygon fill="black" stroke="black" points="8213.8,-3994.27 8209.13,-4004.19 8213.71,-3999.6 8213.63,-4003.93 8213.63,-4003.93 8213.63,-4003.93 8213.71,-3999.6 8218.13,-4004.34 8213.8,-3994.27"/>
<text text-anchor="start" x="8220.62" y="-4014.6" font-family="Arial" font-size="10.00">FOREIGN KEY (event_registration_id) REFERENCES event_registration(id)</text>
</g>
<!-- public.slot -->
<g id="node50" class="node">
<title>public.slot</title>
<polygon fill="#efefef" stroke="none" points="7246.63,-5707.6 7246.63,-5743.2 7460.61,-5743.2 7460.61,-5707.6 7246.63,-5707.6"/>
<polygon fill="none" stroke="black" points="7246.63,-5707.6 7246.63,-5743.2 7460.61,-5743.2 7460.61,-5707.6 7246.63,-5707.6"/>
<text text-anchor="start" x="7253.63" y="-5721" font-family="Arial Bold" font-size="18.00">public.slot</text>
<text text-anchor="start" x="7329.12" y="-5721" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="7360.24" y="-5721" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="7246.63,-5676.8 7246.63,-5707.6 7460.61,-5707.6 7460.61,-5676.8 7246.63,-5676.8"/>
<text text-anchor="start" x="7253.63" y="-5689" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="7268.41" y="-5689" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7246.63,-5646 7246.63,-5676.8 7460.61,-5676.8 7460.61,-5646 7246.63,-5646"/>
<text text-anchor="start" x="7253.63" y="-5658.2" font-family="Arial" font-size="14.00">game_id </text>
<text text-anchor="start" x="7311.22" y="-5658.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7246.63,-5615.2 7246.63,-5646 7460.61,-5646 7460.61,-5615.2 7246.63,-5615.2"/>
<text text-anchor="start" x="7253.63" y="-5627.4" font-family="Arial" font-size="14.00">player_id </text>
<text text-anchor="start" x="7314.33" y="-5627.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7246.63,-5584.4 7246.63,-5615.2 7460.61,-5615.2 7460.61,-5584.4 7246.63,-5584.4"/>
<text text-anchor="start" x="7253.63" y="-5596.6" font-family="Arial" font-size="14.00">index </text>
<text text-anchor="start" x="7290.98" y="-5596.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="7246.63,-5553.6 7246.63,-5584.4 7460.61,-5584.4 7460.61,-5553.6 7246.63,-5553.6"/>
<text text-anchor="start" x="7253.63" y="-5565.8" font-family="Arial" font-size="14.00">fee_amount </text>
<text text-anchor="start" x="7331.46" y="-5565.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="7246.63,-5522.8 7246.63,-5553.6 7460.61,-5553.6 7460.61,-5522.8 7246.63,-5522.8"/>
<text text-anchor="start" x="7253.63" y="-5535" font-family="Arial" font-size="14.00">fee_currency </text>
<text text-anchor="start" x="7338.45" y="-5535" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="7246.63,-5492 7246.63,-5522.8 7460.61,-5522.8 7460.61,-5492 7246.63,-5492"/>
<text text-anchor="start" x="7253.63" y="-5504.2" font-family="Arial" font-size="14.00">expected_payment_by_id </text>
<text text-anchor="start" x="7417.07" y="-5504.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7246.63,-5461.2 7246.63,-5492 7460.61,-5492 7460.61,-5461.2 7246.63,-5461.2"/>
<text text-anchor="start" x="7253.63" y="-5473.4" font-family="Arial" font-size="14.00">paid_by_id </text>
<text text-anchor="start" x="7325.24" y="-5473.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="7246.63,-5430.4 7246.63,-5461.2 7460.61,-5461.2 7460.61,-5430.4 7246.63,-5430.4"/>
<text text-anchor="start" x="7253.63" y="-5442.6" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="7279.3" y="-5442.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.slot&#45;&gt;public.game -->
<g id="edge86" class="edge">
<title>public.slot:game_id&#45;&gt;public.game:id</title>
<path fill="none" stroke="black" d="M7235.43,-5661.35C6909.74,-5658.33 6826.3,-5509.55 6610.62,-5258.8 6403.94,-5018.52 6640.07,-4606.2 6323.13,-4606.2"/>
<polygon fill="black" stroke="black" points="7235.29,-5661.35 7245.27,-5665.9 7240.63,-5661.38 7244.96,-5661.4 7244.96,-5661.4 7244.96,-5661.4 7240.63,-5661.38 7245.31,-5656.9 7235.29,-5661.35"/>
<text text-anchor="start" x="7009.12" y="-5671.4" font-family="Arial" font-size="10.00">FOREIGN KEY (game_id) REFERENCES game(id)</text>
</g>
<!-- public.slot&#45;&gt;public.match_player -->
<g id="edge87" class="edge">
<title>public.slot:expected_payment_by_id&#45;&gt;public.match_player:id</title>
<path fill="none" stroke="black" d="M7471.86,-5505.47C7546.83,-5477.28 7595.53,-5149.2 7518.4,-5149.2"/>
<polygon fill="black" stroke="black" points="7471.77,-5505.49 7461.11,-5502.92 7466.53,-5506.48 7462.27,-5507.28 7462.27,-5507.28 7462.27,-5507.28 7466.53,-5506.48 7462.77,-5511.76 7471.77,-5505.49"/>
<text text-anchor="start" x="7468.61" y="-5517.4" font-family="Arial" font-size="10.00">FOREIGN KEY (expected_payment_by_id) REFERENCES match_player(id)</text>
</g>
<!-- public.slot&#45;&gt;public.match_player -->
<g id="edge88" class="edge">
<title>public.slot:paid_by_id&#45;&gt;public.match_player:id</title>
<path fill="none" stroke="black" d="M7471.45,-5474.68C7540.29,-5447.85 7588.93,-5149.2 7518.4,-5149.2"/>
<polygon fill="black" stroke="black" points="7471.76,-5474.62 7461.08,-5472.12 7466.52,-5475.64 7462.27,-5476.47 7462.27,-5476.47 7462.27,-5476.47 7466.52,-5475.64 7462.81,-5480.95 7471.76,-5474.62"/>
<text text-anchor="start" x="7468.61" y="-5460.6" font-family="Arial" font-size="10.00">FOREIGN KEY (paid_by_id) REFERENCES match_player(id)</text>
</g>
<!-- public.slot&#45;&gt;public.match_player -->
<g id="edge89" class="edge">
<title>public.slot:player_id&#45;&gt;public.match_player:id</title>
<path fill="none" stroke="black" d="M7470.77,-5626.14C7521.55,-5577.61 7569.21,-5149.2 7518.4,-5149.2"/>
<polygon fill="black" stroke="black" points="7470.91,-5626.08 7459.95,-5626.41 7466.11,-5628.41 7462.22,-5630.31 7462.22,-5630.31 7462.22,-5630.31 7466.11,-5628.41 7463.88,-5634.5 7470.91,-5626.08"/>
<text text-anchor="start" x="7468.61" y="-5640.6" font-family="Arial" font-size="10.00">FOREIGN KEY (player_id) REFERENCES match_player(id)</text>
</g>
<!-- public.club_price_list -->
<g id="node52" class="node">
<title>public.club_price_list</title>
<polygon fill="#efefef" stroke="none" points="1824.6,-2673.2 1824.6,-2708.8 2136.64,-2708.8 2136.64,-2673.2 1824.6,-2673.2"/>
<polygon fill="none" stroke="black" points="1824.6,-2673.2 1824.6,-2708.8 2136.64,-2708.8 2136.64,-2673.2 1824.6,-2673.2"/>
<text text-anchor="start" x="1840.14" y="-2686.6" font-family="Arial Bold" font-size="18.00">public.club_price_list</text>
<text text-anchor="start" x="1996.61" y="-2686.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2027.72" y="-2686.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="1824.6,-2642.4 1824.6,-2673.2 2136.64,-2673.2 2136.64,-2642.4 1824.6,-2642.4"/>
<text text-anchor="start" x="1831.6" y="-2654.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="1846.39" y="-2654.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1824.6,-2611.6 1824.6,-2642.4 2136.64,-2642.4 2136.64,-2611.6 1824.6,-2611.6"/>
<text text-anchor="start" x="1831.6" y="-2623.8" font-family="Arial" font-size="14.00">assigned_club_id </text>
<text text-anchor="start" x="1943.69" y="-2623.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1824.6,-2580.8 1824.6,-2611.6 2136.64,-2611.6 2136.64,-2580.8 1824.6,-2580.8"/>
<text text-anchor="start" x="1831.6" y="-2593" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="1901.65" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="1824.6,-2550 1824.6,-2580.8 2136.64,-2580.8 2136.64,-2550 1824.6,-2550"/>
<text text-anchor="start" x="1831.6" y="-2562.2" font-family="Arial" font-size="14.00">valid_from </text>
<text text-anchor="start" x="1900.07" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="1824.6,-2519.2 1824.6,-2550 2136.64,-2550 2136.64,-2519.2 1824.6,-2519.2"/>
<text text-anchor="start" x="1831.6" y="-2531.4" font-family="Arial" font-size="14.00">pricing </text>
<text text-anchor="start" x="1876.73" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="1824.6,-2488.4 1824.6,-2519.2 2136.64,-2519.2 2136.64,-2488.4 1824.6,-2488.4"/>
<text text-anchor="start" x="1831.6" y="-2500.6" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="1914.89" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="1824.6,-2457.6 1824.6,-2488.4 2136.64,-2488.4 2136.64,-2457.6 1824.6,-2457.6"/>
<text text-anchor="start" x="1831.6" y="-2469.8" font-family="Arial" font-size="14.00">fallback_price_per_hour_amount </text>
<text text-anchor="start" x="2039.4" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="1824.6,-2426.8 1824.6,-2457.6 2136.64,-2457.6 2136.64,-2426.8 1824.6,-2426.8"/>
<text text-anchor="start" x="1831.6" y="-2439" font-family="Arial" font-size="14.00">fallback_price_per_hour_currency </text>
<text text-anchor="start" x="2046.39" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="1824.6,-2396 1824.6,-2426.8 2136.64,-2426.8 2136.64,-2396 1824.6,-2396"/>
<text text-anchor="start" x="1831.6" y="-2408.2" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="1889.96" y="-2408.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="1824.6,-2365.2 1824.6,-2396 2136.64,-2396 2136.64,-2365.2 1824.6,-2365.2"/>
<text text-anchor="start" x="1831.6" y="-2377.4" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="1857.28" y="-2377.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.club_price_list&#45;&gt;public.club -->
<g id="edge90" class="edge">
<title>public.club_price_list:assigned_club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M2147.81,-2625.77C2245.67,-2600.62 2121.49,-2196.82 2188.62,-2106.4 2279.09,-1984.54 2352.55,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="2147.9,-2625.76 2137.43,-2622.49 2142.6,-2626.4 2138.3,-2626.92 2138.3,-2626.92 2138.3,-2626.92 2142.6,-2626.4 2138.51,-2631.43 2147.9,-2625.76"/>
<text text-anchor="start" x="2006.76" y="-2611" font-family="Arial" font-size="10.00">FOREIGN KEY (assigned_club_id) REFERENCES club(id)</text>
</g>
<!-- public.location -->
<g id="node53" class="node">
<title>public.location</title>
<polygon fill="#efefef" stroke="none" points="9247.18,-6296.8 9247.18,-6332.4 9514.06,-6332.4 9514.06,-6296.8 9247.18,-6296.8"/>
<polygon fill="none" stroke="black" points="9247.18,-6296.8 9247.18,-6332.4 9514.06,-6332.4 9514.06,-6296.8 9247.18,-6296.8"/>
<text text-anchor="start" x="9264.64" y="-6310.2" font-family="Arial Bold" font-size="18.00">public.location</text>
<text text-anchor="start" x="9372.11" y="-6310.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="9403.23" y="-6310.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="9247.18,-6266 9247.18,-6296.8 9514.06,-6296.8 9514.06,-6266 9247.18,-6266"/>
<text text-anchor="start" x="9254.18" y="-6278.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="9268.97" y="-6278.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="9247.18,-6235.2 9247.18,-6266 9514.06,-6266 9514.06,-6235.2 9247.18,-6235.2"/>
<text text-anchor="start" x="9254.18" y="-6247.4" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="9324.23" y="-6247.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="9247.18,-6204.4 9247.18,-6235.2 9514.06,-6235.2 9514.06,-6204.4 9247.18,-6204.4"/>
<text text-anchor="start" x="9254.18" y="-6216.6" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="9293.09" y="-6216.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="9247.18,-6173.6 9247.18,-6204.4 9514.06,-6204.4 9514.06,-6173.6 9247.18,-6173.6"/>
<text text-anchor="start" x="9254.18" y="-6185.8" font-family="Arial" font-size="14.00">position_latitude </text>
<text text-anchor="start" x="9359.25" y="-6185.8" font-family="Arial" font-size="14.00" fill="#666666">[numeric(9,7)]</text>
<polygon fill="none" stroke="black" points="9247.18,-6142.8 9247.18,-6173.6 9514.06,-6173.6 9514.06,-6142.8 9247.18,-6142.8"/>
<text text-anchor="start" x="9254.18" y="-6155" font-family="Arial" font-size="14.00">position_longitude </text>
<text text-anchor="start" x="9370.94" y="-6155" font-family="Arial" font-size="14.00" fill="#666666">[numeric(9,7)]</text>
</g>
<!-- public.holiday -->
<g id="node54" class="node">
<title>public.holiday</title>
<polygon fill="#efefef" stroke="none" points="9630.18,-5707.6 9630.18,-5743.2 9897.06,-5743.2 9897.06,-5707.6 9630.18,-5707.6"/>
<polygon fill="none" stroke="black" points="9630.18,-5707.6 9630.18,-5743.2 9897.06,-5743.2 9897.06,-5707.6 9630.18,-5707.6"/>
<text text-anchor="start" x="9649.63" y="-5721" font-family="Arial Bold" font-size="18.00">public.holiday</text>
<text text-anchor="start" x="9753.12" y="-5721" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="9784.23" y="-5721" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="9630.18,-5676.8 9630.18,-5707.6 9897.06,-5707.6 9897.06,-5676.8 9630.18,-5676.8"/>
<text text-anchor="start" x="9637.18" y="-5689" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="9651.97" y="-5689" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="9630.18,-5646 9630.18,-5676.8 9897.06,-5676.8 9897.06,-5646 9630.18,-5646"/>
<text text-anchor="start" x="9637.18" y="-5658.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="9707.23" y="-5658.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="9630.18,-5615.2 9630.18,-5646 9897.06,-5646 9897.06,-5615.2 9630.18,-5615.2"/>
<text text-anchor="start" x="9637.18" y="-5627.4" font-family="Arial" font-size="14.00">start_date </text>
<text text-anchor="start" x="9703.33" y="-5627.4" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="9630.18,-5584.4 9630.18,-5615.2 9897.06,-5615.2 9897.06,-5584.4 9630.18,-5584.4"/>
<text text-anchor="start" x="9637.18" y="-5596.6" font-family="Arial" font-size="14.00">end_date </text>
<text text-anchor="start" x="9699.46" y="-5596.6" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="9630.18,-5553.6 9630.18,-5584.4 9897.06,-5584.4 9897.06,-5553.6 9630.18,-5553.6"/>
<text text-anchor="start" x="9637.18" y="-5565.8" font-family="Arial" font-size="14.00">is_nationwide </text>
<text text-anchor="start" x="9725.9" y="-5565.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="9630.18,-5522.8 9630.18,-5553.6 9897.06,-5553.6 9897.06,-5522.8 9630.18,-5522.8"/>
<text text-anchor="start" x="9637.18" y="-5535" font-family="Arial" font-size="14.00">open_holiday_id </text>
<text text-anchor="start" x="9743.05" y="-5535" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="9630.18,-5492 9630.18,-5522.8 9897.06,-5522.8 9897.06,-5492 9630.18,-5492"/>
<text text-anchor="start" x="9637.18" y="-5504.2" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="9676.09" y="-5504.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="9630.18,-5461.2 9630.18,-5492 9897.06,-5492 9897.06,-5461.2 9630.18,-5461.2"/>
<text text-anchor="start" x="9637.18" y="-5473.4" font-family="Arial" font-size="14.00">country_iso_code </text>
<text text-anchor="start" x="9750.81" y="-5473.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(10)]</text>
<polygon fill="none" stroke="black" points="9630.18,-5430.4 9630.18,-5461.2 9897.06,-5461.2 9897.06,-5430.4 9630.18,-5430.4"/>
<text text-anchor="start" x="9637.18" y="-5442.6" font-family="Arial" font-size="14.00">subdivisions </text>
<text text-anchor="start" x="9717.33" y="-5442.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
</g>
<!-- public.wellpass_account -->
<g id="node55" class="node">
<title>public.wellpass_account</title>
<polygon fill="#efefef" stroke="none" points="6258.15,-3416.4 6258.15,-3452 6573.09,-3452 6573.09,-3416.4 6258.15,-3416.4"/>
<polygon fill="none" stroke="black" points="6258.15,-3416.4 6258.15,-3452 6573.09,-3452 6573.09,-3416.4 6258.15,-3416.4"/>
<text text-anchor="start" x="6265.15" y="-3429.8" font-family="Arial Bold" font-size="18.00">public.wellpass_account</text>
<text text-anchor="start" x="6441.6" y="-3429.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6472.72" y="-3429.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6258.15,-3385.6 6258.15,-3416.4 6573.09,-3416.4 6573.09,-3385.6 6258.15,-3385.6"/>
<text text-anchor="start" x="6265.15" y="-3397.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6279.94" y="-3397.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6258.15,-3354.8 6258.15,-3385.6 6573.09,-3385.6 6573.09,-3354.8 6258.15,-3354.8"/>
<text text-anchor="start" x="6265.15" y="-3367" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6335.2" y="-3367" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6258.15,-3324 6258.15,-3354.8 6573.09,-3354.8 6573.09,-3324 6258.15,-3324"/>
<text text-anchor="start" x="6265.15" y="-3336.2" font-family="Arial" font-size="14.00">is_linked </text>
<text text-anchor="start" x="6323.52" y="-3336.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="6258.15,-3293.2 6258.15,-3324 6573.09,-3324 6573.09,-3293.2 6258.15,-3293.2"/>
<text text-anchor="start" x="6265.15" y="-3305.4" font-family="Arial" font-size="14.00">linked_at </text>
<text text-anchor="start" x="6325.08" y="-3305.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6258.15,-3262.4 6258.15,-3293.2 6573.09,-3293.2 6573.09,-3262.4 6258.15,-3262.4"/>
<text text-anchor="start" x="6265.15" y="-3274.6" font-family="Arial" font-size="14.00">member_account_id </text>
<text text-anchor="start" x="6395.89" y="-3274.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6258.15,-3231.6 6258.15,-3262.4 6573.09,-3262.4 6573.09,-3231.6 6258.15,-3231.6"/>
<text text-anchor="start" x="6265.15" y="-3243.8" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="6325.85" y="-3243.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6258.15,-3200.8 6258.15,-3231.6 6573.09,-3231.6 6573.09,-3200.8 6258.15,-3200.8"/>
<text text-anchor="start" x="6265.15" y="-3213" font-family="Arial" font-size="14.00">linked_with_email_address </text>
<text text-anchor="start" x="6437.14" y="-3213" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6258.15,-3170 6258.15,-3200.8 6573.09,-3200.8 6573.09,-3170 6258.15,-3170"/>
<text text-anchor="start" x="6265.15" y="-3182.2" font-family="Arial" font-size="14.00">user_group_member_id </text>
<text text-anchor="start" x="6417.68" y="-3182.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.wellpass_account&#45;&gt;public.user -->
<g id="edge91" class="edge">
<title>public.wellpass_account:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6247.19,-3246C6208.9,-3237.32 6242.43,-3173.91 6258.15,-3126.8 6285.98,-3043.39 6346.06,-3050.42 6375.62,-2967.6 6440.03,-2787.13 6400.12,-2297.12 6418.62,-2106.4 6461.53,-1664.09 6262.34,-1445.3 6561.62,-1116.8 6644.77,-1025.53 6978.28,-986.6 7101.75,-986.6"/>
<polygon fill="black" stroke="black" points="6246.87,-3245.97 6256.37,-3251.44 6252.18,-3246.5 6256.49,-3246.93 6256.49,-3246.93 6256.49,-3246.93 6252.18,-3246.5 6257.27,-3242.49 6246.87,-3245.97"/>
<text text-anchor="start" x="6016.89" y="-3257" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.wellpass_account&#45;&gt;public.member -->
<g id="edge92" class="edge">
<title>public.wellpass_account:user_group_member_id&#45;&gt;public.member:id</title>
<path fill="none" stroke="black" d="M6584.35,-3184.65C6649.74,-3174.11 6564.63,-3055.69 6625.62,-3003.6 6728.07,-2916.1 6830.31,-3061.81 6926.62,-2967.6 6983.74,-2911.72 6897.27,-2611.6 6977.18,-2611.6"/>
<polygon fill="black" stroke="black" points="6584.4,-3184.64 6574.09,-3180.89 6579.08,-3185.03 6574.76,-3185.35 6574.76,-3185.35 6574.76,-3185.35 6579.08,-3185.03 6574.75,-3189.86 6584.4,-3184.64"/>
<text text-anchor="start" x="6581.09" y="-3195.4" font-family="Arial" font-size="10.00">FOREIGN KEY (user_group_member_id) REFERENCES member(id)</text>
</g>
<!-- public.holiday_name -->
<g id="node56" class="node">
<title>public.holiday_name</title>
<polygon fill="#efefef" stroke="none" points="9618.64,-6281.4 9618.64,-6317 9908.6,-6317 9908.6,-6281.4 9618.64,-6281.4"/>
<polygon fill="none" stroke="black" points="9618.64,-6281.4 9618.64,-6317 9908.6,-6317 9908.6,-6281.4 9618.64,-6281.4"/>
<text text-anchor="start" x="9625.64" y="-6294.8" font-family="Arial Bold" font-size="18.00">public.holiday_name</text>
<text text-anchor="start" x="9777.11" y="-6294.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="9808.22" y="-6294.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="9618.64,-6250.6 9618.64,-6281.4 9908.6,-6281.4 9908.6,-6250.6 9618.64,-6250.6"/>
<text text-anchor="start" x="9625.64" y="-6262.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="9640.43" y="-6262.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="9618.64,-6219.8 9618.64,-6250.6 9908.6,-6250.6 9908.6,-6219.8 9618.64,-6219.8"/>
<text text-anchor="start" x="9625.64" y="-6232" font-family="Arial" font-size="14.00">holiday_id </text>
<text text-anchor="start" x="9692.58" y="-6232" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="9618.64,-6189 9618.64,-6219.8 9908.6,-6219.8 9908.6,-6189 9618.64,-6189"/>
<text text-anchor="start" x="9625.64" y="-6201.2" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="9664.55" y="-6201.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="9618.64,-6158.2 9618.64,-6189 9908.6,-6189 9908.6,-6158.2 9618.64,-6158.2"/>
<text text-anchor="start" x="9625.64" y="-6170.4" font-family="Arial" font-size="14.00">language_iso_code </text>
<text text-anchor="start" x="9750.97" y="-6170.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(10)]</text>
</g>
<!-- public.holiday_name&#45;&gt;public.holiday -->
<g id="edge93" class="edge">
<title>public.holiday_name:holiday_id&#45;&gt;public.holiday:id</title>
<path fill="none" stroke="black" d="M9918.86,-6230.51C9968.54,-6177.43 9955.11,-5692.2 9898.06,-5692.2"/>
<polygon fill="black" stroke="black" points="9918.81,-6230.53 9907.86,-6231.04 9914.06,-6232.94 9910.19,-6234.9 9910.19,-6234.9 9910.19,-6234.9 9914.06,-6232.94 9911.93,-6239.06 9918.81,-6230.53"/>
<text text-anchor="start" x="9788.17" y="-6219.2" font-family="Arial" font-size="10.00">FOREIGN KEY (holiday_id) REFERENCES holiday(id)</text>
</g>
<!-- public.day_opening_time_override -->
<g id="node57" class="node">
<title>public.day_opening_time_override</title>
<polygon fill="#efefef" stroke="none" points="938.16,-2642.4 938.16,-2678 1329.08,-2678 1329.08,-2642.4 938.16,-2642.4"/>
<polygon fill="none" stroke="black" points="938.16,-2642.4 938.16,-2678 1329.08,-2678 1329.08,-2642.4 938.16,-2642.4"/>
<text text-anchor="start" x="945.16" y="-2655.8" font-family="Arial Bold" font-size="18.00">public.day_opening_time_override</text>
<text text-anchor="start" x="1197.59" y="-2655.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1228.71" y="-2655.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="938.16,-2611.6 938.16,-2642.4 1329.08,-2642.4 1329.08,-2611.6 938.16,-2611.6"/>
<text text-anchor="start" x="945.16" y="-2623.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="959.95" y="-2623.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="938.16,-2580.8 938.16,-2611.6 1329.08,-2611.6 1329.08,-2580.8 938.16,-2580.8"/>
<text text-anchor="start" x="945.16" y="-2593" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="993.42" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="938.16,-2550 938.16,-2580.8 1329.08,-2580.8 1329.08,-2550 938.16,-2550"/>
<text text-anchor="start" x="945.16" y="-2562.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="1015.21" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="938.16,-2519.2 938.16,-2550 1329.08,-2550 1329.08,-2519.2 938.16,-2519.2"/>
<text text-anchor="start" x="945.16" y="-2531.4" font-family="Arial" font-size="14.00">date </text>
<text text-anchor="start" x="976.3" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="938.16,-2488.4 938.16,-2519.2 1329.08,-2519.2 1329.08,-2488.4 938.16,-2488.4"/>
<text text-anchor="start" x="945.16" y="-2500.6" font-family="Arial" font-size="14.00">opens_at </text>
<text text-anchor="start" x="1006.66" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="938.16,-2457.6 938.16,-2488.4 1329.08,-2488.4 1329.08,-2457.6 938.16,-2457.6"/>
<text text-anchor="start" x="945.16" y="-2469.8" font-family="Arial" font-size="14.00">closes_at </text>
<text text-anchor="start" x="1008.19" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="938.16,-2426.8 938.16,-2457.6 1329.08,-2457.6 1329.08,-2426.8 938.16,-2426.8"/>
<text text-anchor="start" x="945.16" y="-2439" font-family="Arial" font-size="14.00">opened_hours </text>
<text text-anchor="start" x="1038.57" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[numeric(4,2)]</text>
<polygon fill="none" stroke="black" points="938.16,-2396 938.16,-2426.8 1329.08,-2426.8 1329.08,-2396 938.16,-2396"/>
<text text-anchor="start" x="945.16" y="-2408.2" font-family="Arial" font-size="14.00">is_opened </text>
<text text-anchor="start" x="1013.66" y="-2408.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.day_opening_time_override&#45;&gt;public.club -->
<g id="edge94" class="edge">
<title>public.day_opening_time_override:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M1340.19,-2594.86C1430.72,-2569.21 1306.29,-2181.67 1380.62,-2106.4 1468.94,-2016.97 2378.63,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="1340.33,-2594.85 1329.82,-2591.69 1335.04,-2595.55 1330.74,-2596.11 1330.74,-2596.11 1330.74,-2596.11 1335.04,-2595.55 1331,-2600.62 1340.33,-2594.85"/>
<text text-anchor="start" x="1337.08" y="-2606.2" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.cancellation -->
<g id="node58" class="node">
<title>public.cancellation</title>
<polygon fill="#efefef" stroke="none" points="6663.15,-5103 6663.15,-5138.6 6938.09,-5138.6 6938.09,-5103 6663.15,-5103"/>
<polygon fill="none" stroke="black" points="6663.15,-5103 6663.15,-5138.6 6938.09,-5138.6 6938.09,-5103 6663.15,-5103"/>
<text text-anchor="start" x="6670.15" y="-5116.4" font-family="Arial Bold" font-size="18.00">public.cancellation</text>
<text text-anchor="start" x="6806.6" y="-5116.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="6837.71" y="-5116.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="6663.15,-5072.2 6663.15,-5103 6938.09,-5103 6938.09,-5072.2 6663.15,-5072.2"/>
<text text-anchor="start" x="6670.15" y="-5084.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="6684.94" y="-5084.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6663.15,-5041.4 6663.15,-5072.2 6938.09,-5072.2 6938.09,-5041.4 6663.15,-5041.4"/>
<text text-anchor="start" x="6670.15" y="-5053.6" font-family="Arial" font-size="14.00">initiated_by_id </text>
<text text-anchor="start" x="6763.55" y="-5053.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6663.15,-5010.6 6663.15,-5041.4 6938.09,-5041.4 6938.09,-5010.6 6663.15,-5010.6"/>
<text text-anchor="start" x="6670.15" y="-5022.8" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="6740.2" y="-5022.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="6663.15,-4979.8 6663.15,-5010.6 6938.09,-5010.6 6938.09,-4979.8 6663.15,-4979.8"/>
<text text-anchor="start" x="6670.15" y="-4992" font-family="Arial" font-size="14.00">refund_strategy </text>
<text text-anchor="start" x="6771.33" y="-4992" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6663.15,-4949 6663.15,-4979.8 6938.09,-4979.8 6938.09,-4949 6663.15,-4949"/>
<text text-anchor="start" x="6670.15" y="-4961.2" font-family="Arial" font-size="14.00">reason </text>
<text text-anchor="start" x="6716.85" y="-4961.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6663.15,-4918.2 6663.15,-4949 6938.09,-4949 6938.09,-4918.2 6663.15,-4918.2"/>
<text text-anchor="start" x="6670.15" y="-4930.4" font-family="Arial" font-size="14.00">initiator_role </text>
<text text-anchor="start" x="6750.31" y="-4930.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="6663.15,-4887.4 6663.15,-4918.2 6938.09,-4918.2 6938.09,-4887.4 6663.15,-4887.4"/>
<text text-anchor="start" x="6670.15" y="-4899.6" font-family="Arial" font-size="14.00">game_id </text>
<text text-anchor="start" x="6727.75" y="-4899.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="6663.15,-4856.6 6663.15,-4887.4 6938.09,-4887.4 6938.09,-4856.6 6663.15,-4856.6"/>
<text text-anchor="start" x="6670.15" y="-4868.8" font-family="Arial" font-size="14.00">payout_method </text>
<text text-anchor="start" x="6770.56" y="-4868.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.cancellation&#45;&gt;public.game -->
<g id="edge95" class="edge">
<title>public.cancellation:game_id&#45;&gt;public.game:id</title>
<path fill="none" stroke="black" d="M6651.84,-4902.53C6464.03,-4892.46 6519.82,-4606.2 6323.13,-4606.2"/>
<polygon fill="black" stroke="black" points="6651.82,-4902.53 6661.7,-4907.29 6657.16,-4902.67 6661.49,-4902.78 6661.49,-4902.78 6661.49,-4902.78 6657.16,-4902.67 6661.94,-4898.29 6651.82,-4902.53"/>
<text text-anchor="start" x="6425.65" y="-4912.8" font-family="Arial" font-size="10.00">FOREIGN KEY (game_id) REFERENCES game(id)</text>
</g>
<!-- public.cancellation&#45;&gt;public.user -->
<g id="edge96" class="edge">
<title>public.cancellation:initiated_by_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M6949.21,-5055.36C7121.26,-5007.56 7426.94,-3782.12 7457.62,-3618.4 7584.39,-2941.97 7486.58,-2758.55 7495.62,-2070.4 7496.41,-2010.19 7557.7,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="6949.32,-5055.35 6938.78,-5052.3 6944.04,-5056.1 6939.75,-5056.71 6939.75,-5056.71 6939.75,-5056.71 6944.04,-5056.1 6940.05,-5061.21 6949.32,-5055.35"/>
<text text-anchor="start" x="6878.43" y="-5040.8" font-family="Arial" font-size="10.00">FOREIGN KEY (initiated_by_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.access_grant -->
<g id="node59" class="node">
<title>public.access_grant</title>
<polygon fill="#efefef" stroke="none" points="2240.65,-2642.4 2240.65,-2678 2520.59,-2678 2520.59,-2642.4 2240.65,-2642.4"/>
<polygon fill="none" stroke="black" points="2240.65,-2642.4 2240.65,-2678 2520.59,-2678 2520.59,-2642.4 2240.65,-2642.4"/>
<text text-anchor="start" x="2247.65" y="-2655.8" font-family="Arial Bold" font-size="18.00">public.access_grant</text>
<text text-anchor="start" x="2389.1" y="-2655.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="2420.21" y="-2655.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="2240.65,-2611.6 2240.65,-2642.4 2520.59,-2642.4 2520.59,-2611.6 2240.65,-2611.6"/>
<text text-anchor="start" x="2247.65" y="-2623.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="2262.44" y="-2623.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2240.65,-2580.8 2240.65,-2611.6 2520.59,-2611.6 2520.59,-2580.8 2240.65,-2580.8"/>
<text text-anchor="start" x="2247.65" y="-2593" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="2295.91" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="2240.65,-2550 2240.65,-2580.8 2520.59,-2580.8 2520.59,-2550 2240.65,-2550"/>
<text text-anchor="start" x="2247.65" y="-2562.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="2317.7" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="2240.65,-2519.2 2240.65,-2550 2520.59,-2550 2520.59,-2519.2 2240.65,-2519.2"/>
<text text-anchor="start" x="2247.65" y="-2531.4" font-family="Arial" font-size="14.00">entity_type </text>
<text text-anchor="start" x="2319.25" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2240.65,-2488.4 2240.65,-2519.2 2520.59,-2519.2 2520.59,-2488.4 2240.65,-2488.4"/>
<text text-anchor="start" x="2247.65" y="-2500.6" font-family="Arial" font-size="14.00">code </text>
<text text-anchor="start" x="2281.9" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="2240.65,-2457.6 2240.65,-2488.4 2520.59,-2488.4 2520.59,-2457.6 2240.65,-2457.6"/>
<text text-anchor="start" x="2247.65" y="-2469.8" font-family="Arial" font-size="14.00">valid_from </text>
<text text-anchor="start" x="2316.12" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="2240.65,-2426.8 2240.65,-2457.6 2520.59,-2457.6 2520.59,-2426.8 2240.65,-2426.8"/>
<text text-anchor="start" x="2247.65" y="-2439" font-family="Arial" font-size="14.00">valid_till </text>
<text text-anchor="start" x="2301.34" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="2240.65,-2396 2240.65,-2426.8 2520.59,-2426.8 2520.59,-2396 2240.65,-2396"/>
<text text-anchor="start" x="2247.65" y="-2408.2" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="2330.94" y="-2408.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
</g>
<!-- public.access_grant&#45;&gt;public.club -->
<g id="edge97" class="edge">
<title>public.access_grant:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M2531.61,-2594.93C2644.27,-2563.94 2370.12,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="2531.84,-2594.9 2521.35,-2591.69 2526.55,-2595.57 2522.25,-2596.12 2522.25,-2596.12 2522.25,-2596.12 2526.55,-2595.57 2522.48,-2600.62 2531.84,-2594.9"/>
<text text-anchor="start" x="2471.05" y="-2580.2" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.voucher_reservation -->
<g id="node60" class="node">
<title>public.voucher_reservation</title>
<polygon fill="#efefef" stroke="none" points="8066.16,-2642.4 8066.16,-2678 8401.08,-2678 8401.08,-2642.4 8066.16,-2642.4"/>
<polygon fill="none" stroke="black" points="8066.16,-2642.4 8066.16,-2678 8401.08,-2678 8401.08,-2642.4 8066.16,-2642.4"/>
<text text-anchor="start" x="8073.16" y="-2655.8" font-family="Arial Bold" font-size="18.00">public.voucher_reservation</text>
<text text-anchor="start" x="8269.59" y="-2655.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="8300.71" y="-2655.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="8066.16,-2611.6 8066.16,-2642.4 8401.08,-2642.4 8401.08,-2611.6 8066.16,-2611.6"/>
<text text-anchor="start" x="8073.16" y="-2623.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="8087.95" y="-2623.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8066.16,-2580.8 8066.16,-2611.6 8401.08,-2611.6 8401.08,-2580.8 8066.16,-2580.8"/>
<text text-anchor="start" x="8073.16" y="-2593" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="8133.87" y="-2593" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8066.16,-2550 8066.16,-2580.8 8401.08,-2580.8 8401.08,-2550 8066.16,-2550"/>
<text text-anchor="start" x="8073.16" y="-2562.2" font-family="Arial" font-size="14.00">stripe_payment_intent_id </text>
<text text-anchor="start" x="8233.49" y="-2562.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="8066.16,-2519.2 8066.16,-2550 8401.08,-2550 8401.08,-2519.2 8066.16,-2519.2"/>
<text text-anchor="start" x="8073.16" y="-2531.4" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="8143.21" y="-2531.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="8066.16,-2488.4 8066.16,-2519.2 8401.08,-2519.2 8401.08,-2488.4 8066.16,-2488.4"/>
<text text-anchor="start" x="8073.16" y="-2500.6" font-family="Arial" font-size="14.00">voucher_id </text>
<text text-anchor="start" x="8145.54" y="-2500.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="8066.16,-2457.6 8066.16,-2488.4 8401.08,-2488.4 8401.08,-2457.6 8066.16,-2457.6"/>
<text text-anchor="start" x="8073.16" y="-2469.8" font-family="Arial" font-size="14.00">is_paid </text>
<text text-anchor="start" x="8121.42" y="-2469.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="8066.16,-2426.8 8066.16,-2457.6 8401.08,-2457.6 8401.08,-2426.8 8066.16,-2426.8"/>
<text text-anchor="start" x="8073.16" y="-2439" font-family="Arial" font-size="14.00">amount_amount </text>
<text text-anchor="start" x="8178.23" y="-2439" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="8066.16,-2396 8066.16,-2426.8 8401.08,-2426.8 8401.08,-2396 8066.16,-2396"/>
<text text-anchor="start" x="8073.16" y="-2408.2" font-family="Arial" font-size="14.00">amount_currency </text>
<text text-anchor="start" x="8185.22" y="-2408.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.voucher_reservation&#45;&gt;public.user -->
<g id="edge98" class="edge">
<title>public.voucher_reservation:owner_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M8056.65,-2590.49C7988.48,-2493.01 8058.41,-1178.39 8008.62,-1116.8 7934.94,-1025.64 7614.7,-986.6 7497.49,-986.6"/>
<polygon fill="black" stroke="black" points="8056.58,-2590.45 8062.38,-2599.75 8061.01,-2593.42 8064.61,-2595.83 8064.61,-2595.83 8064.61,-2595.83 8061.01,-2593.42 8067.39,-2592.28 8056.58,-2590.45"/>
<text text-anchor="start" x="7824.9" y="-2606.2" font-family="Arial" font-size="10.00">FOREIGN KEY (owner_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.voucher_reservation&#45;&gt;public.voucher -->
<g id="edge99" class="edge">
<title>public.voucher_reservation:voucher_id&#45;&gt;public.voucher:id</title>
<path fill="none" stroke="black" d="M8412.41,-2502.98C8463.95,-2493.99 8420.99,-2412.9 8401.08,-2352.8 8330.77,-2140.54 8174.14,-2159.32 8103.4,-1947.2 8090.15,-1907.48 8060.53,-1853 8102.4,-1853"/>
<polygon fill="black" stroke="black" points="8412.38,-2502.98 8402.06,-2499.29 8407.06,-2503.4 8402.74,-2503.75 8402.74,-2503.75 8402.74,-2503.75 8407.06,-2503.4 8402.77,-2508.26 8412.38,-2502.98"/>
<text text-anchor="start" x="8409.08" y="-2487.8" font-family="Arial" font-size="10.00">FOREIGN KEY (voucher_id) REFERENCES voucher(id)</text>
</g>
<!-- public.club_equipment -->
<g id="node61" class="node">
<title>public.club_equipment</title>
<polygon fill="#efefef" stroke="none" points="4473.64,-3370.2 4473.64,-3405.8 4777.6,-3405.8 4777.6,-3370.2 4473.64,-3370.2"/>
<polygon fill="none" stroke="black" points="4473.64,-3370.2 4473.64,-3405.8 4777.6,-3405.8 4777.6,-3370.2 4473.64,-3370.2"/>
<text text-anchor="start" x="4480.64" y="-3383.6" font-family="Arial Bold" font-size="18.00">public.club_equipment</text>
<text text-anchor="start" x="4646.11" y="-3383.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="4677.22" y="-3383.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="4473.64,-3339.4 4473.64,-3370.2 4777.6,-3370.2 4777.6,-3339.4 4473.64,-3339.4"/>
<text text-anchor="start" x="4480.64" y="-3351.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="4495.43" y="-3351.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4473.64,-3308.6 4473.64,-3339.4 4777.6,-3339.4 4777.6,-3308.6 4473.64,-3308.6"/>
<text text-anchor="start" x="4480.64" y="-3320.8" font-family="Arial" font-size="14.00">equipment_id </text>
<text text-anchor="start" x="4568.6" y="-3320.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4473.64,-3277.8 4473.64,-3308.6 4777.6,-3308.6 4777.6,-3277.8 4473.64,-3277.8"/>
<text text-anchor="start" x="4480.64" y="-3290" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="4528.9" y="-3290" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="4473.64,-3247 4473.64,-3277.8 4777.6,-3277.8 4777.6,-3247 4473.64,-3247"/>
<text text-anchor="start" x="4480.64" y="-3259.2" font-family="Arial" font-size="14.00">price_amount </text>
<text text-anchor="start" x="4569.36" y="-3259.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="4473.64,-3216.2 4473.64,-3247 4777.6,-3247 4777.6,-3216.2 4473.64,-3216.2"/>
<text text-anchor="start" x="4480.64" y="-3228.4" font-family="Arial" font-size="14.00">price_currency </text>
<text text-anchor="start" x="4576.35" y="-3228.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
</g>
<!-- public.club_equipment&#45;&gt;public.club -->
<g id="edge100" class="edge">
<title>public.club_equipment:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M4462.32,-3293.05C4242.02,-3286.59 4257.55,-3072.67 4040.62,-3003.6 3967.17,-2980.21 2708.93,-3021.29 2653.62,-2967.6 2584.85,-2900.85 2662.93,-2183.22 2605.62,-2106.4 2577.3,-2068.44 2532.78,-2108.99 2505.32,-2070.4 2481.05,-2036.28 2462.45,-1976.2 2504.32,-1976.2"/>
<polygon fill="black" stroke="black" points="4462.31,-3293.05 4472.24,-3297.69 4467.64,-3293.13 4471.98,-3293.19 4471.98,-3293.19 4471.98,-3293.19 4467.64,-3293.13 4472.37,-3288.7 4462.31,-3293.05"/>
<text text-anchor="start" x="4249.48" y="-3277.2" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id)</text>
</g>
<!-- public.club_equipment&#45;&gt;public.equipment -->
<g id="edge101" class="edge">
<title>public.club_equipment:equipment_id&#45;&gt;public.equipment:id</title>
<path fill="none" stroke="black" d="M4788.72,-3322.91C4923.08,-3291.67 4524.2,-2596.2 4683.64,-2596.2"/>
<polygon fill="black" stroke="black" points="4788.87,-3322.9 4778.45,-3319.49 4783.57,-3323.47 4779.26,-3323.93 4779.26,-3323.93 4779.26,-3323.93 4783.57,-3323.47 4779.41,-3328.44 4788.87,-3322.9"/>
<text text-anchor="start" x="4785.6" y="-3334" font-family="Arial" font-size="10.00">FOREIGN KEY (equipment_id) REFERENCES equipment(id)</text>
</g>
<!-- public.audit_log -->
<g id="node62" class="node">
<title>public.audit_log</title>
<polygon fill="#efefef" stroke="none" points="10012.56,-6481.6 10012.56,-6517.2 10306.68,-6517.2 10306.68,-6481.6 10012.56,-6481.6"/>
<polygon fill="none" stroke="black" points="10012.56,-6481.6 10012.56,-6517.2 10306.68,-6517.2 10306.68,-6481.6 10012.56,-6481.6"/>
<text text-anchor="start" x="10038.63" y="-6495" font-family="Arial Bold" font-size="18.00">public.audit_log</text>
<text text-anchor="start" x="10156.12" y="-6495" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="10187.23" y="-6495" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="10012.56,-6450.8 10012.56,-6481.6 10306.68,-6481.6 10306.68,-6450.8 10012.56,-6450.8"/>
<text text-anchor="start" x="10019.56" y="-6463" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="10034.35" y="-6463" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="10012.56,-6420 10012.56,-6450.8 10306.68,-6450.8 10306.68,-6420 10012.56,-6420"/>
<text text-anchor="start" x="10019.56" y="-6432.2" font-family="Arial" font-size="14.00">occurred_at </text>
<text text-anchor="start" x="10097.38" y="-6432.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) without time zone]</text>
<polygon fill="none" stroke="black" points="10012.56,-6389.2 10012.56,-6420 10306.68,-6420 10306.68,-6389.2 10012.56,-6389.2"/>
<text text-anchor="start" x="10019.56" y="-6401.4" font-family="Arial" font-size="14.00">action </text>
<text text-anchor="start" x="10060.81" y="-6401.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(16)]</text>
<polygon fill="none" stroke="black" points="10012.56,-6358.4 10012.56,-6389.2 10306.68,-6389.2 10306.68,-6358.4 10012.56,-6358.4"/>
<text text-anchor="start" x="10019.56" y="-6370.6" font-family="Arial" font-size="14.00">target_class </text>
<text text-anchor="start" x="10098.93" y="-6370.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(191)]</text>
<polygon fill="none" stroke="black" points="10012.56,-6327.6 10012.56,-6358.4 10306.68,-6358.4 10306.68,-6327.6 10012.56,-6327.6"/>
<text text-anchor="start" x="10019.56" y="-6339.8" font-family="Arial" font-size="14.00">target_id </text>
<text text-anchor="start" x="10077.93" y="-6339.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="10012.56,-6296.8 10012.56,-6327.6 10306.68,-6327.6 10306.68,-6296.8 10012.56,-6296.8"/>
<text text-anchor="start" x="10019.56" y="-6309" font-family="Arial" font-size="14.00">actor_user_id </text>
<text text-anchor="start" x="10108.28" y="-6309" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="10012.56,-6266 10012.56,-6296.8 10306.68,-6296.8 10306.68,-6266 10012.56,-6266"/>
<text text-anchor="start" x="10019.56" y="-6278.2" font-family="Arial" font-size="14.00">actor_email </text>
<text text-anchor="start" x="10095.82" y="-6278.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(191)]</text>
<polygon fill="none" stroke="black" points="10012.56,-6235.2 10012.56,-6266 10306.68,-6266 10306.68,-6235.2 10012.56,-6235.2"/>
<text text-anchor="start" x="10019.56" y="-6247.4" font-family="Arial" font-size="14.00">request_id </text>
<text text-anchor="start" x="10088.83" y="-6247.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="10012.56,-6204.4 10012.56,-6235.2 10306.68,-6235.2 10306.68,-6204.4 10012.56,-6204.4"/>
<text text-anchor="start" x="10019.56" y="-6216.6" font-family="Arial" font-size="14.00">ip </text>
<text text-anchor="start" x="10034.35" y="-6216.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="10012.56,-6173.6 10012.56,-6204.4 10306.68,-6204.4 10306.68,-6173.6 10012.56,-6173.6"/>
<text text-anchor="start" x="10019.56" y="-6185.8" font-family="Arial" font-size="14.00">user_agent </text>
<text text-anchor="start" x="10093.51" y="-6185.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="10012.56,-6142.8 10012.56,-6173.6 10306.68,-6173.6 10306.68,-6142.8 10012.56,-6142.8"/>
<text text-anchor="start" x="10019.56" y="-6155" font-family="Arial" font-size="14.00">source </text>
<text text-anchor="start" x="10065.47" y="-6155" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="10012.56,-6112 10012.56,-6142.8 10306.68,-6142.8 10306.68,-6112 10012.56,-6112"/>
<text text-anchor="start" x="10019.56" y="-6124.2" font-family="Arial" font-size="14.00">changes </text>
<text text-anchor="start" x="10076.38" y="-6124.2" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="10012.56,-6081.2 10012.56,-6112 10306.68,-6112 10306.68,-6081.2 10012.56,-6081.2"/>
<text text-anchor="start" x="10019.56" y="-6093.4" font-family="Arial" font-size="14.00">before_snapshot </text>
<text text-anchor="start" x="10127.75" y="-6093.4" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="10012.56,-6050.4 10012.56,-6081.2 10306.68,-6081.2 10306.68,-6050.4 10012.56,-6050.4"/>
<text text-anchor="start" x="10019.56" y="-6062.6" font-family="Arial" font-size="14.00">after_snapshot </text>
<text text-anchor="start" x="10116.07" y="-6062.6" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="10012.56,-6019.6 10012.56,-6050.4 10306.68,-6050.4 10306.68,-6019.6 10012.56,-6019.6"/>
<text text-anchor="start" x="10019.56" y="-6031.8" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="10049.91" y="-6031.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="10012.56,-5988.8 10012.56,-6019.6 10306.68,-6019.6 10306.68,-5988.8 10012.56,-5988.8"/>
<text text-anchor="start" x="10019.56" y="-6001" font-family="Arial" font-size="14.00">type_id </text>
<text text-anchor="start" x="10068.6" y="-6001" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="10012.56,-5958 10012.56,-5988.8 10306.68,-5988.8 10306.68,-5958 10012.56,-5958"/>
<text text-anchor="start" x="10019.56" y="-5970.2" font-family="Arial" font-size="14.00">actor_role </text>
<text text-anchor="start" x="10085.71" y="-5970.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
</g>
</g>
</svg>
