code9ty/website

View on GitHub
doc/models_complete.svg

Summary

Maintainability
Test Coverage
<?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.38.0 (20140413.2041)
 -->
<!-- Title: models_diagram Pages: 1 -->
<svg width="1013pt" height="686pt"
 viewBox="0.00 0.00 1013.00 686.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 682)">
<title>models_diagram</title>
<polygon fill="none" stroke="none" points="-4,4 -4,-682 1009,-682 1009,4 -4,4"/>
<!-- _diagram_info -->
<g id="node1" class="node"><title>_diagram_info</title>
<text text-anchor="start" x="8" y="-619.1" font-family="Times,serif" font-size="13.00">Models diagram</text>
<text text-anchor="start" x="8" y="-605.1" font-family="Times,serif" font-size="13.00">Date: Nov 07 2016 &#45; 12:16</text>
<text text-anchor="start" x="8" y="-591.1" font-family="Times,serif" font-size="13.00">Migration version: 20160917082613</text>
<text text-anchor="start" x="8" y="-577.1" font-family="Times,serif" font-size="13.00">Generated by RailRoady 1.5.2</text>
<text text-anchor="start" x="8" y="-563.1" font-family="Times,serif" font-size="13.00">http://railroady.prestonlee.com</text>
</g>
<!-- Assignment -->
<g id="node2" class="node"><title>Assignment</title>
<path fill="none" stroke="black" d="M244.5,-519C244.5,-519 351.5,-519 351.5,-519 357.5,-519 363.5,-525 363.5,-531 363.5,-531 363.5,-658 363.5,-658 363.5,-664 357.5,-670 351.5,-670 351.5,-670 244.5,-670 244.5,-670 238.5,-670 232.5,-664 232.5,-658 232.5,-658 232.5,-531 232.5,-531 232.5,-525 238.5,-519 244.5,-519"/>
<text text-anchor="middle" x="298" y="-654.8" font-family="Times,serif" font-size="14.00">Assignment</text>
<polyline fill="none" stroke="black" points="232.5,-647 363.5,-647 "/>
<text text-anchor="start" x="240.5" y="-631.8" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="240.5" y="-616.8" font-family="Times,serif" font-size="14.00">title :varchar</text>
<text text-anchor="start" x="240.5" y="-601.8" font-family="Times,serif" font-size="14.00">description :varchar</text>
<text text-anchor="start" x="240.5" y="-586.8" font-family="Times,serif" font-size="14.00">link :varchar</text>
<text text-anchor="start" x="240.5" y="-571.8" font-family="Times,serif" font-size="14.00">due_date :datetime</text>
<text text-anchor="start" x="240.5" y="-556.8" font-family="Times,serif" font-size="14.00">start_date :datetime</text>
<text text-anchor="start" x="240.5" y="-541.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="240.5" y="-526.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- ApplicationRecord -->
<g id="node3" class="node"><title>ApplicationRecord</title>
<ellipse fill="none" stroke="black" cx="459" cy="-594.5" rx="77.1866" ry="18"/>
<text text-anchor="middle" x="459" y="-590.8" font-family="Times,serif" font-size="14.00">ApplicationRecord</text>
</g>
<!-- Project -->
<g id="node4" class="node"><title>Project</title>
<path fill="none" stroke="black" d="M566.5,-526.5C566.5,-526.5 673.5,-526.5 673.5,-526.5 679.5,-526.5 685.5,-532.5 685.5,-538.5 685.5,-538.5 685.5,-650.5 685.5,-650.5 685.5,-656.5 679.5,-662.5 673.5,-662.5 673.5,-662.5 566.5,-662.5 566.5,-662.5 560.5,-662.5 554.5,-656.5 554.5,-650.5 554.5,-650.5 554.5,-538.5 554.5,-538.5 554.5,-532.5 560.5,-526.5 566.5,-526.5"/>
<text text-anchor="middle" x="620" y="-647.3" font-family="Times,serif" font-size="14.00">Project</text>
<polyline fill="none" stroke="black" points="554.5,-639.5 685.5,-639.5 "/>
<text text-anchor="start" x="562.5" y="-624.3" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="562.5" y="-609.3" font-family="Times,serif" font-size="14.00">link :varchar</text>
<text text-anchor="start" x="562.5" y="-594.3" font-family="Times,serif" font-size="14.00">title :varchar</text>
<text text-anchor="start" x="562.5" y="-579.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="562.5" y="-564.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="562.5" y="-549.3" font-family="Times,serif" font-size="14.00">start_date :datetime</text>
<text text-anchor="start" x="562.5" y="-534.3" font-family="Times,serif" font-size="14.00">due_date :datetime</text>
</g>
<!-- Bid -->
<g id="node8" class="node"><title>Bid</title>
<path fill="none" stroke="black" d="M485.5,-8C485.5,-8 592.5,-8 592.5,-8 598.5,-8 604.5,-14 604.5,-20 604.5,-20 604.5,-147 604.5,-147 604.5,-153 598.5,-159 592.5,-159 592.5,-159 485.5,-159 485.5,-159 479.5,-159 473.5,-153 473.5,-147 473.5,-147 473.5,-20 473.5,-20 473.5,-14 479.5,-8 485.5,-8"/>
<text text-anchor="middle" x="539" y="-143.8" font-family="Times,serif" font-size="14.00">Bid</text>
<polyline fill="none" stroke="black" points="473.5,-136 604.5,-136 "/>
<text text-anchor="start" x="481.5" y="-120.8" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="481.5" y="-105.8" font-family="Times,serif" font-size="14.00">user_id :integer</text>
<text text-anchor="start" x="481.5" y="-90.8" font-family="Times,serif" font-size="14.00">project_id :integer</text>
<text text-anchor="start" x="481.5" y="-75.8" font-family="Times,serif" font-size="14.00">due_date :datetime</text>
<text text-anchor="start" x="481.5" y="-60.8" font-family="Times,serif" font-size="14.00">status :integer</text>
<text text-anchor="start" x="481.5" y="-45.8" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="481.5" y="-30.8" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="481.5" y="-15.8" font-family="Times,serif" font-size="14.00">start_date :datetime</text>
</g>
<!-- Project&#45;&gt;Bid -->
<g id="edge2" class="edge"><title>Project&#45;&gt;Bid</title>
<path fill="none" stroke="#c6a576" d="M599.598,-518.524C596.089,-504.145 592.707,-489.158 590,-475 569.992,-370.35 555.445,-248.406 547.124,-169.002"/>
<ellipse fill="none" stroke="#c6a576" cx="600.596" cy="-522.558" rx="4.00001" ry="4.00001"/>
<polygon fill="#c6a576" stroke="#c6a576" points="547.124,-168.998 550.567,-158.587 546.607,-164.025 546.091,-159.052 546.091,-159.052 546.091,-159.052 546.607,-164.025 541.615,-159.516 547.124,-168.998 547.124,-168.998"/>
</g>
<!-- User -->
<g id="node9" class="node"><title>User</title>
<path fill="none" stroke="black" d="M611,-203.5C611,-203.5 747,-203.5 747,-203.5 753,-203.5 759,-209.5 759,-215.5 759,-215.5 759,-462.5 759,-462.5 759,-468.5 753,-474.5 747,-474.5 747,-474.5 611,-474.5 611,-474.5 605,-474.5 599,-468.5 599,-462.5 599,-462.5 599,-215.5 599,-215.5 599,-209.5 605,-203.5 611,-203.5"/>
<text text-anchor="middle" x="679" y="-459.3" font-family="Times,serif" font-size="14.00">User</text>
<polyline fill="none" stroke="black" points="599,-451.5 759,-451.5 "/>
<text text-anchor="start" x="607" y="-436.3" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="607" y="-421.3" font-family="Times,serif" font-size="14.00">first_name :varchar</text>
<text text-anchor="start" x="607" y="-406.3" font-family="Times,serif" font-size="14.00">last_name :varchar</text>
<text text-anchor="start" x="607" y="-391.3" font-family="Times,serif" font-size="14.00">university :varchar</text>
<text text-anchor="start" x="607" y="-376.3" font-family="Times,serif" font-size="14.00">year_of_study :varchar</text>
<text text-anchor="start" x="607" y="-361.3" font-family="Times,serif" font-size="14.00">github :varchar</text>
<text text-anchor="start" x="607" y="-346.3" font-family="Times,serif" font-size="14.00">mobile_number :varchar</text>
<text text-anchor="start" x="607" y="-331.3" font-family="Times,serif" font-size="14.00">email :varchar</text>
<text text-anchor="start" x="607" y="-316.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="607" y="-301.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="607" y="-286.3" font-family="Times,serif" font-size="14.00">password_digest :varchar</text>
<text text-anchor="start" x="607" y="-271.3" font-family="Times,serif" font-size="14.00">remember_digest :varchar</text>
<text text-anchor="start" x="607" y="-256.3" font-family="Times,serif" font-size="14.00">treasurer :boolean</text>
<text text-anchor="start" x="607" y="-241.3" font-family="Times,serif" font-size="14.00">admin :boolean</text>
<text text-anchor="start" x="607" y="-226.3" font-family="Times,serif" font-size="14.00">visible :boolean</text>
<text text-anchor="start" x="607" y="-211.3" font-family="Times,serif" font-size="14.00">testimony :text</text>
</g>
<!-- Project&#45;&gt;User -->
<g id="edge1" class="edge"><title>Project&#45;&gt;User</title>
<path fill="none" stroke="#35d4da" d="M637.968,-516.299C640.324,-506.176 642.797,-495.552 645.311,-484.75"/>
<polygon fill="#35d4da" stroke="#35d4da" points="637.923,-516.493 631.273,-525.212 636.789,-521.362 635.656,-526.232 635.656,-526.232 635.656,-526.232 636.789,-521.362 640.039,-527.252 637.923,-516.493 637.923,-516.493"/>
<polygon fill="#35d4da" stroke="#35d4da" points="645.362,-484.528 652.012,-475.809 646.496,-479.658 647.629,-474.788 647.629,-474.788 647.629,-474.788 646.496,-479.658 643.246,-473.768 645.362,-484.528 645.362,-484.528"/>
</g>
<!-- Contribution -->
<g id="node5" class="node"><title>Contribution</title>
<path fill="none" stroke="black" d="M634.5,-30.5C634.5,-30.5 745.5,-30.5 745.5,-30.5 751.5,-30.5 757.5,-36.5 757.5,-42.5 757.5,-42.5 757.5,-124.5 757.5,-124.5 757.5,-130.5 751.5,-136.5 745.5,-136.5 745.5,-136.5 634.5,-136.5 634.5,-136.5 628.5,-136.5 622.5,-130.5 622.5,-124.5 622.5,-124.5 622.5,-42.5 622.5,-42.5 622.5,-36.5 628.5,-30.5 634.5,-30.5"/>
<text text-anchor="middle" x="690" y="-121.3" font-family="Times,serif" font-size="14.00">Contribution</text>
<polyline fill="none" stroke="black" points="622.5,-113.5 757.5,-113.5 "/>
<text text-anchor="start" x="630.5" y="-98.3" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="630.5" y="-83.3" font-family="Times,serif" font-size="14.00">user_id :integer</text>
<text text-anchor="start" x="630.5" y="-68.3" font-family="Times,serif" font-size="14.00">amount :decimal(8,2)</text>
<text text-anchor="start" x="630.5" y="-53.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="630.5" y="-38.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- Intake -->
<g id="node6" class="node"><title>Intake</title>
<path fill="none" stroke="black" d="M715.5,-541.5C715.5,-541.5 822.5,-541.5 822.5,-541.5 828.5,-541.5 834.5,-547.5 834.5,-553.5 834.5,-553.5 834.5,-635.5 834.5,-635.5 834.5,-641.5 828.5,-647.5 822.5,-647.5 822.5,-647.5 715.5,-647.5 715.5,-647.5 709.5,-647.5 703.5,-641.5 703.5,-635.5 703.5,-635.5 703.5,-553.5 703.5,-553.5 703.5,-547.5 709.5,-541.5 715.5,-541.5"/>
<text text-anchor="middle" x="769" y="-632.3" font-family="Times,serif" font-size="14.00">Intake</text>
<polyline fill="none" stroke="black" points="703.5,-624.5 834.5,-624.5 "/>
<text text-anchor="start" x="711.5" y="-609.3" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="711.5" y="-594.3" font-family="Times,serif" font-size="14.00">start_date :datetime</text>
<text text-anchor="start" x="711.5" y="-579.3" font-family="Times,serif" font-size="14.00">last_date :datetime</text>
<text text-anchor="start" x="711.5" y="-564.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="711.5" y="-549.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
</g>
<!-- Comment -->
<g id="node7" class="node"><title>Comment</title>
<path fill="none" stroke="black" d="M787.5,-0.5C787.5,-0.5 894.5,-0.5 894.5,-0.5 900.5,-0.5 906.5,-6.5 906.5,-12.5 906.5,-12.5 906.5,-154.5 906.5,-154.5 906.5,-160.5 900.5,-166.5 894.5,-166.5 894.5,-166.5 787.5,-166.5 787.5,-166.5 781.5,-166.5 775.5,-160.5 775.5,-154.5 775.5,-154.5 775.5,-12.5 775.5,-12.5 775.5,-6.5 781.5,-0.5 787.5,-0.5"/>
<text text-anchor="middle" x="841" y="-151.3" font-family="Times,serif" font-size="14.00">Comment</text>
<polyline fill="none" stroke="black" points="775.5,-143.5 906.5,-143.5 "/>
<text text-anchor="start" x="783.5" y="-128.3" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="783.5" y="-113.3" font-family="Times,serif" font-size="14.00">user_id :integer</text>
<text text-anchor="start" x="783.5" y="-98.3" font-family="Times,serif" font-size="14.00">learnt :text</text>
<text text-anchor="start" x="783.5" y="-83.3" font-family="Times,serif" font-size="14.00">problem :text</text>
<text text-anchor="start" x="783.5" y="-68.3" font-family="Times,serif" font-size="14.00">rating :integer</text>
<text text-anchor="start" x="783.5" y="-53.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="783.5" y="-38.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="783.5" y="-23.3" font-family="Times,serif" font-size="14.00">suggestions :text</text>
<text text-anchor="start" x="783.5" y="-8.3" font-family="Times,serif" font-size="14.00">possible_fix :text</text>
</g>
<!-- User&#45;&gt;Contribution -->
<g id="edge4" class="edge"><title>User&#45;&gt;Contribution</title>
<path fill="none" stroke="#1d85dc" d="M685.187,-195.421C685.924,-178.436 686.644,-161.836 687.294,-146.867"/>
<ellipse fill="none" stroke="#1d85dc" cx="685.012" cy="-199.46" rx="4" ry="4"/>
<polygon fill="#1d85dc" stroke="#1d85dc" points="687.298,-146.771 692.227,-136.976 687.515,-141.776 687.731,-136.78 687.731,-136.78 687.731,-136.78 687.515,-141.776 683.236,-136.585 687.298,-146.771 687.298,-146.771"/>
</g>
<!-- User&#45;&gt;Comment -->
<g id="edge3" class="edge"><title>User&#45;&gt;Comment</title>
<path fill="none" stroke="#2c93b3" d="M763.487,-205.793C770.045,-195.531 776.572,-185.317 782.897,-175.421"/>
<ellipse fill="none" stroke="#2c93b3" cx="761.205" cy="-209.365" rx="4.00002" ry="4.00002"/>
<polygon fill="#2c93b3" stroke="#2c93b3" points="783.013,-175.239 792.19,-169.236 785.706,-171.026 788.398,-166.812 788.398,-166.812 788.398,-166.812 785.706,-171.026 784.606,-164.389 783.013,-175.239 783.013,-175.239"/>
</g>
<!-- User&#45;&gt;Bid -->
<g id="edge5" class="edge"><title>User&#45;&gt;Bid</title>
<path fill="none" stroke="#2cafce" d="M600.777,-196.36C595.5,-186.805 590.286,-177.363 585.257,-168.258"/>
<ellipse fill="none" stroke="#2cafce" cx="602.762" cy="-199.955" rx="4.00002" ry="4.00002"/>
<polygon fill="#2cafce" stroke="#2cafce" points="585.129,-168.027 584.234,-157.097 582.712,-163.65 580.295,-159.273 580.295,-159.273 580.295,-159.273 582.712,-163.65 576.355,-161.448 585.129,-168.027 585.129,-168.027"/>
</g>
<!-- Applicant -->
<g id="node10" class="node"><title>Applicant</title>
<path fill="none" stroke="black" d="M865,-511.5C865,-511.5 993,-511.5 993,-511.5 999,-511.5 1005,-517.5 1005,-523.5 1005,-523.5 1005,-665.5 1005,-665.5 1005,-671.5 999,-677.5 993,-677.5 993,-677.5 865,-677.5 865,-677.5 859,-677.5 853,-671.5 853,-665.5 853,-665.5 853,-523.5 853,-523.5 853,-517.5 859,-511.5 865,-511.5"/>
<text text-anchor="middle" x="929" y="-662.3" font-family="Times,serif" font-size="14.00">Applicant</text>
<polyline fill="none" stroke="black" points="853,-654.5 1005,-654.5 "/>
<text text-anchor="start" x="861" y="-639.3" font-family="Times,serif" font-size="14.00">id :INTEGER</text>
<text text-anchor="start" x="861" y="-624.3" font-family="Times,serif" font-size="14.00">first_name :varchar</text>
<text text-anchor="start" x="861" y="-609.3" font-family="Times,serif" font-size="14.00">email :varchar</text>
<text text-anchor="start" x="861" y="-594.3" font-family="Times,serif" font-size="14.00">github :varchar</text>
<text text-anchor="start" x="861" y="-579.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="861" y="-564.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="861" y="-549.3" font-family="Times,serif" font-size="14.00">status :integer</text>
<text text-anchor="start" x="861" y="-534.3" font-family="Times,serif" font-size="14.00">last_name :varchar</text>
<text text-anchor="start" x="861" y="-519.3" font-family="Times,serif" font-size="14.00">mobile_number :varchar</text>
</g>
</g>
</svg>