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

Aggiunta tabella con lista device per mappatura mac address

This commit is contained in:
loviuz 2020-07-27 21:55:26 +02:00
parent 2ad2d61408
commit a69d308264

8
ws/setup.sql Normal file → Executable file
View File

@ -11,3 +11,11 @@ CREATE TABLE `logs` (
`longitude` decimal(9,6) NOT NULL,
`received_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB;
-- Tabella per il match fra mac address e nome
CREATE TABLE `devices` (
`id` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(255) NOT NULL,
`mac` VARCHAR(17) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB;