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
1 changed files with 8 additions and 0 deletions

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;