<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
 -->
<!-- Title: public.court Pages: 1 -->
<svg width="1680pt" height="2485pt"
 viewBox="0.00 0.00 1679.71 2484.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 2480.8)">
<title>public.court</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-2480.8 1675.71,-2480.8 1675.71,4 -4,4"/>
<!-- public.court -->
<g id="node1" class="node">
<title>public.court</title>
<polygon fill="#efefef" stroke="none" points="723.06,-1313 723.06,-1348.6 948.03,-1348.6 948.03,-1313 723.06,-1313"/>
<polygon fill="none" stroke="black" points="723.06,-1313 723.06,-1348.6 948.03,-1348.6 948.03,-1313 723.06,-1313"/>
<text text-anchor="start" x="730.06" y="-1326.4" font-family="Arial Bold" font-size="18.00">public.court</text>
<text text-anchor="start" x="816.54" y="-1326.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="847.65" y="-1326.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="723.06,-1282.2 723.06,-1313 948.03,-1313 948.03,-1282.2 723.06,-1282.2"/>
<text text-anchor="start" x="730.06" y="-1294.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="744.85" y="-1294.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="723.06,-1251.4 723.06,-1282.2 948.03,-1282.2 948.03,-1251.4 723.06,-1251.4"/>
<text text-anchor="start" x="730.06" y="-1263.6" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="768.97" y="-1263.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="723.06,-1220.6 723.06,-1251.4 948.03,-1251.4 948.03,-1220.6 723.06,-1220.6"/>
<text text-anchor="start" x="730.06" y="-1232.8" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="778.32" y="-1232.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="723.06,-1189.8 723.06,-1220.6 948.03,-1220.6 948.03,-1189.8 723.06,-1189.8"/>
<text text-anchor="start" x="730.06" y="-1202" font-family="Arial" font-size="14.00">location_type </text>
<text text-anchor="start" x="816.45" y="-1202" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="723.06,-1159 723.06,-1189.8 948.03,-1189.8 948.03,-1159 723.06,-1159"/>
<text text-anchor="start" x="730.06" y="-1171.2" font-family="Arial" font-size="14.00">match_type </text>
<text text-anchor="start" x="806.32" y="-1171.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="723.06,-1128.2 723.06,-1159 948.03,-1159 948.03,-1128.2 723.06,-1128.2"/>
<text text-anchor="start" x="730.06" y="-1140.4" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="813.34" y="-1140.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="723.06,-1097.4 723.06,-1128.2 948.03,-1128.2 948.03,-1097.4 723.06,-1097.4"/>
<text text-anchor="start" x="730.06" y="-1109.6" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="788.42" y="-1109.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="723.06,-1066.6 723.06,-1097.4 948.03,-1097.4 948.03,-1066.6 723.06,-1066.6"/>
<text text-anchor="start" x="730.06" y="-1078.8" font-family="Arial" font-size="14.00">sport_id </text>
<text text-anchor="start" x="783.76" y="-1078.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="723.06,-1035.8 723.06,-1066.6 948.03,-1066.6 948.03,-1035.8 723.06,-1035.8"/>
<text text-anchor="start" x="730.06" y="-1048" font-family="Arial" font-size="14.00">is_premium </text>
<text text-anchor="start" x="806.3" y="-1048" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="721.56,-1034.3 721.56,-1350.1 949.53,-1350.1 949.53,-1034.3 721.56,-1034.3"/>
</g>
<!-- public.club -->
<g id="node6" class="node">
<title>public.club</title>
<polygon fill="#efefef" stroke="none" points="497.24,-874.8 497.24,-910.4 803.84,-910.4 803.84,-874.8 497.24,-874.8"/>
<polygon fill="none" stroke="black" points="497.24,-874.8 497.24,-910.4 803.84,-910.4 803.84,-874.8 497.24,-874.8"/>
<text text-anchor="start" x="548.06" y="-888.2" font-family="Arial Bold" font-size="18.00">public.club</text>
<text text-anchor="start" x="628.54" y="-888.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="659.66" y="-888.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="497.24,-844 497.24,-874.8 803.84,-874.8 803.84,-844 497.24,-844"/>
<text text-anchor="start" x="504.24" y="-856.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="519.03" y="-856.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="497.24,-813.2 497.24,-844 803.84,-844 803.84,-813.2 497.24,-813.2"/>
<text text-anchor="start" x="504.24" y="-825.4" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="587.53" y="-825.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="497.24,-782.4 497.24,-813.2 803.84,-813.2 803.84,-782.4 497.24,-782.4"/>
<text text-anchor="start" x="504.24" y="-794.6" font-family="Arial" font-size="14.00">name </text>
<text text-anchor="start" x="543.15" y="-794.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-751.6 497.24,-782.4 803.84,-782.4 803.84,-751.6 497.24,-751.6"/>
<text text-anchor="start" x="504.24" y="-763.8" font-family="Arial" font-size="14.00">address_street_name </text>
<text text-anchor="start" x="643.55" y="-763.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-720.8 497.24,-751.6 803.84,-751.6 803.84,-720.8 497.24,-720.8"/>
<text text-anchor="start" x="504.24" y="-733" font-family="Arial" font-size="14.00">address_building_number </text>
<text text-anchor="start" x="669.24" y="-733" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-690 497.24,-720.8 803.84,-720.8 803.84,-690 497.24,-690"/>
<text text-anchor="start" x="504.24" y="-702.2" font-family="Arial" font-size="14.00">address_postal_code </text>
<text text-anchor="start" x="641.23" y="-702.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-659.2 497.24,-690 803.84,-690 803.84,-659.2 497.24,-659.2"/>
<text text-anchor="start" x="504.24" y="-671.4" font-family="Arial" font-size="14.00">address_locality_name </text>
<text text-anchor="start" x="651.33" y="-671.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-628.4 497.24,-659.2 803.84,-659.2 803.84,-628.4 497.24,-628.4"/>
<text text-anchor="start" x="504.24" y="-640.6" font-family="Arial" font-size="14.00">location_latitude </text>
<text text-anchor="start" x="609.32" y="-640.6" font-family="Arial" font-size="14.00" fill="#666666">[numeric(9,7)]</text>
<polygon fill="none" stroke="black" points="497.24,-597.6 497.24,-628.4 803.84,-628.4 803.84,-597.6 497.24,-597.6"/>
<text text-anchor="start" x="504.24" y="-609.8" font-family="Arial" font-size="14.00">location_longitude </text>
<text text-anchor="start" x="621" y="-609.8" font-family="Arial" font-size="14.00" fill="#666666">[numeric(9,7)]</text>
<polygon fill="none" stroke="black" points="497.24,-566.8 497.24,-597.6 803.84,-597.6 803.84,-566.8 497.24,-566.8"/>
<text text-anchor="start" x="504.24" y="-579" font-family="Arial" font-size="14.00">contact_name </text>
<text text-anchor="start" x="596.08" y="-579" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-536 497.24,-566.8 803.84,-566.8 803.84,-536 497.24,-536"/>
<text text-anchor="start" x="504.24" y="-548.2" font-family="Arial" font-size="14.00">contact_website </text>
<text text-anchor="start" x="608.53" y="-548.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-505.2 497.24,-536 803.84,-536 803.84,-505.2 497.24,-505.2"/>
<text text-anchor="start" x="504.24" y="-517.4" font-family="Arial" font-size="14.00">contact_phone_number </text>
<text text-anchor="start" x="655.24" y="-517.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-474.4 497.24,-505.2 803.84,-505.2 803.84,-474.4 497.24,-474.4"/>
<text text-anchor="start" x="504.24" y="-486.6" font-family="Arial" font-size="14.00">contact_email_address </text>
<text text-anchor="start" x="652.11" y="-486.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-443.6 497.24,-474.4 803.84,-474.4 803.84,-443.6 497.24,-443.6"/>
<text text-anchor="start" x="504.24" y="-455.8" font-family="Arial" font-size="14.00">contact_profile_image_url </text>
<text text-anchor="start" x="668.45" y="-455.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-412.8 497.24,-443.6 803.84,-443.6 803.84,-412.8 497.24,-412.8"/>
<text text-anchor="start" x="504.24" y="-425" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="562.6" y="-425" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="497.24,-382 497.24,-412.8 803.84,-412.8 803.84,-382 497.24,-382"/>
<text text-anchor="start" x="504.24" y="-394.2" font-family="Arial" font-size="14.00">main_image_id </text>
<text text-anchor="start" x="603.08" y="-394.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="497.24,-351.2 497.24,-382 803.84,-382 803.84,-351.2 497.24,-351.2"/>
<text text-anchor="start" x="504.24" y="-363.4" font-family="Arial" font-size="14.00">opening_times_as_json </text>
<text text-anchor="start" x="655.24" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="497.24,-320.4 497.24,-351.2 803.84,-351.2 803.84,-320.4 497.24,-320.4"/>
<text text-anchor="start" x="504.24" y="-332.6" font-family="Arial" font-size="14.00">operator_name </text>
<text text-anchor="start" x="603.09" y="-332.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-289.6 497.24,-320.4 803.84,-320.4 803.84,-289.6 497.24,-289.6"/>
<text text-anchor="start" x="504.24" y="-301.8" font-family="Arial" font-size="14.00">court_pricing_as_json </text>
<text text-anchor="start" x="644.33" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[json]</text>
<polygon fill="none" stroke="black" points="497.24,-258.8 497.24,-289.6 803.84,-289.6 803.84,-258.8 497.24,-258.8"/>
<text text-anchor="start" x="504.24" y="-271" font-family="Arial" font-size="14.00">timezone </text>
<text text-anchor="start" x="564.94" y="-271" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-228 497.24,-258.8 803.84,-258.8 803.84,-228 497.24,-228"/>
<text text-anchor="start" x="504.24" y="-240.2" font-family="Arial" font-size="14.00">default_price_per_hour_amount </text>
<text text-anchor="start" x="706.61" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="497.24,-197.2 497.24,-228 803.84,-228 803.84,-197.2 497.24,-197.2"/>
<text text-anchor="start" x="504.24" y="-209.4" font-family="Arial" font-size="14.00">default_price_per_hour_currency </text>
<text text-anchor="start" x="713.6" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="497.24,-166.4 497.24,-197.2 803.84,-197.2 803.84,-166.4 497.24,-166.4"/>
<text text-anchor="start" x="504.24" y="-178.6" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="575.84" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="497.24,-135.6 497.24,-166.4 803.84,-166.4 803.84,-135.6 497.24,-135.6"/>
<text text-anchor="start" x="504.24" y="-147.8" font-family="Arial" font-size="14.00">subdivision_code </text>
<text text-anchor="start" x="615.54" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-104.8 497.24,-135.6 803.84,-135.6 803.84,-104.8 497.24,-104.8"/>
<text text-anchor="start" x="504.24" y="-117" font-family="Arial" font-size="14.00">wellpass_api_key </text>
<text text-anchor="start" x="617.86" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="497.24,-74 497.24,-104.8 803.84,-104.8 803.84,-74 497.24,-74"/>
<text text-anchor="start" x="504.24" y="-86.2" font-family="Arial" font-size="14.00">is_wellpass_enabled </text>
<text text-anchor="start" x="637.33" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="497.24,-43.2 497.24,-74 803.84,-74 803.84,-43.2 497.24,-43.2"/>
<text text-anchor="start" x="504.24" y="-55.4" font-family="Arial" font-size="14.00">is_shown_in_app </text>
<text text-anchor="start" x="616.33" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
</g>
<!-- public.court&#45;&gt;public.club -->
<g id="edge5" class="edge">
<title>public.court:club_id&#45;&gt;public.club:id</title>
<path fill="none" stroke="black" d="M711.68,-1235.5C615.93,-1225.8 665.23,-1078.29 723.06,-989.6 744.53,-956.67 782.27,-986.46 803.84,-953.6 826.83,-918.6 846.71,-859.4 804.84,-859.4"/>
<polygon fill="black" stroke="black" points="711.74,-1235.5 721.51,-1240.48 717.07,-1235.76 721.39,-1235.97 721.39,-1235.97 721.39,-1235.97 717.07,-1235.76 721.95,-1231.49 711.74,-1235.5"/>
<text text-anchor="start" x="388.32" y="-1246" font-family="Arial" font-size="10.00">FOREIGN KEY (club_id) REFERENCES club(id) ON DELETE CASCADE</text>
</g>
<!-- public.sport -->
<g id="node7" class="node">
<title>public.sport</title>
<polygon fill="#efefef" stroke="none" points="908.55,-489.8 908.55,-525.4 1132.53,-525.4 1132.53,-489.8 908.55,-489.8"/>
<polygon fill="none" stroke="black" points="908.55,-489.8 908.55,-525.4 1132.53,-525.4 1132.53,-489.8 908.55,-489.8"/>
<text text-anchor="start" x="915.55" y="-503.2" font-family="Arial Bold" font-size="18.00">public.sport</text>
<text text-anchor="start" x="1001.04" y="-503.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1032.16" y="-503.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="908.55,-459 908.55,-489.8 1132.53,-489.8 1132.53,-459 908.55,-459"/>
<text text-anchor="start" x="915.55" y="-471.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="930.34" y="-471.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="908.55,-428.2 908.55,-459 1132.53,-459 1132.53,-428.2 908.55,-428.2"/>
<text text-anchor="start" x="915.55" y="-440.4" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="945.91" y="-440.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.court&#45;&gt;public.sport -->
<g id="edge6" class="edge">
<title>public.court:sport_id&#45;&gt;public.sport:id</title>
<path fill="none" stroke="black" d="M959.14,-1080.66C1067.63,-1049.23 775.92,-474.4 907.55,-474.4"/>
<polygon fill="black" stroke="black" points="959.27,-1080.64 948.77,-1077.49 953.98,-1081.34 949.69,-1081.91 949.69,-1081.91 949.69,-1081.91 953.98,-1081.34 949.95,-1086.42 959.27,-1080.64"/>
<text text-anchor="start" x="956.03" y="-1092" font-family="Arial" font-size="10.00">FOREIGN KEY (sport_id) REFERENCES sport(id)</text>
</g>
<!-- public.court_image -->
<g id="node2" class="node">
<title>public.court_image</title>
<polygon fill="#efefef" stroke="none" points="69.57,-1966.8 69.57,-2002.4 347.52,-2002.4 347.52,-1966.8 69.57,-1966.8"/>
<polygon fill="none" stroke="black" points="69.57,-1966.8 69.57,-2002.4 347.52,-2002.4 347.52,-1966.8 69.57,-1966.8"/>
<text text-anchor="start" x="76.57" y="-1980.2" font-family="Arial Bold" font-size="18.00">public.court_image</text>
<text text-anchor="start" x="216.03" y="-1980.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="247.14" y="-1980.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="69.57,-1936 69.57,-1966.8 347.52,-1966.8 347.52,-1936 69.57,-1936"/>
<text text-anchor="start" x="76.57" y="-1948.2" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="130.27" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="69.57,-1905.2 69.57,-1936 347.52,-1936 347.52,-1905.2 69.57,-1905.2"/>
<text text-anchor="start" x="76.57" y="-1917.4" font-family="Arial" font-size="14.00">image_id </text>
<text text-anchor="start" x="137.27" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.court_image&#45;&gt;public.court -->
<g id="edge1" class="edge">
<title>public.court_image:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M358.69,-1950.17C456.55,-1925.02 332.44,-1521.23 399.54,-1430.8 491.96,-1306.26 566.98,-1297.6 722.06,-1297.6"/>
<polygon fill="black" stroke="black" points="358.78,-1950.16 348.31,-1946.89 353.48,-1950.8 349.18,-1951.32 349.18,-1951.32 349.18,-1951.32 353.48,-1950.8 349.39,-1955.83 358.78,-1950.16"/>
<text text-anchor="start" x="7" y="-1961.4" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id) ON DELETE CASCADE</text>
</g>
<!-- public.game -->
<g id="node3" class="node">
<title>public.game</title>
<polygon fill="#efefef" stroke="none" points="452.03,-2398 452.03,-2433.6 799.06,-2433.6 799.06,-2398 452.03,-2398"/>
<polygon fill="none" stroke="black" points="452.03,-2398 452.03,-2433.6 799.06,-2433.6 799.06,-2398 452.03,-2398"/>
<text text-anchor="start" x="519.06" y="-2411.4" font-family="Arial Bold" font-size="18.00">public.game</text>
<text text-anchor="start" x="607.53" y="-2411.4" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="638.65" y="-2411.4" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="452.03,-2367.2 452.03,-2398 799.06,-2398 799.06,-2367.2 452.03,-2367.2"/>
<text text-anchor="start" x="459.03" y="-2379.4" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="473.82" y="-2379.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-2336.4 452.03,-2367.2 799.06,-2367.2 799.06,-2336.4 452.03,-2336.4"/>
<text text-anchor="start" x="459.03" y="-2348.6" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="512.73" y="-2348.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-2305.6 452.03,-2336.4 799.06,-2336.4 799.06,-2305.6 452.03,-2305.6"/>
<text text-anchor="start" x="459.03" y="-2317.8" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="507.29" y="-2317.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-2274.8 452.03,-2305.6 799.06,-2305.6 799.06,-2274.8 452.03,-2274.8"/>
<text text-anchor="start" x="459.03" y="-2287" font-family="Arial" font-size="14.00">coach_id </text>
<text text-anchor="start" x="518.96" y="-2287" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-2244 452.03,-2274.8 799.06,-2274.8 799.06,-2244 452.03,-2244"/>
<text text-anchor="start" x="459.03" y="-2256.2" font-family="Arial" font-size="14.00">kind </text>
<text text-anchor="start" x="488.6" y="-2256.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="452.03,-2213.2 452.03,-2244 799.06,-2244 799.06,-2213.2 452.03,-2213.2"/>
<text text-anchor="start" x="459.03" y="-2225.4" font-family="Arial" font-size="14.00">phase </text>
<text text-anchor="start" x="501.06" y="-2225.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="452.03,-2182.4 452.03,-2213.2 799.06,-2213.2 799.06,-2182.4 452.03,-2182.4"/>
<text text-anchor="start" x="459.03" y="-2194.6" font-family="Arial" font-size="14.00">match_period_starts_at </text>
<text text-anchor="start" x="609.22" y="-2194.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-2151.6 452.03,-2182.4 799.06,-2182.4 799.06,-2151.6 452.03,-2151.6"/>
<text text-anchor="start" x="459.03" y="-2163.8" font-family="Arial" font-size="14.00">match_period_ends_at </text>
<text text-anchor="start" x="605.35" y="-2163.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-2120.8 452.03,-2151.6 799.06,-2151.6 799.06,-2120.8 452.03,-2120.8"/>
<text text-anchor="start" x="459.03" y="-2133" font-family="Arial" font-size="14.00">court_fee_amount </text>
<text text-anchor="start" x="575.77" y="-2133" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="452.03,-2090 452.03,-2120.8 799.06,-2120.8 799.06,-2090 452.03,-2090"/>
<text text-anchor="start" x="459.03" y="-2102.2" font-family="Arial" font-size="14.00">court_fee_currency </text>
<text text-anchor="start" x="582.76" y="-2102.2" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="452.03,-2059.2 452.03,-2090 799.06,-2090 799.06,-2059.2 452.03,-2059.2"/>
<text text-anchor="start" x="459.03" y="-2071.4" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="529.08" y="-2071.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-2028.4 452.03,-2059.2 799.06,-2059.2 799.06,-2028.4 452.03,-2028.4"/>
<text text-anchor="start" x="459.03" y="-2040.6" font-family="Arial" font-size="14.00">cancelled_at </text>
<text text-anchor="start" x="541.53" y="-2040.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1997.6 452.03,-2028.4 799.06,-2028.4 799.06,-1997.6 452.03,-1997.6"/>
<text text-anchor="start" x="459.03" y="-2009.8" font-family="Arial" font-size="14.00">scheduled_at </text>
<text text-anchor="start" x="546.21" y="-2009.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1966.8 452.03,-1997.6 799.06,-1997.6 799.06,-1966.8 452.03,-1966.8"/>
<text text-anchor="start" x="459.03" y="-1979" font-family="Arial" font-size="14.00">terminated_at </text>
<text text-anchor="start" x="548.53" y="-1979" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1936 452.03,-1966.8 799.06,-1966.8 799.06,-1936 452.03,-1936"/>
<text text-anchor="start" x="459.03" y="-1948.2" font-family="Arial" font-size="14.00">cancelled_by_id </text>
<text text-anchor="start" x="563.33" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-1905.2 452.03,-1936 799.06,-1936 799.06,-1905.2 452.03,-1905.2"/>
<text text-anchor="start" x="459.03" y="-1917.4" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="490.17" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="452.03,-1874.4 452.03,-1905.2 799.06,-1905.2 799.06,-1874.4 452.03,-1874.4"/>
<text text-anchor="start" x="459.03" y="-1886.6" font-family="Arial" font-size="14.00">schedule_till_latest </text>
<text text-anchor="start" x="581.22" y="-1886.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1843.6 452.03,-1874.4 799.06,-1874.4 799.06,-1843.6 452.03,-1843.6"/>
<text text-anchor="start" x="459.03" y="-1855.8" font-family="Arial" font-size="14.00">match_period_duration_in_seconds </text>
<text text-anchor="start" x="684.74" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="452.03,-1812.8 452.03,-1843.6 799.06,-1843.6 799.06,-1812.8 452.03,-1812.8"/>
<text text-anchor="start" x="459.03" y="-1825" font-family="Arial" font-size="14.00">day_index </text>
<text text-anchor="start" x="526.75" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="452.03,-1782 452.03,-1812.8 799.06,-1812.8 799.06,-1782 452.03,-1782"/>
<text text-anchor="start" x="459.03" y="-1794.2" font-family="Arial" font-size="14.00">day_name </text>
<text text-anchor="start" x="528.3" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="452.03,-1751.2 452.03,-1782 799.06,-1782 799.06,-1751.2 452.03,-1751.2"/>
<text text-anchor="start" x="459.03" y="-1763.4" font-family="Arial" font-size="14.00">running_at </text>
<text text-anchor="start" x="529.09" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1720.4 452.03,-1751.2 799.06,-1751.2 799.06,-1720.4 452.03,-1720.4"/>
<text text-anchor="start" x="459.03" y="-1732.6" font-family="Arial" font-size="14.00">finished_at </text>
<text text-anchor="start" x="530.64" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1689.6 452.03,-1720.4 799.06,-1720.4 799.06,-1689.6 452.03,-1689.6"/>
<text text-anchor="start" x="459.03" y="-1701.8" font-family="Arial" font-size="14.00">confirming_at </text>
<text text-anchor="start" x="546.96" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1658.8 452.03,-1689.6 799.06,-1689.6 799.06,-1658.8 452.03,-1658.8"/>
<text text-anchor="start" x="459.03" y="-1671" font-family="Arial" font-size="14.00">match_series_id </text>
<text text-anchor="start" x="564.86" y="-1671" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-1628 452.03,-1658.8 799.06,-1658.8 799.06,-1628 452.03,-1628"/>
<text text-anchor="start" x="459.03" y="-1640.2" font-family="Arial" font-size="14.00">created_by_id </text>
<text text-anchor="start" x="550.87" y="-1640.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-1597.2 452.03,-1628 799.06,-1628 799.06,-1597.2 452.03,-1597.2"/>
<text text-anchor="start" x="459.03" y="-1609.4" font-family="Arial" font-size="14.00">split_payment_id </text>
<text text-anchor="start" x="567.98" y="-1609.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="452.03,-1566.4 452.03,-1597.2 799.06,-1597.2 799.06,-1566.4 452.03,-1566.4"/>
<text text-anchor="start" x="459.03" y="-1578.6" font-family="Arial" font-size="14.00">version </text>
<text text-anchor="start" x="508.05" y="-1578.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="452.03,-1535.6 452.03,-1566.4 799.06,-1566.4 799.06,-1535.6 452.03,-1535.6"/>
<text text-anchor="start" x="459.03" y="-1547.8" font-family="Arial" font-size="14.00">is_split_payment_migrated </text>
<text text-anchor="start" x="629.45" y="-1547.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="452.03,-1504.8 452.03,-1535.6 799.06,-1535.6 799.06,-1504.8 452.03,-1504.8"/>
<text text-anchor="start" x="459.03" y="-1517" font-family="Arial" font-size="14.00">abandoned_at </text>
<text text-anchor="start" x="552.46" y="-1517" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="452.03,-1474 452.03,-1504.8 799.06,-1504.8 799.06,-1474 452.03,-1474"/>
<text text-anchor="start" x="459.03" y="-1486.2" font-family="Arial" font-size="14.00">reserved_at </text>
<text text-anchor="start" x="536.85" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.game&#45;&gt;public.court -->
<g id="edge2" class="edge">
<title>public.game:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M807.53,-2344.73C848.6,-2261.54 825,-1471.74 799.06,-1430.8 779.05,-1399.23 743.21,-1426.28 723.06,-1394.8 699.77,-1358.41 678.86,-1297.6 722.06,-1297.6"/>
<polygon fill="black" stroke="black" points="807.56,-2344.7 797.21,-2348.3 803.69,-2348.36 800.54,-2351.34 800.54,-2351.34 800.54,-2351.34 803.69,-2348.36 803.39,-2354.84 807.56,-2344.7"/>
<text text-anchor="start" x="807.06" y="-2361.8" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id)</text>
</g>
<!-- public.match_series -->
<g id="node4" class="node">
<title>public.match_series</title>
<polygon fill="#efefef" stroke="none" points="903.38,-2182.4 903.38,-2218 1189.71,-2218 1189.71,-2182.4 903.38,-2182.4"/>
<polygon fill="none" stroke="black" points="903.38,-2182.4 903.38,-2218 1189.71,-2218 1189.71,-2182.4 903.38,-2182.4"/>
<text text-anchor="start" x="912.57" y="-2195.8" font-family="Arial Bold" font-size="18.00">public.match_series</text>
<text text-anchor="start" x="1056.03" y="-2195.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1087.14" y="-2195.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="903.38,-2151.6 903.38,-2182.4 1189.71,-2182.4 1189.71,-2151.6 903.38,-2151.6"/>
<text text-anchor="start" x="910.38" y="-2163.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="925.17" y="-2163.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="903.38,-2120.8 903.38,-2151.6 1189.71,-2151.6 1189.71,-2120.8 903.38,-2120.8"/>
<text text-anchor="start" x="910.38" y="-2133" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="964.08" y="-2133" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="903.38,-2090 903.38,-2120.8 1189.71,-2120.8 1189.71,-2090 903.38,-2090"/>
<text text-anchor="start" x="910.38" y="-2102.2" font-family="Arial" font-size="14.00">owner_id </text>
<text text-anchor="start" x="971.08" y="-2102.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="903.38,-2059.2 903.38,-2090 1189.71,-2090 1189.71,-2059.2 903.38,-2059.2"/>
<text text-anchor="start" x="910.38" y="-2071.4" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="980.43" y="-2071.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="903.38,-2028.4 903.38,-2059.2 1189.71,-2059.2 1189.71,-2028.4 903.38,-2028.4"/>
<text text-anchor="start" x="910.38" y="-2040.6" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="951.62" y="-2040.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="903.38,-1997.6 903.38,-2028.4 1189.71,-2028.4 1189.71,-1997.6 903.38,-1997.6"/>
<text text-anchor="start" x="910.38" y="-2009.8" font-family="Arial" font-size="14.00">payment_plan </text>
<text text-anchor="start" x="1002.22" y="-2009.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="903.38,-1966.8 903.38,-1997.6 1189.71,-1997.6 1189.71,-1966.8 903.38,-1966.8"/>
<text text-anchor="start" x="910.38" y="-1979" font-family="Arial" font-size="14.00">match_duration_in_seconds </text>
<text text-anchor="start" x="1089.38" y="-1979" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="903.38,-1936 903.38,-1966.8 1189.71,-1966.8 1189.71,-1936 903.38,-1936"/>
<text text-anchor="start" x="910.38" y="-1948.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="940.73" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="903.38,-1905.2 903.38,-1936 1189.71,-1936 1189.71,-1905.2 903.38,-1905.2"/>
<text text-anchor="start" x="910.38" y="-1917.4" font-family="Arial" font-size="14.00">weekday </text>
<text text-anchor="start" x="969.52" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="903.38,-1874.4 903.38,-1905.2 1189.71,-1905.2 1189.71,-1874.4 903.38,-1874.4"/>
<text text-anchor="start" x="910.38" y="-1886.6" font-family="Arial" font-size="14.00">note </text>
<text text-anchor="start" x="941.52" y="-1886.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="903.38,-1843.6 903.38,-1874.4 1189.71,-1874.4 1189.71,-1843.6 903.38,-1843.6"/>
<text text-anchor="start" x="910.38" y="-1855.8" font-family="Arial" font-size="14.00">starts_at </text>
<text text-anchor="start" x="967.96" y="-1855.8" font-family="Arial" font-size="14.00" fill="#666666">[time(0) without time zone]</text>
<polygon fill="none" stroke="black" points="903.38,-1812.8 903.38,-1843.6 1189.71,-1843.6 1189.71,-1812.8 903.38,-1812.8"/>
<text text-anchor="start" x="910.38" y="-1825" font-family="Arial" font-size="14.00">discount_percentage </text>
<text text-anchor="start" x="1044.25" y="-1825" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="903.38,-1782 903.38,-1812.8 1189.71,-1812.8 1189.71,-1782 903.38,-1782"/>
<text text-anchor="start" x="910.38" y="-1794.2" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="958.63" y="-1794.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="903.38,-1751.2 903.38,-1782 1189.71,-1782 1189.71,-1751.2 903.38,-1751.2"/>
<text text-anchor="start" x="910.38" y="-1763.4" font-family="Arial" font-size="14.00">discount_id </text>
<text text-anchor="start" x="985.1" y="-1763.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="903.38,-1720.4 903.38,-1751.2 1189.71,-1751.2 1189.71,-1720.4 903.38,-1720.4"/>
<text text-anchor="start" x="910.38" y="-1732.6" font-family="Arial" font-size="14.00">activated_at </text>
<text text-anchor="start" x="989.76" y="-1732.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="903.38,-1689.6 903.38,-1720.4 1189.71,-1720.4 1189.71,-1689.6 903.38,-1689.6"/>
<text text-anchor="start" x="910.38" y="-1701.8" font-family="Arial" font-size="14.00">terminated_at </text>
<text text-anchor="start" x="999.88" y="-1701.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
</g>
<!-- public.match_series&#45;&gt;public.court -->
<g id="edge3" class="edge">
<title>public.match_series:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M892.22,-2134.96C800.09,-2111.17 894.04,-1751.22 903.38,-1646.4 913.45,-1533.28 937.48,-1507.88 948.03,-1394.8 952.04,-1351.78 992.23,-1297.6 949.03,-1297.6"/>
<polygon fill="black" stroke="black" points="892.12,-2134.95 901.5,-2140.63 897.42,-2135.6 901.71,-2136.12 901.71,-2136.12 901.71,-2136.12 897.42,-2135.6 902.59,-2131.69 892.12,-2134.95"/>
<text text-anchor="start" x="849.9" y="-2120.2" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id)</text>
</g>
<!-- public.court_blocker_court -->
<g id="node5" class="node">
<title>public.court_blocker_court</title>
<polygon fill="#efefef" stroke="none" points="1294.58,-1966.8 1294.58,-2002.4 1628.51,-2002.4 1628.51,-1966.8 1294.58,-1966.8"/>
<polygon fill="none" stroke="black" points="1294.58,-1966.8 1294.58,-2002.4 1628.51,-2002.4 1628.51,-1966.8 1294.58,-1966.8"/>
<text text-anchor="start" x="1301.58" y="-1980.2" font-family="Arial Bold" font-size="18.00">public.court_blocker_court</text>
<text text-anchor="start" x="1497.02" y="-1980.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="1528.13" y="-1980.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="1294.58,-1936 1294.58,-1966.8 1628.51,-1966.8 1628.51,-1936 1294.58,-1936"/>
<text text-anchor="start" x="1301.58" y="-1948.2" font-family="Arial" font-size="14.00">court_blocker_id </text>
<text text-anchor="start" x="1408.2" y="-1948.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="1294.58,-1905.2 1294.58,-1936 1628.51,-1936 1628.51,-1905.2 1294.58,-1905.2"/>
<text text-anchor="start" x="1301.58" y="-1917.4" font-family="Arial" font-size="14.00">court_id </text>
<text text-anchor="start" x="1355.28" y="-1917.4" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.court_blocker_court&#45;&gt;public.court -->
<g id="edge4" class="edge">
<title>public.court_blocker_court:court_id&#45;&gt;public.court:id</title>
<path fill="none" stroke="black" d="M1283.43,-1919.3C1191.98,-1894.31 1303.43,-1516.64 1241.54,-1430.8 1158,-1314.92 1091.88,-1297.6 949.03,-1297.6"/>
<polygon fill="black" stroke="black" points="1283.33,-1919.29 1292.68,-1925.02 1288.62,-1919.96 1292.92,-1920.52 1292.92,-1920.52 1292.92,-1920.52 1288.62,-1919.96 1293.82,-1916.09 1283.33,-1919.29"/>
<text text-anchor="start" x="1300.58" y="-1930.6" font-family="Arial" font-size="10.00">FOREIGN KEY (court_id) REFERENCES court(id) ON DELETE CASCADE</text>
</g>
</g>
</svg>
