77 lines
7.6 KiB
XML
77 lines
7.6 KiB
XML
<?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 2.47.0 (20210316.0004)
|
|
-->
|
|
<!-- Title: dbml Pages: 1 -->
|
|
<svg width="1059pt" height="523pt"
|
|
viewBox="0.00 0.00 1059.41 522.77" 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 518.77)">
|
|
<title>dbml</title>
|
|
<!-- users -->
|
|
<g id="users" class="node">
|
|
<title>users</title>
|
|
<ellipse fill="none" stroke="black" stroke-width="0" cx="797.55" cy="-287.39" rx="253.7" ry="214.92"/>
|
|
<polygon fill="#1d71b8" stroke="transparent" points="620.55,-377.39 620.55,-437.39 975.55,-437.39 975.55,-377.39 620.55,-377.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="620.55,-377.39 620.55,-437.39 975.55,-437.39 975.55,-377.39 620.55,-377.39"/>
|
|
<text text-anchor="start" x="696.69" y="-398.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff">       users       </text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="620.55,-317.39 620.55,-377.39 975.55,-377.39 975.55,-317.39 620.55,-317.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="620.55,-317.39 620.55,-377.39 975.55,-377.39 975.55,-317.39 620.55,-317.39"/>
|
|
<text text-anchor="start" x="631.55" y="-337.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">id    </text>
|
|
<text text-anchor="start" x="866.75" y="-338.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">integer</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="620.55,-257.39 620.55,-317.39 975.55,-317.39 975.55,-257.39 620.55,-257.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="620.55,-257.39 620.55,-317.39 975.55,-317.39 975.55,-257.39 620.55,-257.39"/>
|
|
<text text-anchor="start" x="631.55" y="-277.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">username    </text>
|
|
<text text-anchor="start" x="857.88" y="-278.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="620.55,-197.39 620.55,-257.39 975.55,-257.39 975.55,-197.39 620.55,-197.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="620.55,-197.39 620.55,-257.39 975.55,-257.39 975.55,-197.39 620.55,-197.39"/>
|
|
<text text-anchor="start" x="631.55" y="-217.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">role    </text>
|
|
<text text-anchor="start" x="857.88" y="-218.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="620.55,-137.39 620.55,-197.39 975.55,-197.39 975.55,-137.39 620.55,-137.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="620.55,-137.39 620.55,-197.39 975.55,-197.39 975.55,-137.39 620.55,-137.39"/>
|
|
<text text-anchor="start" x="631.18" y="-157.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_at    </text>
|
|
<text text-anchor="start" x="817.27" y="-158.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamp</text>
|
|
<polygon fill="none" stroke="#29235c" stroke-width="2" points="619.05,-136.39 619.05,-438.39 976.05,-438.39 976.05,-136.39 619.05,-136.39"/>
|
|
</g>
|
|
<!-- posts -->
|
|
<g id="posts" class="node">
|
|
<title>posts</title>
|
|
<ellipse fill="none" stroke="black" stroke-width="0" cx="253.85" cy="-257.39" rx="253.7" ry="257.27"/>
|
|
<polygon fill="#1d71b8" stroke="transparent" points="76.85,-377.39 76.85,-437.39 431.85,-437.39 431.85,-377.39 76.85,-377.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="76.85,-377.39 76.85,-437.39 431.85,-437.39 431.85,-377.39 76.85,-377.39"/>
|
|
<text text-anchor="start" x="153.87" y="-398.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff">       posts       </text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="76.85,-317.39 76.85,-377.39 431.85,-377.39 431.85,-317.39 76.85,-317.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="76.85,-317.39 76.85,-377.39 431.85,-377.39 431.85,-317.39 76.85,-317.39"/>
|
|
<text text-anchor="start" x="87.85" y="-338.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
|
|
<text text-anchor="start" x="112.74" y="-338.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">    </text>
|
|
<text text-anchor="start" x="323.05" y="-338.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">integer</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="76.85,-257.39 76.85,-317.39 431.85,-317.39 431.85,-257.39 76.85,-257.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="76.85,-257.39 76.85,-317.39 431.85,-317.39 431.85,-257.39 76.85,-257.39"/>
|
|
<text text-anchor="start" x="87.85" y="-277.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">title    </text>
|
|
<text text-anchor="start" x="314.18" y="-278.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">varchar</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="76.85,-197.39 76.85,-257.39 431.85,-257.39 431.85,-197.39 76.85,-197.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="76.85,-197.39 76.85,-257.39 431.85,-257.39 431.85,-197.39 76.85,-197.39"/>
|
|
<text text-anchor="start" x="87.85" y="-217.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">body    </text>
|
|
<text text-anchor="start" x="369.28" y="-218.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">text</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="76.85,-137.39 76.85,-197.39 431.85,-197.39 431.85,-137.39 76.85,-137.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="76.85,-137.39 76.85,-197.39 431.85,-197.39 431.85,-137.39 76.85,-137.39"/>
|
|
<text text-anchor="start" x="87.85" y="-157.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">user_id    </text>
|
|
<text text-anchor="start" x="323.05" y="-158.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">integer</text>
|
|
<polygon fill="#e7e2dd" stroke="transparent" points="76.85,-77.39 76.85,-137.39 431.85,-137.39 431.85,-77.39 76.85,-77.39"/>
|
|
<polygon fill="none" stroke="#29235c" points="76.85,-77.39 76.85,-137.39 431.85,-137.39 431.85,-77.39 76.85,-77.39"/>
|
|
<text text-anchor="start" x="87.48" y="-97.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">created_at    </text>
|
|
<text text-anchor="start" x="273.57" y="-98.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">timestamp</text>
|
|
<polygon fill="none" stroke="#29235c" stroke-width="2" points="75.35,-76.39 75.35,-438.39 432.35,-438.39 432.35,-76.39 75.35,-76.39"/>
|
|
</g>
|
|
<!-- posts->users -->
|
|
<!-- posts->users -->
|
|
<g id="edge2" class="edge">
|
|
<title>posts:e->users:w</title>
|
|
<path fill="none" stroke="#29235c" stroke-width="3" d="M432.85,-167.39C544.62,-167.39 506.8,-336.65 609.51,-346.9"/>
|
|
<polygon fill="#29235c" stroke="#29235c" stroke-width="3" points="609.4,-350.4 619.55,-347.39 609.73,-343.41 609.4,-350.4"/>
|
|
<text text-anchor="middle" x="628.45" y="-356.99" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">1</text>
|
|
<text text-anchor="middle" x="426.63" y="-138.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">*</text>
|
|
</g>
|
|
</g>
|
|
</svg>
|