-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_live_telemetry.sql
More file actions
26 lines (26 loc) · 1023 Bytes
/
create_live_telemetry.sql
File metadata and controls
26 lines (26 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CREATE TABLE `live_telemetry` (
`rider_id` INT(10) UNSIGNED NOT NULL,
`msec` BIGINT(20) UNSIGNED NOT NULL,
`power` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`speed` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`hr` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`cad` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`duration` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`meters` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`elevation` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`mwh` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`fwd` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`heading` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`lean_angle` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`x` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`y` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`z` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`grp` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`ride_ons` SMALLINT(5) UNSIGNED NOT NULL,
PRIMARY KEY (`rider_id`),
INDEX `msec` (`msec`),
INDEX `grp` (`grp`)
)
COLLATE='utf8mb4_general_ci'
ENGINE=MEMORY
;