turniere-backend/doc/models_brief.svg

271 lines
16 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.40.1 (20161225.0304)
-->
<!-- Title: models_diagram Pages: 1 -->
<svg width="3966pt" height="518pt"
viewBox="0.00 0.00 3965.50 518.00" 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 514)">
<title>models_diagram</title>
<polygon fill="transparent" stroke="transparent" points="-4,4 -4,-514 3961.5,-514 3961.5,4 -4,4"/>
<!-- _diagram_info -->
<g id="node1" class="node">
<title>_diagram_info</title>
<text text-anchor="start" x="8" y="-495.6" font-family="Times,serif" font-size="13.00" fill="#000000">Models diagram</text>
<text text-anchor="start" x="8" y="-481.6" font-family="Times,serif" font-size="13.00" fill="#000000">Date: Nov 30 2018 &#45; 13:55</text>
<text text-anchor="start" x="8" y="-467.6" font-family="Times,serif" font-size="13.00" fill="#000000">Migration version: 0</text>
<text text-anchor="start" x="8" y="-453.6" font-family="Times,serif" font-size="13.00" fill="#000000">Generated by RailRoady 1.5.3</text>
<text text-anchor="start" x="8" y="-439.6" font-family="Times,serif" font-size="13.00" fill="#000000">http://railroady.prestonlee.com</text>
</g>
<!-- Stage -->
<g id="node2" class="node">
<title>Stage</title>
<ellipse fill="none" stroke="#000000" cx="236" cy="-234" rx="37.8943" ry="18"/>
<text text-anchor="middle" x="236" y="-230.3" font-family="Times,serif" font-size="14.00" fill="#000000">Stage</text>
</g>
<!-- Group -->
<g id="node4" class="node">
<title>Group</title>
<ellipse fill="none" stroke="#000000" cx="302" cy="-162" rx="39.7935" ry="18"/>
<text text-anchor="middle" x="302" y="-158.3" font-family="Times,serif" font-size="14.00" fill="#000000">Group</text>
</g>
<!-- Stage&#45;&gt;Group -->
<g id="edge2" class="edge">
<title>Stage&#45;&gt;Group</title>
<path fill="none" stroke="#939150" d="M256.7254,-211.3905C263.9007,-203.5629 271.9789,-194.7503 279.3041,-186.7591"/>
<ellipse fill="none" stroke="#939150" cx="254.0105" cy="-214.3522" rx="4" ry="4"/>
<polygon fill="#939150" stroke="#939150" points="279.5598,-186.4802 289.6343,-182.1494 282.9384,-182.7944 286.3171,-179.1086 286.3171,-179.1086 286.3171,-179.1086 282.9384,-182.7944 282.9999,-176.0679 279.5598,-186.4802 279.5598,-186.4802"/>
</g>
<!-- Match -->
<g id="node7" class="node">
<title>Match</title>
<ellipse fill="none" stroke="#000000" cx="234" cy="-90" rx="40.0939" ry="18"/>
<text text-anchor="middle" x="234" y="-86.3" font-family="Times,serif" font-size="14.00" fill="#000000">Match</text>
</g>
<!-- Stage&#45;&gt;Match -->
<g id="edge1" class="edge">
<title>Stage&#45;&gt;Match</title>
<path fill="none" stroke="#b23102" d="M235.6352,-207.7351C235.2842,-182.4642 234.7551,-144.3666 234.3945,-118.4018"/>
<ellipse fill="none" stroke="#b23102" cx="235.6911" cy="-211.7627" rx="4" ry="4"/>
<polygon fill="#b23102" stroke="#b23102" points="234.3902,-118.0887 238.7508,-108.0271 234.3207,-113.0891 234.2512,-108.0896 234.2512,-108.0896 234.2512,-108.0896 234.3207,-113.0891 229.7517,-108.1522 234.3902,-118.0887 234.3902,-118.0887"/>
</g>
<!-- Tournament -->
<g id="node3" class="node">
<title>Tournament</title>
<ellipse fill="none" stroke="#000000" cx="389" cy="-306" rx="67.6881" ry="18"/>
<text text-anchor="middle" x="389" y="-302.3" font-family="Times,serif" font-size="14.00" fill="#000000">Tournament</text>
</g>
<!-- Tournament&#45;&gt;Stage -->
<g id="edge5" class="edge">
<title>Tournament&#45;&gt;Stage</title>
<path fill="none" stroke="#470027" d="M348.0249,-286.7176C324.4001,-275.6 294.9649,-261.7482 272.1965,-251.0337"/>
<ellipse fill="none" stroke="#470027" cx="351.8042" cy="-288.4961" rx="4" ry="4"/>
<polygon fill="#470027" stroke="#470027" points="271.9314,-250.9089 264.7993,-242.5792 267.4073,-248.7799 262.8832,-246.6509 262.8832,-246.6509 262.8832,-246.6509 267.4073,-248.7799 260.9671,-250.7226 271.9314,-250.9089 271.9314,-250.9089"/>
</g>
<!-- Team -->
<g id="node8" class="node">
<title>Team</title>
<ellipse fill="none" stroke="#000000" cx="396" cy="-162" rx="36.2938" ry="18"/>
<text text-anchor="middle" x="396" y="-158.3" font-family="Times,serif" font-size="14.00" fill="#000000">Team</text>
</g>
<!-- Tournament&#45;&gt;Team -->
<g id="edge4" class="edge">
<title>Tournament&#45;&gt;Team</title>
<path fill="none" stroke="#b63561" d="M390.2768,-279.7351C391.5052,-254.4642 393.3572,-216.3666 394.6194,-190.4018"/>
<ellipse fill="none" stroke="#b63561" cx="390.0808" cy="-283.767" rx="4" ry="4"/>
<polygon fill="#b63561" stroke="#b63561" points="394.635,-190.0778 399.6153,-180.3082 394.8778,-185.0837 395.1206,-180.0896 395.1206,-180.0896 395.1206,-180.0896 394.8778,-185.0837 390.626,-179.8711 394.635,-190.0778 394.635,-190.0778"/>
</g>
<!-- GroupScore -->
<g id="node5" class="node">
<title>GroupScore</title>
<ellipse fill="none" stroke="#000000" cx="396" cy="-90" rx="66.0889" ry="18"/>
<text text-anchor="middle" x="396" y="-86.3" font-family="Times,serif" font-size="14.00" fill="#000000">GroupScore</text>
</g>
<!-- Group&#45;&gt;GroupScore -->
<g id="edge8" class="edge">
<title>Group&#45;&gt;GroupScore</title>
<path fill="none" stroke="#a84194" d="M329.0706,-141.2651C340.4472,-132.5511 353.7357,-122.3727 365.4601,-113.3923"/>
<ellipse fill="none" stroke="#a84194" cx="325.5721" cy="-143.9447" rx="4" ry="4"/>
<polygon fill="#a84194" stroke="#a84194" points="365.7324,-113.1837 376.4075,-110.6754 369.7018,-110.1433 373.6712,-107.1029 373.6712,-107.1029 373.6712,-107.1029 369.7018,-110.1433 370.9348,-103.5305 365.7324,-113.1837 365.7324,-113.1837"/>
</g>
<!-- Group&#45;&gt;Match -->
<g id="edge7" class="edge">
<title>Group&#45;&gt;Match</title>
<path fill="none" stroke="#2840c9" d="M280.5624,-139.3014C272.9772,-131.27 264.4213,-122.2108 256.7323,-114.0695"/>
<ellipse fill="none" stroke="#2840c9" cx="283.482" cy="-142.3927" rx="4" ry="4"/>
<polygon fill="#2840c9" stroke="#2840c9" points="256.5522,-113.8788 252.9575,-103.5188 253.1191,-110.2437 249.686,-106.6087 249.686,-106.6087 249.686,-106.6087 253.1191,-110.2437 246.4144,-109.6985 256.5522,-113.8788 256.5522,-113.8788"/>
</g>
<!-- ApplicationRecord -->
<g id="node6" class="node">
<title>ApplicationRecord</title>
<ellipse fill="none" stroke="#000000" cx="331" cy="-471" rx="96.6831" ry="18"/>
<text text-anchor="middle" x="331" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ApplicationRecord</text>
</g>
<!-- ApplicationRecord&#45;&gt;Stage -->
<g id="edge3" class="edge">
<title>ApplicationRecord&#45;&gt;Stage</title>
<path fill="none" stroke="#000000" d="M315.8227,-452.9894C304.2519,-438.4405 288.7031,-416.9993 279,-396 256.1754,-346.6034 243.752,-282.9314 238.7131,-252.1968"/>
</g>
<!-- ApplicationRecord&#45;&gt;Tournament -->
<g id="edge6" class="edge">
<title>ApplicationRecord&#45;&gt;Tournament</title>
<path fill="none" stroke="#000000" d="M331.6125,-452.6098C332.928,-429.9964 337.0576,-390.8256 350,-360 355.5512,-346.7783 364.8749,-333.6956 373.0139,-323.7195"/>
</g>
<!-- ApplicationRecord&#45;&gt;Group -->
<g id="edge9" class="edge">
<title>ApplicationRecord&#45;&gt;Group</title>
<path fill="none" stroke="#000000" d="M328.2698,-452.9393C324.1741,-425.2523 316.447,-370.6227 312,-324 307.0234,-271.8247 303.9995,-209.948 302.7179,-180.0102"/>
</g>
<!-- ApplicationRecord&#45;&gt;GroupScore -->
<g id="edge10" class="edge">
<title>ApplicationRecord&#45;&gt;GroupScore</title>
<path fill="none" stroke="#000000" d="M376.5013,-454.9977C433.2783,-431.7769 523,-382.9143 523,-306 523,-306 523,-306 523,-234 523,-175.3325 462.9727,-129.2703 425.4556,-106.2107"/>
</g>
<!-- ApplicationRecord&#45;&gt;Match -->
<g id="edge12" class="edge">
<title>ApplicationRecord&#45;&gt;Match</title>
<path fill="none" stroke="#000000" d="M295.2689,-454.2221C247.837,-429.1836 170,-377.2415 170,-306 170,-306 170,-306 170,-234 170,-184.4821 201.9932,-133.001 220.7392,-107.0864"/>
</g>
<!-- ApplicationRecord&#45;&gt;Team -->
<g id="edge15" class="edge">
<title>ApplicationRecord&#45;&gt;Team</title>
<path fill="none" stroke="#000000" d="M362.811,-453.8774C385.1378,-440.5442 414.3925,-420.2556 434,-396 456.0144,-368.767 458.7305,-358.2553 466,-324 477.8937,-267.9545 435.0605,-207.3473 411.1067,-178.7477"/>
</g>
<!-- User -->
<g id="node9" class="node">
<title>User</title>
<ellipse fill="none" stroke="#000000" cx="392" cy="-378" rx="33.2948" ry="18"/>
<text text-anchor="middle" x="392" y="-374.3" font-family="Times,serif" font-size="14.00" fill="#000000">User</text>
</g>
<!-- ApplicationRecord&#45;&gt;User -->
<g id="edge17" class="edge">
<title>ApplicationRecord&#45;&gt;User</title>
<path fill="none" stroke="#000000" d="M342.7614,-453.0687C353.7016,-436.3893 369.8935,-411.7034 380.6872,-395.2475"/>
</g>
<!-- MatchScore -->
<g id="node23" class="node">
<title>MatchScore</title>
<ellipse fill="none" stroke="#000000" cx="268" cy="-18" rx="67.6881" ry="18"/>
<text text-anchor="middle" x="268" y="-14.3" font-family="Times,serif" font-size="14.00" fill="#000000">MatchScore</text>
</g>
<!-- Match&#45;&gt;MatchScore -->
<g id="edge11" class="edge">
<title>Match&#45;&gt;MatchScore</title>
<path fill="none" stroke="#0df8ae" d="M245.8565,-64.8922C248.8655,-58.5201 252.1119,-51.6455 255.1669,-45.176"/>
<ellipse fill="none" stroke="#0df8ae" cx="244.1126" cy="-68.5852" rx="4" ry="4"/>
<polygon fill="#0df8ae" stroke="#0df8ae" points="255.1859,-45.1356 263.5252,-38.0147 257.321,-40.6144 259.456,-36.0931 259.456,-36.0931 259.456,-36.0931 257.321,-40.6144 255.3869,-34.1716 255.1859,-45.1356 255.1859,-45.1356"/>
</g>
<!-- Team&#45;&gt;GroupScore -->
<g id="edge13" class="edge">
<title>Team&#45;&gt;GroupScore</title>
<path fill="none" stroke="#43e40c" d="M396,-135.8144C396,-130.2775 396,-124.4053 396,-118.7785"/>
<ellipse fill="none" stroke="#43e40c" cx="396" cy="-139.8314" rx="4" ry="4"/>
<polygon fill="#43e40c" stroke="#43e40c" points="396.0001,-118.4133 400.5,-108.4132 396,-113.4133 396,-108.4133 396,-108.4133 396,-108.4133 396,-113.4133 391.5,-108.4133 396.0001,-118.4133 396.0001,-118.4133"/>
</g>
<!-- Team&#45;&gt;MatchScore -->
<g id="edge14" class="edge">
<title>Team&#45;&gt;MatchScore</title>
<path fill="none" stroke="#b0ae8d" d="M365.139,-143.9723C350.6144,-134.497 333.7303,-121.9563 321,-108 303.8556,-89.2046 289.5846,-63.9795 280.1866,-45.0171"/>
<ellipse fill="none" stroke="#b0ae8d" cx="368.6764" cy="-146.2231" rx="4" ry="4"/>
<polygon fill="#b0ae8d" stroke="#b0ae8d" points="280.1856,-45.0149 279.9053,-34.0526 278.0179,-40.5092 275.8502,-36.0035 275.8502,-36.0035 275.8502,-36.0035 278.0179,-40.5092 271.7951,-37.9545 280.1856,-45.0149 280.1856,-45.0149"/>
</g>
<!-- User&#45;&gt;Tournament -->
<g id="edge16" class="edge">
<title>User&#45;&gt;Tournament</title>
<path fill="none" stroke="#22da7a" d="M390.9089,-351.8144C390.6782,-346.2775 390.4336,-340.4053 390.1991,-334.7785"/>
<ellipse fill="none" stroke="#22da7a" cx="391.0764" cy="-355.8348" rx="4" ry="4"/>
<polygon fill="#22da7a" stroke="#22da7a" points="390.1836,-334.4046 394.2633,-324.2259 389.9754,-329.4089 389.7672,-324.4133 389.7672,-324.4133 389.7672,-324.4133 389.9754,-329.4089 385.2711,-324.6006 390.1836,-334.4046 390.1836,-334.4046"/>
</g>
<!-- ActiveStorage::Blob -->
<g id="node10" class="node">
<title>ActiveStorage::Blob</title>
<ellipse fill="none" stroke="#000000" cx="550" cy="-471" rx="103.9815" ry="18"/>
<text text-anchor="middle" x="550" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Blob</text>
</g>
<!-- ActiveStorage::Filename::Parameters -->
<g id="node11" class="node">
<title>ActiveStorage::Filename::Parameters</title>
<polygon fill="none" stroke="#000000" points="956.5,-489 671.5,-489 671.5,-453 956.5,-453 956.5,-489"/>
<text text-anchor="middle" x="814" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Filename::Parameters</text>
</g>
<!-- ActiveStorage::Variant -->
<g id="node12" class="node">
<title>ActiveStorage::Variant</title>
<polygon fill="none" stroke="#000000" points="1153.5,-489 974.5,-489 974.5,-453 1153.5,-453 1153.5,-489"/>
<text text-anchor="middle" x="1064" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Variant</text>
</g>
<!-- ActiveStorage::Preview -->
<g id="node13" class="node">
<title>ActiveStorage::Preview</title>
<polygon fill="none" stroke="#000000" points="1356.5,-489 1171.5,-489 1171.5,-453 1356.5,-453 1356.5,-489"/>
<text text-anchor="middle" x="1264" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Preview</text>
</g>
<!-- ActiveStorage::Blob::Analyzable -->
<g id="node14" class="node">
<title>ActiveStorage::Blob::Analyzable</title>
<polygon fill="none" stroke="#000000" stroke-dasharray="1,5" points="1621.5,-489 1374.5,-489 1374.5,-453 1621.5,-453 1621.5,-489"/>
<text text-anchor="middle" x="1498" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Blob::Analyzable</text>
</g>
<!-- ActiveStorage::Blob::Identifiable -->
<g id="node15" class="node">
<title>ActiveStorage::Blob::Identifiable</title>
<polygon fill="none" stroke="#000000" stroke-dasharray="1,5" points="1890.5,-489 1639.5,-489 1639.5,-453 1890.5,-453 1890.5,-489"/>
<text text-anchor="middle" x="1765" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Blob::Identifiable</text>
</g>
<!-- ActiveStorage::Blob::Representable -->
<g id="node16" class="node">
<title>ActiveStorage::Blob::Representable</title>
<polygon fill="none" stroke="#000000" stroke-dasharray="1,5" points="2181,-489 1909,-489 1909,-453 2181,-453 2181,-489"/>
<text text-anchor="middle" x="2045" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Blob::Representable</text>
</g>
<!-- ActiveStorage::Current -->
<g id="node17" class="node">
<title>ActiveStorage::Current</title>
<polygon fill="none" stroke="#000000" points="2460.5,-396 2275.5,-396 2275.5,-360 2460.5,-360 2460.5,-396"/>
<text text-anchor="middle" x="2368" y="-374.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Current</text>
</g>
<!-- ActiveStorage::Attachment -->
<g id="node18" class="node">
<title>ActiveStorage::Attachment</title>
<ellipse fill="none" stroke="#000000" cx="2693" cy="-471" rx="137.5759" ry="18"/>
<text text-anchor="middle" x="2693" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Attachment</text>
</g>
<!-- ActiveStorage::Filename -->
<g id="node19" class="node">
<title>ActiveStorage::Filename</title>
<polygon fill="none" stroke="#000000" points="3043,-489 2849,-489 2849,-453 3043,-453 3043,-489"/>
<text text-anchor="middle" x="2946" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Filename</text>
</g>
<!-- ActiveStorage::Variation -->
<g id="node20" class="node">
<title>ActiveStorage::Variation</title>
<polygon fill="none" stroke="#000000" points="3253,-489 3061,-489 3061,-453 3253,-453 3253,-489"/>
<text text-anchor="middle" x="3157" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveStorage::Variation</text>
</g>
<!-- DeviseTokenAuth::Concerns::UserOmniauthCallbacks -->
<g id="node21" class="node">
<title>DeviseTokenAuth::Concerns::UserOmniauthCallbacks</title>
<polygon fill="none" stroke="#000000" stroke-dasharray="1,5" points="3676.5,-489 3271.5,-489 3271.5,-453 3676.5,-453 3676.5,-489"/>
<text text-anchor="middle" x="3474" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">DeviseTokenAuth::Concerns::UserOmniauthCallbacks</text>
</g>
<!-- DeviseTokenAuth::Concerns::User -->
<g id="node22" class="node">
<title>DeviseTokenAuth::Concerns::User</title>
<polygon fill="none" stroke="#000000" stroke-dasharray="1,5" points="3957.5,-489 3694.5,-489 3694.5,-453 3957.5,-453 3957.5,-489"/>
<text text-anchor="middle" x="3826" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">DeviseTokenAuth::Concerns::User</text>
</g>
<!-- ActiveSupport::CurrentAttributes -->
<g id="node24" class="node">
<title>ActiveSupport::CurrentAttributes</title>
<ellipse fill="none" stroke="#000000" cx="2368" cy="-471" rx="168.97" ry="18"/>
<text text-anchor="middle" x="2368" y="-467.3" font-family="Times,serif" font-size="14.00" fill="#000000">ActiveSupport::CurrentAttributes</text>
</g>
<!-- ActiveSupport::CurrentAttributes&#45;&gt;ActiveStorage::Current -->
<g id="edge18" class="edge">
<title>ActiveSupport::CurrentAttributes&#45;&gt;ActiveStorage::Current</title>
<path fill="none" stroke="#000000" d="M2368,-452.6262C2368,-436.2161 2368,-412.3202 2368,-396.0192"/>
</g>
</g>
</svg>