From a69d30826490ff8a164e16333ed34fab9b34700e Mon Sep 17 00:00:00 2001 From: loviuz Date: Mon, 27 Jul 2020 21:55:26 +0200 Subject: [PATCH] Aggiunta tabella con lista device per mappatura mac address --- ws/setup.sql | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100644 => 100755 ws/setup.sql diff --git a/ws/setup.sql b/ws/setup.sql old mode 100644 new mode 100755 index 86bd885..16e2c49 --- a/ws/setup.sql +++ b/ws/setup.sql @@ -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;