1 CREATE TABLE `tracker_output` (
2 `tracker_id` int(11) NOT NULL,
3 `famtrackid` varchar(255) NOT NULL,
4 `ident` varchar(255) DEFAULT NULL,
5 `latitude` float NOT NULL,
6 `longitude` float NOT NULL,
7 `heading` int(11) DEFAULT NULL,
8 `ground_speed` int(11) DEFAULT NULL,
9 `altitude` float DEFAULT NULL,
10 `comment` varchar(255) DEFAULT NULL,
11 `type` varchar(255) DEFAULT NULL,
12 `departure_code` varchar(10) DEFAULT NULL,
13 `departure_name` varchar(255) DEFAULT NULL,
14 `departure_country` varchar(255) DEFAULT NULL,
15 `arrival_code` varchar(10) DEFAULT NULL,
16 `arrival_name` varchar(255) DEFAULT NULL,
17 `arrival_country` varchar(255) DEFAULT NULL,
18 `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
19 `format_source` varchar(255) DEFAULT NULL,
20 `source_name` varchar(255) DEFAULT NULL,
21 `last_seen` timestamp NULL DEFAULT NULL,
22 `last_latitude` float DEFAULT NULL,
23 `last_longitude` float DEFAULT NULL,
24 `last_altitude` float DEFAULT NULL,
25 `last_ground_speed` int(11) DEFAULT NULL
26 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
28 ALTER TABLE `tracker_output` ADD PRIMARY KEY (`tracker_id`);
29 ALTER TABLE `tracker_output` MODIFY `tracker_id` int(11) NOT NULL AUTO_INCREMENT;