Scouting: Add handler for actions in db.go
Signed-off-by: Sabina Leaver <100027607@mvla.net>
Change-Id: I234a4a838c236dcea209aa1fbceefb0b6566dc08
diff --git a/scouting/db/db.go b/scouting/db/db.go
index 718711c..ca1af9e 100644
--- a/scouting/db/db.go
+++ b/scouting/db/db.go
@@ -48,14 +48,14 @@
}
type Action struct {
- TeamNumber string `gorm:"primaryKey"`
- MatchNumber int32 `gorm:"primaryKey"`
- SetNumber int32 `gorm:"primaryKey"`
- CompLevel string `gorm:"primaryKey"`
- CompletedAction []byte
+ TeamNumber string `gorm:"primaryKey"`
+ MatchNumber int32 `gorm:"primaryKey"`
+ SetNumber int32 `gorm:"primaryKey"`
+ CompLevel string `gorm:"primaryKey"`
// This contains a serialized scouting.webserver.requests.ActionType flatbuffer.
- TimeStamp int32 `gorm:"primaryKey"`
- CollectedBy string
+ CompletedAction []byte
+ Timestamp int64 `gorm:"primaryKey"`
+ CollectedBy string
}
type NotesData struct {