1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-03-15 16:23:58 +01:00

23 lines
855 B
SQL

CREATE TABLE `locations` (
`dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`accuracy` int(11) DEFAULT NULL,
`altitude` int(11) DEFAULT NULL,
`battery_level` int(11) DEFAULT NULL,
`heading` int(11) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`event` varchar(255) DEFAULT NULL,
`latitude` decimal(9,6) DEFAULT NULL,
`longitude` decimal(9,6) DEFAULT NULL,
`radius` int(11) DEFAULT NULL,
`trig` varchar(1) DEFAULT NULL,
`tracker_id` char(2) DEFAULT NULL,
`epoch` int(11) DEFAULT NULL,
`vertical_accuracy` int(11) DEFAULT NULL,
`velocity` int(11) DEFAULT NULL,
`pressure` decimal(9,6) DEFAULT NULL,
`connection` varchar(1) DEFAULT NULL,
`place_id` int(11) DEFAULT NULL,
`osm_id` int(11) DEFAULT NULL,
`display_name` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;