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;