Create schema.sql
This commit is contained in:
parent
3e43dff0b2
commit
cfca032ba7
19
sql/schema.sql
Normal file
19
sql/schema.sql
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
|
Reference in New Issue
Block a user