scouting: Add "defense received" and "comments" to the database

This patch makes it so the webserver saves the "defense received" and
"comment" fields to the database.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I3a76518095f7b38360b5c43ae3a117215244c3da
diff --git a/scouting/webserver/requests/requests_test.go b/scouting/webserver/requests/requests_test.go
index 8165c7d..b864cf3 100644
--- a/scouting/webserver/requests/requests_test.go
+++ b/scouting/webserver/requests/requests_test.go
@@ -82,22 +82,24 @@
 
 	builder := flatbuffers.NewBuilder(1024)
 	builder.Finish((&submit_data_scouting.SubmitDataScoutingT{
-		Team:             971,
-		Match:            1,
-		StartingQuadrant: 2,
-		AutoBall1:        true,
-		AutoBall2:        false,
-		AutoBall3:        false,
-		AutoBall4:        false,
-		AutoBall5:        false,
-		MissedShotsAuto:  9971,
-		UpperGoalAuto:    9971,
-		LowerGoalAuto:    9971,
-		MissedShotsTele:  9971,
-		UpperGoalTele:    9971,
-		LowerGoalTele:    9971,
-		DefenseRating:    9971,
-		ClimbLevel:       submit_data_scouting.ClimbLevelLow,
+		Team:                  971,
+		Match:                 1,
+		StartingQuadrant:      2,
+		AutoBall1:             true,
+		AutoBall2:             false,
+		AutoBall3:             false,
+		AutoBall4:             false,
+		AutoBall5:             false,
+		MissedShotsAuto:       9971,
+		UpperGoalAuto:         9971,
+		LowerGoalAuto:         9971,
+		MissedShotsTele:       9971,
+		UpperGoalTele:         9971,
+		LowerGoalTele:         9971,
+		DefenseRating:         9971,
+		DefenseReceivedRating: 4,
+		ClimbLevel:            submit_data_scouting.ClimbLevelLow,
+		Comment:               "this is a comment",
 	}).Pack(builder))
 
 	response, err := debug.SubmitDataScouting("http://localhost:8080", builder.FinishedBytes())
@@ -231,8 +233,8 @@
 				AutoBallPickedUp: [5]bool{true, false, false, false, true},
 				ShotsMissed:      1, UpperGoalShots: 2, LowerGoalShots: 3,
 				ShotsMissedAuto: 4, UpperGoalAuto: 5, LowerGoalAuto: 6,
-				PlayedDefense: 7, Climbing: 2,
-				CollectedBy: "john",
+				PlayedDefense: 7, DefenseReceivedScore: 3, Climbing: 2,
+				Comment: "a lovely comment", CollectedBy: "john",
 			},
 			{
 				TeamNumber: 972, MatchNumber: 1,
@@ -240,8 +242,8 @@
 				AutoBallPickedUp: [5]bool{false, false, true, false, false},
 				ShotsMissed:      2, UpperGoalShots: 3, LowerGoalShots: 4,
 				ShotsMissedAuto: 5, UpperGoalAuto: 6, LowerGoalAuto: 7,
-				PlayedDefense: 8, Climbing: 4,
-				CollectedBy: "andrea",
+				PlayedDefense: 8, DefenseReceivedScore: 1, Climbing: 4,
+				Comment: "another lovely comment", CollectedBy: "andrea",
 			},
 		},
 	}
@@ -264,23 +266,27 @@
 				Team: 971, Match: 1,
 				MissedShotsAuto: 4, UpperGoalAuto: 5, LowerGoalAuto: 6,
 				MissedShotsTele: 1, UpperGoalTele: 2, LowerGoalTele: 3,
-				DefenseRating: 7,
-				CollectedBy:   "john",
-				AutoBall1:     true, AutoBall2: false, AutoBall3: false,
+				DefenseRating:         7,
+				DefenseReceivedRating: 3,
+				CollectedBy:           "john",
+				AutoBall1:             true, AutoBall2: false, AutoBall3: false,
 				AutoBall4: false, AutoBall5: true,
 				StartingQuadrant: 1,
 				ClimbLevel:       request_data_scouting_response.ClimbLevelFailedWithPlentyOfTime,
+				Comment:          "a lovely comment",
 			},
 			{
 				Team: 972, Match: 1,
 				MissedShotsAuto: 5, UpperGoalAuto: 6, LowerGoalAuto: 7,
 				MissedShotsTele: 2, UpperGoalTele: 3, LowerGoalTele: 4,
-				DefenseRating: 8,
-				CollectedBy:   "andrea",
-				AutoBall1:     false, AutoBall2: false, AutoBall3: true,
+				DefenseRating:         8,
+				DefenseReceivedRating: 1,
+				CollectedBy:           "andrea",
+				AutoBall1:             false, AutoBall2: false, AutoBall3: true,
 				AutoBall4: false, AutoBall5: false,
 				StartingQuadrant: 2,
 				ClimbLevel:       request_data_scouting_response.ClimbLevelMedium,
+				Comment:          "another lovely comment",
 			},
 		},
 	}