-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
syntax = "proto3"; | ||
|
||
package MongoDb; | ||
|
||
message LapRecord | ||
{ | ||
string driver = 1; | ||
uint64 start = 2; | ||
uint64 end = 3; | ||
repeated uint64 sectors = 4; | ||
} | ||
|
||
message SectorsRecord | ||
{ | ||
string driver = 1; | ||
uint64 start_time_sector = 2; | ||
uint64 end_time_sector = 3; | ||
} | ||
|
||
message DriverRecord | ||
{ | ||
string driver = 1; | ||
LapRecord best_lap = 2; | ||
repeated SectorsRecord best_sectors = 3; | ||
} | ||
|
||
message LapRecords | ||
{ | ||
int32 version = 2; | ||
int32 baseline_version = 3; | ||
string vehicle_id = 4; | ||
string device_id = 5; | ||
string location = 6; | ||
string layout = 7; | ||
LapRecord best_lap = 8; | ||
repeated SectorsRecord best_sectors = 9; | ||
repeated DriverRecord drivers_records = 10; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
syntax = "proto3"; | ||
|
||
package MongoDb; | ||
|
||
message LapTime { | ||
uint64 number = 1; | ||
uint64 start_timestamp = 2; | ||
uint64 end_timestamp = 3; | ||
repeated uint64 sectors = 4; | ||
} | ||
|
||
message LapTimes { | ||
int32 version = 2; | ||
int32 baseline_version = 3; | ||
string vehicle_id = 4; | ||
string device_id = 5; | ||
string location = 6; | ||
string layout = 7; | ||
string driver = 8; | ||
repeated LapTime times = 9; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
syntax = "proto3"; | ||
|
||
package MongoDb; | ||
|
||
message Vec2 { | ||
int32 x = 1; | ||
int32 y = 2; | ||
} | ||
|
||
message PositionAndDirection { | ||
Vec2 position = 1; | ||
Vec2 direction = 2; | ||
} | ||
|
||
message Layout { | ||
int32 version = 2; | ||
int32 baseline_version = 3; | ||
string vehicle_id = 4; | ||
string device_id = 5; | ||
string location = 6; | ||
string layout = 7; | ||
PositionAndDirection start_line = 8; | ||
PositionAndDirection finish_line = 9; | ||
repeated PositionAndDirection sectors = 10; | ||
} |