<?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.event_template Pages: 1 -->
<svg width="696pt" height="1592pt"
 viewBox="0.00 0.00 695.56 1591.60" 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 1587.6)">
<title>public.event_template</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-1587.6 691.56,-1587.6 691.56,4 -4,4"/>
<!-- public.event_template -->
<g id="node1" class="node">
<title>public.event_template</title>
<polygon fill="#efefef" stroke="none" points="65.81,-604.6 65.81,-640.2 363.74,-640.2 363.74,-604.6 65.81,-604.6"/>
<polygon fill="none" stroke="black" points="65.81,-604.6 65.81,-640.2 363.74,-640.2 363.74,-604.6 65.81,-604.6"/>
<text text-anchor="start" x="72.81" y="-618" font-family="Arial Bold" font-size="18.00">public.event_template</text>
<text text-anchor="start" x="232.25" y="-618" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="263.37" y="-618" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="65.81,-573.8 65.81,-604.6 363.74,-604.6 363.74,-573.8 65.81,-573.8"/>
<text text-anchor="start" x="72.81" y="-586" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="87.6" y="-586" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="65.81,-543 65.81,-573.8 363.74,-573.8 363.74,-543 65.81,-543"/>
<text text-anchor="start" x="72.81" y="-555.2" font-family="Arial" font-size="14.00">teaser_image_id </text>
<text text-anchor="start" x="180.21" y="-555.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="65.81,-512.2 65.81,-543 363.74,-543 363.74,-512.2 65.81,-512.2"/>
<text text-anchor="start" x="72.81" y="-524.4" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="156.09" y="-524.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="65.81,-481.4 65.81,-512.2 363.74,-512.2 363.74,-481.4 65.81,-481.4"/>
<text text-anchor="start" x="72.81" y="-493.6" font-family="Arial" font-size="14.00">title </text>
<text text-anchor="start" x="98.49" y="-493.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="65.81,-450.6 65.81,-481.4 363.74,-481.4 363.74,-450.6 65.81,-450.6"/>
<text text-anchor="start" x="72.81" y="-462.8" font-family="Arial" font-size="14.00">subtitle </text>
<text text-anchor="start" x="121.06" y="-462.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="65.81,-419.8 65.81,-450.6 363.74,-450.6 363.74,-419.8 65.81,-419.8"/>
<text text-anchor="start" x="72.81" y="-432" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="144.4" y="-432" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="65.81,-389 65.81,-419.8 363.74,-419.8 363.74,-389 65.81,-389"/>
<text text-anchor="start" x="72.81" y="-401.2" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="131.17" y="-401.2" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="65.81,-358.2 65.81,-389 363.74,-389 363.74,-358.2 65.81,-358.2"/>
<text text-anchor="start" x="72.81" y="-370.4" font-family="Arial" font-size="14.00">stripe_product_id </text>
<text text-anchor="start" x="184.1" y="-370.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="64.31,-356.7 64.31,-641.7 365.24,-641.7 365.24,-356.7 64.31,-356.7"/>
</g>
<!-- public.image -->
<g id="node3" class="node">
<title>public.image</title>
<polygon fill="#efefef" stroke="none" points="98.79,-197.2 98.79,-232.8 330.76,-232.8 330.76,-197.2 98.79,-197.2"/>
<polygon fill="none" stroke="black" points="98.79,-197.2 98.79,-232.8 330.76,-232.8 330.76,-197.2 98.79,-197.2"/>
<text text-anchor="start" x="105.79" y="-210.6" font-family="Arial Bold" font-size="18.00">public.image</text>
<text text-anchor="start" x="199.27" y="-210.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="230.38" y="-210.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="98.79,-166.4 98.79,-197.2 330.76,-197.2 330.76,-166.4 98.79,-166.4"/>
<text text-anchor="start" x="105.79" y="-178.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="120.58" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="98.79,-135.6 98.79,-166.4 330.76,-166.4 330.76,-135.6 98.79,-135.6"/>
<text text-anchor="start" x="105.79" y="-147.8" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="136.15" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="98.79,-104.8 98.79,-135.6 330.76,-135.6 330.76,-104.8 98.79,-104.8"/>
<text text-anchor="start" x="105.79" y="-117" font-family="Arial" font-size="14.00">path </text>
<text text-anchor="start" x="136.93" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="98.79,-74 98.79,-104.8 330.76,-104.8 330.76,-74 98.79,-74"/>
<text text-anchor="start" x="105.79" y="-86.2" font-family="Arial" font-size="14.00">url </text>
<text text-anchor="start" x="125.24" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="98.79,-43.2 98.79,-74 330.76,-74 330.76,-43.2 98.79,-43.2"/>
<text text-anchor="start" x="105.79" y="-55.4" font-family="Arial" font-size="14.00">sort_index </text>
<text text-anchor="start" x="174.28" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
</g>
<!-- public.event_template&#45;&gt;public.image -->
<g id="edge2" class="edge">
<title>public.event_template:teaser_image_id&#45;&gt;public.image:id</title>
<path fill="none" stroke="black" d="M374.83,-557.93C531.35,-543.11 496.33,-181.8 331.76,-181.8"/>
<polygon fill="black" stroke="black" points="375.06,-557.92 364.87,-553.89 369.74,-558.17 365.41,-558.37 365.41,-558.37 365.41,-558.37 369.74,-558.17 365.28,-562.88 375.06,-557.92"/>
<text text-anchor="start" x="371.74" y="-568.4" font-family="Arial" font-size="10.00">FOREIGN KEY (teaser_image_id) REFERENCES image(id)</text>
</g>
<!-- public.club_event -->
<g id="node2" class="node">
<title>public.club_event</title>
<polygon fill="#efefef" stroke="none" points="43.2,-1504.8 43.2,-1540.4 386.35,-1540.4 386.35,-1504.8 43.2,-1504.8"/>
<polygon fill="none" stroke="black" points="43.2,-1504.8 43.2,-1540.4 386.35,-1540.4 386.35,-1504.8 43.2,-1504.8"/>
<text text-anchor="start" x="88.3" y="-1518.2" font-family="Arial Bold" font-size="18.00">public.club_event</text>
<text text-anchor="start" x="216.76" y="-1518.2" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="247.88" y="-1518.2" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="43.2,-1474 43.2,-1504.8 386.35,-1504.8 386.35,-1474 43.2,-1474"/>
<text text-anchor="start" x="50.2" y="-1486.2" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="64.99" y="-1486.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1443.2 43.2,-1474 386.35,-1474 386.35,-1443.2 43.2,-1443.2"/>
<text text-anchor="start" x="50.2" y="-1455.4" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="133.48" y="-1455.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="43.2,-1412.4 43.2,-1443.2 386.35,-1443.2 386.35,-1412.4 43.2,-1412.4"/>
<text text-anchor="start" x="50.2" y="-1424.6" font-family="Arial" font-size="14.00">is_active </text>
<text text-anchor="start" x="108.56" y="-1424.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-1381.6 43.2,-1412.4 386.35,-1412.4 386.35,-1381.6 43.2,-1381.6"/>
<text text-anchor="start" x="50.2" y="-1393.8" font-family="Arial" font-size="14.00">club_id </text>
<text text-anchor="start" x="98.45" y="-1393.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1350.8 43.2,-1381.6 386.35,-1381.6 386.35,-1350.8 43.2,-1350.8"/>
<text text-anchor="start" x="50.2" y="-1363" font-family="Arial" font-size="14.00">template_id </text>
<text text-anchor="start" x="126.47" y="-1363" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-1320 43.2,-1350.8 386.35,-1350.8 386.35,-1320 43.2,-1320"/>
<text text-anchor="start" x="50.2" y="-1332.2" font-family="Arial" font-size="14.00">event_period_starts_at </text>
<text text-anchor="start" x="196.52" y="-1332.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-1289.2 43.2,-1320 386.35,-1320 386.35,-1289.2 43.2,-1289.2"/>
<text text-anchor="start" x="50.2" y="-1301.4" font-family="Arial" font-size="14.00">event_period_ends_at </text>
<text text-anchor="start" x="192.65" y="-1301.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-1258.4 43.2,-1289.2 386.35,-1289.2 386.35,-1258.4 43.2,-1258.4"/>
<text text-anchor="start" x="50.2" y="-1270.6" font-family="Arial" font-size="14.00">event_period_duration_in_seconds </text>
<text text-anchor="start" x="272.03" y="-1270.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="43.2,-1227.6 43.2,-1258.4 386.35,-1258.4 386.35,-1227.6 43.2,-1227.6"/>
<text text-anchor="start" x="50.2" y="-1239.8" font-family="Arial" font-size="14.00">price_per_person_amount </text>
<text text-anchor="start" x="217.53" y="-1239.8" font-family="Arial" font-size="14.00" fill="#666666">[bigint]</text>
<polygon fill="none" stroke="black" points="43.2,-1196.8 43.2,-1227.6 386.35,-1227.6 386.35,-1196.8 43.2,-1196.8"/>
<text text-anchor="start" x="50.2" y="-1209" font-family="Arial" font-size="14.00">price_per_person_currency </text>
<text text-anchor="start" x="224.52" y="-1209" font-family="Arial" font-size="14.00" fill="#666666">[character(3)]</text>
<polygon fill="none" stroke="black" points="43.2,-1166 43.2,-1196.8 386.35,-1196.8 386.35,-1166 43.2,-1166"/>
<text text-anchor="start" x="50.2" y="-1178.2" font-family="Arial" font-size="14.00">stripe_price_id </text>
<text text-anchor="start" x="145.14" y="-1178.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="43.2,-1135.2 43.2,-1166 386.35,-1166 386.35,-1135.2 43.2,-1135.2"/>
<text text-anchor="start" x="50.2" y="-1147.4" font-family="Arial" font-size="14.00">status </text>
<text text-anchor="start" x="91.44" y="-1147.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-1104.4 43.2,-1135.2 386.35,-1135.2 386.35,-1104.4 43.2,-1104.4"/>
<text text-anchor="start" x="50.2" y="-1116.6" font-family="Arial" font-size="14.00">max_confirmed_registrations </text>
<text text-anchor="start" x="233.83" y="-1116.6" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="43.2,-1073.6 43.2,-1104.4 386.35,-1104.4 386.35,-1073.6 43.2,-1073.6"/>
<text text-anchor="start" x="50.2" y="-1085.8" font-family="Arial" font-size="14.00">registration_opens_at </text>
<text text-anchor="start" x="188.74" y="-1085.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-1042.8 43.2,-1073.6 386.35,-1073.6 386.35,-1042.8 43.2,-1042.8"/>
<text text-anchor="start" x="50.2" y="-1055" font-family="Arial" font-size="14.00">description </text>
<text text-anchor="start" x="121.79" y="-1055" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-1012 43.2,-1042.8 386.35,-1042.8 386.35,-1012 43.2,-1012"/>
<text text-anchor="start" x="50.2" y="-1024.2" font-family="Arial" font-size="14.00">persons_per_team </text>
<text text-anchor="start" x="170.83" y="-1024.2" font-family="Arial" font-size="14.00" fill="#666666">[integer]</text>
<polygon fill="none" stroke="black" points="43.2,-981.2 43.2,-1012 386.35,-1012 386.35,-981.2 43.2,-981.2"/>
<text text-anchor="start" x="50.2" y="-993.4" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="80.55" y="-993.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-950.4 43.2,-981.2 386.35,-981.2 386.35,-950.4 43.2,-950.4"/>
<text text-anchor="start" x="50.2" y="-962.6" font-family="Arial" font-size="14.00">is_registrations_hidden </text>
<text text-anchor="start" x="198.07" y="-962.6" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-919.6 43.2,-950.4 386.35,-950.4 386.35,-919.6 43.2,-919.6"/>
<text text-anchor="start" x="50.2" y="-931.8" font-family="Arial" font-size="14.00">registration_closes_at </text>
<text text-anchor="start" x="190.28" y="-931.8" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-888.8 43.2,-919.6 386.35,-919.6 386.35,-888.8 43.2,-888.8"/>
<text text-anchor="start" x="50.2" y="-901" font-family="Arial" font-size="14.00">free_cancellation_strategy </text>
<text text-anchor="start" x="217.52" y="-901" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-858 43.2,-888.8 386.35,-888.8 386.35,-858 43.2,-858"/>
<text text-anchor="start" x="50.2" y="-870.2" font-family="Arial" font-size="14.00">updated_by_id </text>
<text text-anchor="start" x="145.95" y="-870.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-827.2 43.2,-858 386.35,-858 386.35,-827.2 43.2,-827.2"/>
<text text-anchor="start" x="50.2" y="-839.4" font-family="Arial" font-size="14.00">cancellation_reason </text>
<text text-anchor="start" x="178.62" y="-839.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-796.4 43.2,-827.2 386.35,-827.2 386.35,-796.4 43.2,-796.4"/>
<text text-anchor="start" x="50.2" y="-808.6" font-family="Arial" font-size="14.00">updated_at </text>
<text text-anchor="start" x="124.16" y="-808.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-765.6 43.2,-796.4 386.35,-796.4 386.35,-765.6 43.2,-765.6"/>
<text text-anchor="start" x="50.2" y="-777.8" font-family="Arial" font-size="14.00">sport_id </text>
<text text-anchor="start" x="103.9" y="-777.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
</g>
<!-- public.club_event&#45;&gt;public.event_template -->
<g id="edge1" class="edge">
<title>public.club_event:template_id&#45;&gt;public.event_template:id</title>
<path fill="none" stroke="black" d="M396.98,-1362.74C471.86,-1306.68 447.74,-589.2 364.74,-589.2"/>
<polygon fill="black" stroke="black" points="397.07,-1362.7 386.14,-1361.85 392.05,-1364.51 387.98,-1365.97 387.98,-1365.97 387.98,-1365.97 392.05,-1364.51 389.19,-1370.32 397.07,-1362.7"/>
<text text-anchor="start" x="394.35" y="-1376.2" font-family="Arial" font-size="10.00">FOREIGN KEY (template_id) REFERENCES event_template(id)</text>
</g>
</g>
</svg>
