<?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.document_approval Pages: 1 -->
<svg width="911pt" height="1033pt"
 viewBox="0.00 0.00 910.84 1033.20" 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 1029.2)">
<title>public.document_approval</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-1029.2 906.84,-1029.2 906.84,4 -4,4"/>
<!-- public.document_approval -->
<g id="node1" class="node">
<title>public.document_approval</title>
<polygon fill="#efefef" stroke="none" points="289.6,-943.4 289.6,-979 620.54,-979 620.54,-943.4 289.6,-943.4"/>
<polygon fill="none" stroke="black" points="289.6,-943.4 289.6,-979 620.54,-979 620.54,-943.4 289.6,-943.4"/>
<text text-anchor="start" x="296.6" y="-956.8" font-family="Arial Bold" font-size="18.00">public.document_approval</text>
<text text-anchor="start" x="489.05" y="-956.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="520.17" y="-956.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="289.6,-912.6 289.6,-943.4 620.54,-943.4 620.54,-912.6 289.6,-912.6"/>
<text text-anchor="start" x="296.6" y="-924.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="311.39" y="-924.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="289.6,-881.8 289.6,-912.6 620.54,-912.6 620.54,-881.8 289.6,-881.8"/>
<text text-anchor="start" x="296.6" y="-894" font-family="Arial" font-size="14.00">user_id </text>
<text text-anchor="start" x="346.41" y="-894" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="289.6,-851 289.6,-881.8 620.54,-881.8 620.54,-851 289.6,-851"/>
<text text-anchor="start" x="296.6" y="-863.2" font-family="Arial" font-size="14.00">document_id </text>
<text text-anchor="start" x="380.66" y="-863.2" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="289.6,-820.2 289.6,-851 620.54,-851 620.54,-820.2 289.6,-820.2"/>
<text text-anchor="start" x="296.6" y="-832.4" font-family="Arial" font-size="14.00">approved_at </text>
<text text-anchor="start" x="378.33" y="-832.4" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" stroke-width="3" points="288.1,-818.7 288.1,-980.5 622.04,-980.5 622.04,-818.7 288.1,-818.7"/>
</g>
<!-- public.user -->
<g id="node2" class="node">
<title>public.user</title>
<polygon fill="#efefef" stroke="none" points="43.2,-659.2 43.2,-694.8 436.94,-694.8 436.94,-659.2 43.2,-659.2"/>
<polygon fill="none" stroke="black" points="43.2,-659.2 43.2,-694.8 436.94,-694.8 436.94,-659.2 43.2,-659.2"/>
<text text-anchor="start" x="138.09" y="-672.6" font-family="Arial Bold" font-size="18.00">public.user</text>
<text text-anchor="start" x="217.57" y="-672.6" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="248.68" y="-672.6" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="43.2,-628.4 43.2,-659.2 436.94,-659.2 436.94,-628.4 43.2,-628.4"/>
<text text-anchor="start" x="50.2" y="-640.6" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="64.99" y="-640.6" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-597.6 43.2,-628.4 436.94,-628.4 436.94,-597.6 43.2,-597.6"/>
<text text-anchor="start" x="50.2" y="-609.8" font-family="Arial" font-size="14.00">first_name </text>
<text text-anchor="start" x="119.45" y="-609.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-566.8 43.2,-597.6 436.94,-597.6 436.94,-566.8 43.2,-566.8"/>
<text text-anchor="start" x="50.2" y="-579" font-family="Arial" font-size="14.00">last_name </text>
<text text-anchor="start" x="118.68" y="-579" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-536 43.2,-566.8 436.94,-566.8 436.94,-536 43.2,-536"/>
<text text-anchor="start" x="50.2" y="-548.2" font-family="Arial" font-size="14.00">email </text>
<text text-anchor="start" x="87.54" y="-548.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-505.2 43.2,-536 436.94,-536 436.94,-505.2 43.2,-505.2"/>
<text text-anchor="start" x="50.2" y="-517.4" font-family="Arial" font-size="14.00">gender </text>
<text text-anchor="start" x="97.68" y="-517.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-474.4 43.2,-505.2 436.94,-505.2 436.94,-474.4 43.2,-474.4"/>
<text text-anchor="start" x="50.2" y="-486.6" font-family="Arial" font-size="14.00">birthday </text>
<text text-anchor="start" x="103.9" y="-486.6" font-family="Arial" font-size="14.00" fill="#666666">[date]</text>
<polygon fill="none" stroke="black" points="43.2,-443.6 43.2,-474.4 436.94,-474.4 436.94,-443.6 43.2,-443.6"/>
<text text-anchor="start" x="50.2" y="-455.8" font-family="Arial" font-size="14.00">skill_level </text>
<text text-anchor="start" x="114" y="-455.8" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-412.8 43.2,-443.6 436.94,-443.6 436.94,-412.8 43.2,-412.8"/>
<text text-anchor="start" x="50.2" y="-425" font-family="Arial" font-size="14.00">is_age_public </text>
<text text-anchor="start" x="139.71" y="-425" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-382 43.2,-412.8 436.94,-412.8 436.94,-382 43.2,-382"/>
<text text-anchor="start" x="50.2" y="-394.2" font-family="Arial" font-size="14.00">profile_image_path </text>
<text text-anchor="start" x="173.17" y="-394.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-351.2 43.2,-382 436.94,-382 436.94,-351.2 43.2,-351.2"/>
<text text-anchor="start" x="50.2" y="-363.4" font-family="Arial" font-size="14.00">is_marketing_consent_granted </text>
<text text-anchor="start" x="245.54" y="-363.4" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-320.4 43.2,-351.2 436.94,-351.2 436.94,-320.4 43.2,-320.4"/>
<text text-anchor="start" x="50.2" y="-332.6" font-family="Arial" font-size="14.00">marketing_consent_granted_at </text>
<text text-anchor="start" x="247.11" y="-332.6" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-289.6 43.2,-320.4 436.94,-320.4 436.94,-289.6 43.2,-289.6"/>
<text text-anchor="start" x="50.2" y="-301.8" font-family="Arial" font-size="14.00">get_stream_token </text>
<text text-anchor="start" x="166.16" y="-301.8" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-258.8 43.2,-289.6 436.94,-289.6 436.94,-258.8 43.2,-258.8"/>
<text text-anchor="start" x="50.2" y="-271" font-family="Arial" font-size="14.00">email_address_id </text>
<text text-anchor="start" x="163.82" y="-271" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="43.2,-228 43.2,-258.8 436.94,-258.8 436.94,-228 43.2,-228"/>
<text text-anchor="start" x="50.2" y="-240.2" font-family="Arial" font-size="14.00">preferred_playing_times </text>
<text text-anchor="start" x="204.28" y="-240.2" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-197.2 43.2,-228 436.94,-228 436.94,-197.2 43.2,-197.2"/>
<text text-anchor="start" x="50.2" y="-209.4" font-family="Arial" font-size="14.00">dominant_hands </text>
<text text-anchor="start" x="157.61" y="-209.4" font-family="Arial" font-size="14.00" fill="#666666">[text]</text>
<polygon fill="none" stroke="black" points="43.2,-166.4 43.2,-197.2 436.94,-197.2 436.94,-166.4 43.2,-166.4"/>
<text text-anchor="start" x="50.2" y="-178.6" font-family="Arial" font-size="14.00">locale </text>
<text text-anchor="start" x="90.67" y="-178.6" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
<polygon fill="none" stroke="black" points="43.2,-135.6 43.2,-166.4 436.94,-166.4 436.94,-135.6 43.2,-135.6"/>
<text text-anchor="start" x="50.2" y="-147.8" font-family="Arial" font-size="14.00">is_deleted </text>
<text text-anchor="start" x="117.92" y="-147.8" font-family="Arial" font-size="14.00" fill="#666666">[boolean]</text>
<polygon fill="none" stroke="black" points="43.2,-104.8 43.2,-135.6 436.94,-135.6 436.94,-104.8 43.2,-104.8"/>
<text text-anchor="start" x="50.2" y="-117" font-family="Arial" font-size="14.00">deleted_at </text>
<text text-anchor="start" x="119.48" y="-117" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-74 43.2,-104.8 436.94,-104.8 436.94,-74 43.2,-74"/>
<text text-anchor="start" x="50.2" y="-86.2" font-family="Arial" font-size="14.00">created_at </text>
<text text-anchor="start" x="120.25" y="-86.2" font-family="Arial" font-size="14.00" fill="#666666">[timestamp(0) with time zone]</text>
<polygon fill="none" stroke="black" points="43.2,-43.2 43.2,-74 436.94,-74 436.94,-43.2 43.2,-43.2"/>
<text text-anchor="start" x="50.2" y="-55.4" font-family="Arial" font-size="14.00">phone_number </text>
<text text-anchor="start" x="148.28" y="-55.4" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.document_approval&#45;&gt;public.user -->
<g id="edge1" class="edge">
<title>public.document_approval:user_id&#45;&gt;public.user:id</title>
<path fill="none" stroke="black" d="M278.43,-896.11C236.88,-886.4 257.94,-814 289.6,-774 331.45,-721.15 395.04,-790.8 436.94,-738 462.97,-705.21 479.81,-643.8 437.94,-643.8"/>
<polygon fill="black" stroke="black" points="278.33,-896.1 287.79,-901.64 283.63,-896.67 287.94,-897.13 287.94,-897.13 287.94,-897.13 283.63,-896.67 288.75,-892.69 278.33,-896.1"/>
<text text-anchor="start" x="56.13" y="-907.2" font-family="Arial" font-size="10.00">FOREIGN KEY (user_id) REFERENCES &quot;user&quot;(id)</text>
</g>
<!-- public.document -->
<g id="node3" class="node">
<title>public.document</title>
<polygon fill="#efefef" stroke="none" points="541.59,-397.4 541.59,-433 800.55,-433 800.55,-397.4 541.59,-397.4"/>
<polygon fill="none" stroke="black" points="541.59,-397.4 541.59,-433 800.55,-433 800.55,-397.4 541.59,-397.4"/>
<text text-anchor="start" x="548.59" y="-410.8" font-family="Arial Bold" font-size="18.00">public.document</text>
<text text-anchor="start" x="669.06" y="-410.8" font-family="Arial" font-size="14.00">    </text>
<text text-anchor="start" x="700.18" y="-410.8" font-family="Arial" font-size="14.00" fill="#666666">[BASE TABLE]</text>
<polygon fill="none" stroke="black" points="541.59,-366.6 541.59,-397.4 800.55,-397.4 800.55,-366.6 541.59,-366.6"/>
<text text-anchor="start" x="548.59" y="-378.8" font-family="Arial" font-size="14.00">id </text>
<text text-anchor="start" x="563.38" y="-378.8" font-family="Arial" font-size="14.00" fill="#666666">[uuid]</text>
<polygon fill="none" stroke="black" points="541.59,-335.8 541.59,-366.6 800.55,-366.6 800.55,-335.8 541.59,-335.8"/>
<text text-anchor="start" x="548.59" y="-348" font-family="Arial" font-size="14.00">contentful_id </text>
<text text-anchor="start" x="631.87" y="-348" font-family="Arial" font-size="14.00" fill="#666666">[varchar(64)]</text>
<polygon fill="none" stroke="black" points="541.59,-305 541.59,-335.8 800.55,-335.8 800.55,-305 541.59,-305"/>
<text text-anchor="start" x="548.59" y="-317.2" font-family="Arial" font-size="14.00">type </text>
<text text-anchor="start" x="578.94" y="-317.2" font-family="Arial" font-size="14.00" fill="#666666">[varchar(255)]</text>
</g>
<!-- public.document_approval&#45;&gt;public.document -->
<g id="edge2" class="edge">
<title>public.document_approval:document_id&#45;&gt;public.document:id</title>
<path fill="none" stroke="black" d="M631.57,-864.65C710.14,-832.94 435.29,-382 540.59,-382"/>
<polygon fill="black" stroke="black" points="631.72,-864.62 621.09,-861.91 626.46,-865.54 622.2,-866.28 622.2,-866.28 622.2,-866.28 626.46,-865.54 622.64,-870.78 631.72,-864.62"/>
<text text-anchor="start" x="628.54" y="-876.4" font-family="Arial" font-size="10.00">FOREIGN KEY (document_id) REFERENCES document(id)</text>
</g>
</g>
</svg>
