mirror of
https://github.com/loviuz/wifi-probe-aggregator.git
synced 2025-06-05 21:59:30 +02:00
Aggiunta struttura database
This commit is contained in:
13
ws/setup.sql
Normal file
13
ws/setup.sql
Normal 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;
|
Reference in New Issue
Block a user