Files
HKSingleParty/99_references/dbml_examples/issue-11.dbml.svg
2025-05-28 09:55:51 +08:00

96 lines
10 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="1236pt" height="1332pt"
viewBox="0.00 0.00 1236.18 1331.92" 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 1327.92)">
<title>dbml</title>
<!-- order_status -->
<g id="order_status" class="node">
<title>order_status</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="994.84" cy="-257.39" rx="233.19" ry="257.27"/>
<polygon fill="#29235c" stroke="transparent" points="831.84,-377.39 831.84,-437.39 1157.84,-437.39 1157.84,-377.39 831.84,-377.39"/>
<polygon fill="none" stroke="#29235c" points="831.84,-377.39 831.84,-437.39 1157.84,-437.39 1157.84,-377.39 831.84,-377.39"/>
<text text-anchor="start" x="843.68" y="-398.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;order_status &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="831.84,-317.39 831.84,-377.39 1157.84,-377.39 1157.84,-317.39 831.84,-317.39"/>
<polygon fill="none" stroke="#29235c" points="831.84,-317.39 831.84,-377.39 1157.84,-377.39 1157.84,-317.39 831.84,-317.39"/>
<text text-anchor="start" x="842.78" y="-338.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Abandoned Cart &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="831.84,-257.39 831.84,-317.39 1157.84,-317.39 1157.84,-257.39 831.84,-257.39"/>
<polygon fill="none" stroke="#29235c" points="831.84,-257.39 831.84,-317.39 1157.84,-317.39 1157.84,-257.39 831.84,-257.39"/>
<text text-anchor="start" x="887.25" y="-278.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Submitted &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="831.84,-197.39 831.84,-257.39 1157.84,-257.39 1157.84,-197.39 831.84,-197.39"/>
<polygon fill="none" stroke="#29235c" points="831.84,-197.39 831.84,-257.39 1157.84,-257.39 1157.84,-197.39 831.84,-197.39"/>
<text text-anchor="start" x="927.26" y="-218.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Paid &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="831.84,-137.39 831.84,-197.39 1157.84,-197.39 1157.84,-137.39 831.84,-137.39"/>
<polygon fill="none" stroke="#29235c" points="831.84,-137.39 831.84,-197.39 1157.84,-197.39 1157.84,-137.39 831.84,-137.39"/>
<text text-anchor="start" x="900.57" y="-158.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Shipped &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="831.84,-77.39 831.84,-137.39 1157.84,-137.39 1157.84,-77.39 831.84,-77.39"/>
<polygon fill="none" stroke="#29235c" points="831.84,-77.39 831.84,-137.39 1157.84,-137.39 1157.84,-77.39 831.84,-77.39"/>
<text text-anchor="start" x="891.71" y="-98.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Delivered &#160;&#160;&#160;</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="830.84,-76.39 830.84,-438.39 1158.84,-438.39 1158.84,-76.39 830.84,-76.39"/>
</g>
<!-- dbml_test_string_enum -->
<g id="dbml_test_string_enum" class="node">
<title>dbml_test_string_enum</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="362.75" cy="-788.39" rx="341.57" ry="172.57"/>
<polygon fill="#29235c" stroke="transparent" points="123.75,-848.39 123.75,-908.39 602.75,-908.39 602.75,-848.39 123.75,-848.39"/>
<polygon fill="none" stroke="#29235c" points="123.75,-848.39 123.75,-908.39 602.75,-908.39 602.75,-848.39 123.75,-848.39"/>
<text text-anchor="start" x="134.74" y="-869.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;dbml_test_string_enum &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="123.75,-788.39 123.75,-848.39 602.75,-848.39 602.75,-788.39 123.75,-788.39"/>
<polygon fill="none" stroke="#29235c" points="123.75,-788.39 123.75,-848.39 602.75,-848.39 602.75,-788.39 123.75,-788.39"/>
<text text-anchor="start" x="269" y="-809.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Choice1 &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="123.75,-728.39 123.75,-788.39 602.75,-788.39 602.75,-728.39 123.75,-728.39"/>
<polygon fill="none" stroke="#29235c" points="123.75,-728.39 123.75,-788.39 602.75,-788.39 602.75,-728.39 123.75,-728.39"/>
<text text-anchor="start" x="269" y="-749.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Choice2 &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="123.75,-668.39 123.75,-728.39 602.75,-728.39 602.75,-668.39 123.75,-668.39"/>
<polygon fill="none" stroke="#29235c" points="123.75,-668.39 123.75,-728.39 602.75,-728.39 602.75,-668.39 123.75,-668.39"/>
<text text-anchor="start" x="269" y="-689.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;Choice3 &#160;&#160;&#160;</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="122.25,-667.39 122.25,-909.39 603.25,-909.39 603.25,-667.39 122.25,-667.39"/>
</g>
<!-- dbml_test_number_enum -->
<g id="dbml_test_number_enum" class="node">
<title>dbml_test_number_enum</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="362.75" cy="-1151.39" rx="362.99" ry="172.57"/>
<polygon fill="#29235c" stroke="transparent" points="108.75,-1211.39 108.75,-1271.39 617.75,-1271.39 617.75,-1211.39 108.75,-1211.39"/>
<polygon fill="none" stroke="#29235c" points="108.75,-1211.39 108.75,-1271.39 617.75,-1271.39 617.75,-1211.39 108.75,-1211.39"/>
<text text-anchor="start" x="119.62" y="-1232.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;dbml_test_number_enum &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="108.75,-1151.39 108.75,-1211.39 617.75,-1211.39 617.75,-1151.39 108.75,-1151.39"/>
<polygon fill="none" stroke="#29235c" points="108.75,-1151.39 108.75,-1211.39 617.75,-1211.39 617.75,-1151.39 108.75,-1151.39"/>
<text text-anchor="start" x="318.78" y="-1172.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;1 &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="108.75,-1091.39 108.75,-1151.39 617.75,-1151.39 617.75,-1091.39 108.75,-1091.39"/>
<polygon fill="none" stroke="#29235c" points="108.75,-1091.39 108.75,-1151.39 617.75,-1151.39 617.75,-1091.39 108.75,-1091.39"/>
<text text-anchor="start" x="318.78" y="-1112.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;2 &#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="108.75,-1031.39 108.75,-1091.39 617.75,-1091.39 617.75,-1031.39 108.75,-1031.39"/>
<polygon fill="none" stroke="#29235c" points="108.75,-1031.39 108.75,-1091.39 617.75,-1091.39 617.75,-1031.39 108.75,-1031.39"/>
<text text-anchor="start" x="318.78" y="-1052.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#1d71b8"> &#160;&#160;&#160;3 &#160;&#160;&#160;</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="107.25,-1030.39 107.25,-1272.39 618.25,-1272.39 618.25,-1030.39 107.25,-1030.39"/>
</g>
<!-- orders -->
<g id="orders" class="node">
<title>orders</title>
<ellipse fill="none" stroke="black" stroke-width="0" cx="362.75" cy="-467.39" rx="228.29" ry="130.22"/>
<polygon fill="#1d71b8" stroke="transparent" points="203.75,-497.39 203.75,-557.39 522.75,-557.39 522.75,-497.39 203.75,-497.39"/>
<polygon fill="none" stroke="#29235c" points="203.75,-497.39 203.75,-557.39 522.75,-557.39 522.75,-497.39 203.75,-497.39"/>
<text text-anchor="start" x="255.66" y="-518.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#ffffff"> &#160;&#160;&#160;&#160;&#160;&#160;orders &#160;&#160;&#160;&#160;&#160;&#160;</text>
<polygon fill="#e7e2dd" stroke="transparent" points="203.75,-437.39 203.75,-497.39 522.75,-497.39 522.75,-437.39 203.75,-437.39"/>
<polygon fill="none" stroke="#29235c" points="203.75,-437.39 203.75,-497.39 522.75,-497.39 522.75,-437.39 203.75,-437.39"/>
<text text-anchor="start" x="214.75" y="-458.59" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="32.00" fill="#29235c">id</text>
<text text-anchor="start" x="239.64" y="-458.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c"> &#160;&#160;&#160;</text>
<text text-anchor="start" x="477.96" y="-458.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">int</text>
<polygon fill="#e7e2dd" stroke="transparent" points="203.75,-377.39 203.75,-437.39 522.75,-437.39 522.75,-377.39 203.75,-377.39"/>
<polygon fill="none" stroke="#29235c" points="203.75,-377.39 203.75,-437.39 522.75,-437.39 522.75,-377.39 203.75,-377.39"/>
<text text-anchor="start" x="214.28" y="-397.59" font-family="Helvetica,sans-Serif" font-size="32.00" fill="#29235c">status &#160;&#160;&#160;</text>
<text text-anchor="start" x="334.33" y="-398.59" font-family="Helvetica,sans-Serif" font-style="italic" font-size="32.00" fill="#29235c">order_status</text>
<polygon fill="none" stroke="#29235c" stroke-width="2" points="202.25,-376.39 202.25,-558.39 523.25,-558.39 523.25,-376.39 202.25,-376.39"/>
</g>
<!-- orders&#45;&gt;order_status -->
<g id="edge1" class="edge">
<title>orders:e&#45;&gt;order_status:w</title>
<path fill="none" stroke="#29235c" stroke-width="3" d="M523.75,-407.39C660.23,-407.39 694.35,-407.39 830.84,-407.39"/>
</g>
</g>
</svg>