1
0
mirror of https://github.com/loviuz/wifi-probe-aggregator.git synced 2025-02-16 11:30:37 +01:00

Aggiunta struttura database

This commit is contained in:
loviuz 2020-06-27 17:30:23 +02:00
parent b35fd0761f
commit cd5e7cfa30

13
ws/setup.sql Normal file
View File

@ -0,0 +1,13 @@
--
-- Creazione tabella per il salvataggio dei mac address
--
CREATE TABLE `logs` (
`id` int(11) NOT NULL,
`mac` varchar(17) NOT NULL,
`ssid` varchar(255) NOT NULL,
`dbm` tinyint(4) NOT NULL,
`latitude` decimal(9,6) NOT NULL,
`longitude` decimal(9,6) NOT NULL,
`received_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB;