Aggiunta struttura database

This commit is contained in:
loviuz 2020-06-27 17:30:23 +02:00
parent b35fd0761f
commit cd5e7cfa30
1 changed files with 13 additions and 0 deletions

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;