diff --git a/sql/sql.go b/sql/sql.go index ef92184..32deddc 100644 --- a/sql/sql.go +++ b/sql/sql.go @@ -68,9 +68,7 @@ func setupGhostIndexTable(db *sql.DB) { player_id uuid NOT NULL, mii_id uuid NOT NULL, date_set date NOT NULL, - custom_track boolean NOT NULL, - track_id character(1) NOT NULL, - track_uuid uuid,` /*CTs*/ + ` + track_uuid uuid NOT NULL, character_id character(1) NOT NULL, vehicle_id character(1) NOT NULL, finish_time int NOT NULL, diff --git a/sql/tablestructs.go b/sql/tablestructs.go index 5c8925b..833e4a0 100644 --- a/sql/tablestructs.go +++ b/sql/tablestructs.go @@ -13,9 +13,8 @@ type SQLGhost struct { UUID uuid `json:"uuid"` PlayerID uuid `json:"player_id"` MiiID uuid `json:"mii_id"` + TrackUUID uuid `json:"track_uuid"` Date time.Time `json:"date_set"` - IsCT bool `json:"custom_track"` - CourseID common.CourseID `json:"track_id"` CharacterID common.CharacterID `json:"character_id"` VehicleID common.VehicleID `json:"vehicle_id"` FinishTime uint32 `json:"finish_time"` // Total milliseconds