Updated class diagram
This commit is contained in:
		
							parent
							
								
									670c8acba6
								
							
						
					
					
						commit
						df3443e0df
					
				| @ -1,53 +1,47 @@ | ||||
| @startuml Tournament System | ||||
| ' Internal development class diagram | ||||
| ' Describes database fields and object methods required | ||||
| 
 | ||||
| title Tournament System - Group 1  | ||||
| skinparam Linetype ortho | ||||
| 
 | ||||
| class User { | ||||
|     *user_id: Integer | ||||
|     google_id: String | ||||
|     name: String | ||||
|     email: String | ||||
|     isManager: Boolean | ||||
| } | ||||
| 
 | ||||
| class Match { | ||||
|     *match_id: Integer | ||||
|     tournament_id: Integer | ||||
|     parent_id: Integer | ||||
|     parentMatch_id: Integer | ||||
|     team1_id: Integer | ||||
|     team2_id: Integer | ||||
|     winner_id: Integer | ||||
| 
 | ||||
|     Match constructor(tournament_id: Integer, team_ids: Integer[]) | ||||
|     void setWinner(winner_id: Integer) | ||||
|     tier: Integer | ||||
| } | ||||
| class Team { | ||||
|     *team_id: Integer | ||||
|     tournament_id: Integer | ||||
|     name: String | ||||
|     tournament_ids Integer | ||||
| 
 | ||||
|     Team constructor(name: String, tournamentId: Integer) | ||||
|     void addPlayer(player_id: Integer) | ||||
|     void removePlayer(player_id: Integer) | ||||
| } | ||||
| class Player { | ||||
|     *player_id: Integer | ||||
|     name: String | ||||
|     team_id: Integer | ||||
| 
 | ||||
| 
 | ||||
|     Player constructor(name: String) | ||||
|     void joinTeam(team_id: Integer) | ||||
|     void leaveTeam() | ||||
| } | ||||
| 
 | ||||
| class Tournament { | ||||
|     *tournament_id: Integer | ||||
|     name: String | ||||
|     description: String | ||||
|     prize: String | ||||
|     teamLimit: Integer | ||||
|     start_date: Date | ||||
|     end_date: Date | ||||
| 
 | ||||
|     Tournament constructor(name: String, start_date: Date, end_date: Date) | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 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" | ||||
| 
 | ||||
| Team "2..*" --- "1..1" Tournament : "Plays in" | ||||
| Team "2..2" --- "1..*" Match : "Competes in" | ||||
| 
 | ||||
| left to right direction | ||||
| Tournament "1" --- "3..*" Match : contains | ||||
| @enduml | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 29 KiB | 
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jonas Haugland
						Jonas Haugland