Cleaned and rendered domain model

This commit is contained in:
Felix Albrigtsen 2022-03-06 16:20:40 +01:00
parent 0ad593dc9c
commit 50f44d04cf
3 changed files with 74 additions and 3 deletions

View File

@ -25,14 +25,20 @@ class Tournament {
Name Name
Banner Image Banner Image
Start-date Start-time
End-date End-time
Teams Teams
} }
class Administrator {
*admin_id
Name
Email
Manager-status
}
Team "2..*" -> "1..*" Tournament : "Plays in" Team "2..*" -> "1..*" Tournament : "Plays in"
Tournament "1" --> "*" Match : contains Tournament "1" --> "1..*" Match : contains
Player "1..*" --> "1..1" Team : "Belongs to" Player "1..*" --> "1..1" Team : "Belongs to"
Team "2..2" --> "1..*" Match : "Competes in" Team "2..2" --> "1..*" Match : "Competes in"

Binary file not shown.

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="544px" preserveAspectRatio="none" style="width:316px;height:544px;background:#FFFFFF;" version="1.1" viewBox="0 0 316 544" width="316px" zoomAndPan="magnify"><defs><filter height="300%" id="fbixmql5f2v1u" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacing" textLength="271" x="16" y="16.708">Tournament System - Group 1</text><!--MD5=[5f0899136ed8f523b18ed05779c24112]
class Match--><rect codeLine="3" fill="#FEFECE" filter="url(#fbixmql5f2v1u)" height="112.0234" id="Match" style="stroke:#A80036;stroke-width:1.5;" width="125" x="89.5" y="418.9531"/><ellipse cx="129.25" cy="434.9531" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M132.2188,440.5938 Q131.6406,440.8906 131,441.0313 Q130.3594,441.1875 129.6563,441.1875 Q127.1563,441.1875 125.8281,439.5469 Q124.5156,437.8906 124.5156,434.7656 Q124.5156,431.6406 125.8281,429.9844 Q127.1563,428.3281 129.6563,428.3281 Q130.3594,428.3281 131,428.4844 Q131.6563,428.6406 132.2188,428.9375 L132.2188,431.6563 Q131.5938,431.0781 131,430.8125 Q130.4063,430.5313 129.7813,430.5313 Q128.4375,430.5313 127.75,431.6094 Q127.0625,432.6719 127.0625,434.7656 Q127.0625,436.8594 127.75,437.9375 Q128.4375,439 129.7813,439 Q130.4063,439 131,438.7344 Q131.5938,438.4531 132.2188,437.875 L132.2188,440.5938 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="38" x="148.75" y="439.1074">Match</text><line style="stroke:#A80036;stroke-width:1.5;" x1="90.5" x2="213.5" y1="450.9531" y2="450.9531"/><ellipse cx="100.5" cy="461.9531" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="99" x="109.5" y="465.1636">match_id: Integer</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="69" x="109.5" y="477.9683">Tournament</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="39" x="109.5" y="490.7729">Teams</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="40" x="109.5" y="503.5776">Scores</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="38" x="109.5" y="516.3823">Winner</text><line style="stroke:#A80036;stroke-width:1.5;" x1="90.5" x2="213.5" y1="522.9766" y2="522.9766"/><!--MD5=[dfb0845b8492ffe07b1ce50e003034d7]
class Team--><rect codeLine="10" fill="#FEFECE" filter="url(#fbixmql5f2v1u)" height="112.0234" id="Team" style="stroke:#A80036;stroke-width:1.5;" width="102" x="7" y="216.9531"/><ellipse cx="38.2" cy="232.9531" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M41.1688,238.5938 Q40.5906,238.8906 39.95,239.0313 Q39.3094,239.1875 38.6063,239.1875 Q36.1063,239.1875 34.7781,237.5469 Q33.4656,235.8906 33.4656,232.7656 Q33.4656,229.6406 34.7781,227.9844 Q36.1063,226.3281 38.6063,226.3281 Q39.3094,226.3281 39.95,226.4844 Q40.6063,226.6406 41.1688,226.9375 L41.1688,229.6563 Q40.5438,229.0781 39.95,228.8125 Q39.3563,228.5313 38.7313,228.5313 Q37.3875,228.5313 36.7,229.6094 Q36.0125,230.6719 36.0125,232.7656 Q36.0125,234.8594 36.7,235.9375 Q37.3875,237 38.7313,237 Q39.3563,237 39.95,236.7344 Q40.5438,236.4531 41.1688,235.875 L41.1688,238.5938 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="34" x="55.8" y="237.1074">Team</text><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="108" y1="248.9531" y2="248.9531"/><ellipse cx="18" cy="259.9531" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="45" x="27" y="263.1636">team_id</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="33" x="27" y="275.9683">Name</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="76" x="27" y="288.7729">Tournaments</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="42" x="27" y="301.5776">Players</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="47" x="27" y="314.3823">Matches</text><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="108" y1="320.9766" y2="320.9766"/><!--MD5=[2cb47ba637a0d19583e6199456f6ad0b]
class Player--><rect codeLine="17" fill="#FEFECE" filter="url(#fbixmql5f2v1u)" height="73.6094" id="Player" style="stroke:#A80036;stroke-width:1.5;" width="77" x="19.5" y="40.4531"/><ellipse cx="37.65" cy="56.4531" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M40.6188,62.0938 Q40.0406,62.3906 39.4,62.5313 Q38.7594,62.6875 38.0563,62.6875 Q35.5563,62.6875 34.2281,61.0469 Q32.9156,59.3906 32.9156,56.2656 Q32.9156,53.1406 34.2281,51.4844 Q35.5563,49.8281 38.0563,49.8281 Q38.7594,49.8281 39.4,49.9844 Q40.0563,50.1406 40.6188,50.4375 L40.6188,53.1563 Q39.9938,52.5781 39.4,52.3125 Q38.8063,52.0313 38.1813,52.0313 Q36.8375,52.0313 36.15,53.1094 Q35.4625,54.1719 35.4625,56.2656 Q35.4625,58.3594 36.15,59.4375 Q36.8375,60.5 38.1813,60.5 Q38.8063,60.5 39.4,60.2344 Q39.9938,59.9531 40.6188,59.375 L40.6188,62.0938 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="38" x="52.35" y="60.6074">Player</text><line style="stroke:#A80036;stroke-width:1.5;" x1="20.5" x2="95.5" y1="72.4531" y2="72.4531"/><ellipse cx="30.5" cy="83.4531" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="51" x="39.5" y="86.6636">player_id</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="33" x="39.5" y="99.4683">Name</text><line style="stroke:#A80036;stroke-width:1.5;" x1="20.5" x2="95.5" y1="106.0625" y2="106.0625"/><!--MD5=[a4b4d324fd2684dbb9bd6a0eaf7882b2]
class Tournament--><rect codeLine="22" fill="#FEFECE" filter="url(#fbixmql5f2v1u)" height="137.6328" id="Tournament" style="stroke:#A80036;stroke-width:1.5;" width="108" x="194" y="203.9531"/><ellipse cx="209" cy="219.9531" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M211.9688,225.5938 Q211.3906,225.8906 210.75,226.0313 Q210.1094,226.1875 209.4063,226.1875 Q206.9063,226.1875 205.5781,224.5469 Q204.2656,222.8906 204.2656,219.7656 Q204.2656,216.6406 205.5781,214.9844 Q206.9063,213.3281 209.4063,213.3281 Q210.1094,213.3281 210.75,213.4844 Q211.4063,213.6406 211.9688,213.9375 L211.9688,216.6563 Q211.3438,216.0781 210.75,215.8125 Q210.1563,215.5313 209.5313,215.5313 Q208.1875,215.5313 207.5,216.6094 Q206.8125,217.6719 206.8125,219.7656 Q206.8125,221.8594 207.5,222.9375 Q208.1875,224 209.5313,224 Q210.1563,224 210.75,223.7344 Q211.3438,223.4531 211.9688,222.875 L211.9688,225.5938 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="76" x="223" y="224.1074">Tournament</text><line style="stroke:#A80036;stroke-width:1.5;" x1="195" x2="301" y1="235.9531" y2="235.9531"/><ellipse cx="205" cy="246.9531" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="82" x="214" y="250.1636">tournament_id</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="33" x="214" y="262.9683">Name</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="0" x="218" y="275.7729"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="80" x="214" y="288.5776">Banner Image</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="57" x="214" y="301.3823">Start-time</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="50" x="214" y="314.187">End-time</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="39" x="214" y="326.9917">Teams</text><line style="stroke:#A80036;stroke-width:1.5;" x1="195" x2="301" y1="333.5859" y2="333.5859"/><!--MD5=[da547346deef918ea16944ba046651ef]
class Administrator--><rect codeLine="32" fill="#FEFECE" filter="url(#fbixmql5f2v1u)" height="99.2188" id="Administrator" style="stroke:#A80036;stroke-width:1.5;" width="116" x="132" y="27.9531"/><ellipse cx="147" cy="43.9531" fill="#ADD1B2" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M149.9688,49.5938 Q149.3906,49.8906 148.75,50.0313 Q148.1094,50.1875 147.4063,50.1875 Q144.9063,50.1875 143.5781,48.5469 Q142.2656,46.8906 142.2656,43.7656 Q142.2656,40.6406 143.5781,38.9844 Q144.9063,37.3281 147.4063,37.3281 Q148.1094,37.3281 148.75,37.4844 Q149.4063,37.6406 149.9688,37.9375 L149.9688,40.6563 Q149.3438,40.0781 148.75,39.8125 Q148.1563,39.5313 147.5313,39.5313 Q146.1875,39.5313 145.5,40.6094 Q144.8125,41.6719 144.8125,43.7656 Q144.8125,45.8594 145.5,46.9375 Q146.1875,48 147.5313,48 Q148.1563,48 148.75,47.7344 Q149.3438,47.4531 149.9688,46.875 L149.9688,49.5938 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="84" x="161" y="48.1074">Administrator</text><line style="stroke:#A80036;stroke-width:1.5;" x1="133" x2="247" y1="59.9531" y2="59.9531"/><ellipse cx="143" cy="70.9531" fill="#000000" rx="3" ry="3" style="stroke:#000000;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="51" x="152" y="74.1636">admin_id</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="33" x="152" y="86.9683">Name</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="31" x="152" y="99.7729">Email</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacing" textLength="89" x="152" y="112.5776">Manager-status</text><line style="stroke:#A80036;stroke-width:1.5;" x1="133" x2="247" y1="119.1719" y2="119.1719"/><!--MD5=[0d19528869bea1b8174ff9dae3c1b17d]
link Team to Tournament--><path codeLine="39" d="M109.17,272.9531 C133.69,272.9531 163.21,272.9531 188.71,272.9531 " fill="none" id="Team-to-Tournament" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="193.75,272.9531,184.75,268.9531,188.75,272.9531,184.75,276.9531,193.75,272.9531" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="48" x="127.5" y="266.02">Plays in</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="23" x="116.8079" y="285.9407">2..*</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="23" x="163.1477" y="285.9161">1..*</text><!--MD5=[a739cbbf30ad9ca98b69a3d6b11b3c4f]
link Tournament to Match--><path codeLine="40" d="M215.23,342.2231 C204.02,365.5731 191.58,391.4931 180.72,414.1231 " fill="none" id="Tournament-to-Match" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="178.43,418.9031,185.9359,412.5265,180.5974,414.3973,178.7266,409.0587,178.43,418.9031" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="54" x="201" y="385.02">contains</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="8" x="203.7254" y="361.631">1</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="23" x="157.3429" y="407.8347">1..*</text><!--MD5=[3e4705e52f6ea3a36b44a21a43aec0e0]
link Player to Team--><path codeLine="41" d="M58,114.8531 C58,142.0731 58,179.9231 58,211.6431 " fill="none" id="Player-to-Team" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="58,216.6731,62,207.6731,58,211.6731,54,207.6731,58,216.6731" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="68" x="59" y="170.02">Belongs to</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="23" x="33.1672" y="134.1177">1..*</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="24" x="32.5375" y="205.9735">1..1</text><!--MD5=[0298958ccae57a39411b30d75d3e8adb]
link Team to Match--><path codeLine="42" d="M79.06,329.2231 C86.75,348.3531 95.83,369.7931 105,388.9531 C108.93,397.1631 113.3,405.6931 117.74,414.0431 " fill="none" id="Team-to-Match" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="120.21,418.6631,119.4612,408.8428,117.8378,414.2617,112.4189,412.6383,120.21,418.6631" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="81" x="106" y="385.02">Competes in</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="24" x="56.1642" y="349.0687">2..2</text><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="23" x="91.934" y="407.9623">1..*</text><!--MD5=[8a02344b474893926ccb808b81ef797f]
@startuml Tournament System
title Tournament System - Group 1
class Match {
*match_id: Integer
Tournament
Teams
Scores
Winner
}
class Team {
*team_id
Name
Tournaments
Players
Matches
}
class Player {
*player_id
Name
}
class Tournament {
*tournament_id
Name
Banner Image
Start-time
End-time
Teams
}
class Administrator {
*admin_id
Name
Email
Manager-status
}
Team "2..*" -> "1..*" Tournament : "Plays in"
Tournament "1" - -> "1..*" Match : contains
Player "1..*" - -> "1..1" Team : "Belongs to"
Team "2..2" - -> "1..*" Match : "Competes in"
@enduml
PlantUML version 1.2022.0(Tue Jan 11 17:16:42 CET 2022)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: ANSI_X3.4-1968
Language: en
Country: US
--></g></svg>

After

Width:  |  Height:  |  Size: 15 KiB