diff --git a/database/dump_doorsense.sql b/database/dump_doorsense.sql index 0f21999..eb0df22 100644 --- a/database/dump_doorsense.sql +++ b/database/dump_doorsense.sql @@ -49,7 +49,7 @@ INSERT INTO `admin` (`ID_ADMIN`, `EMAIL_ADMIN`, `SENHA_ADMIN`) VALUES CREATE TABLE `arduino` ( `ID_ARDUINO` int(11) NOT NULL, `UNIQUE_ID` varchar(100) NOT NULL, - `STATUS_ARDUINO` enum('Ativo','Inativo') NOT NULL DEFAULT 'Inativo', + `STATUS_ARDUINO` enum('Ativo','Inativo', 'Pendente') NOT NULL DEFAULT 'Pendente', `LAST_UPDATE` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; diff --git a/database/fisico_doorsense.sql b/database/fisico_doorsense.sql index bd0685d..333d0d1 100644 --- a/database/fisico_doorsense.sql +++ b/database/fisico_doorsense.sql @@ -14,7 +14,7 @@ CREATE TABLE ADMIN ( CREATE TABLE ARDUINO ( ID_ARDUINO INT(11) NOT NULL AUTO_INCREMENT, UNIQUE_ID VARCHAR(100) NOT NULL UNIQUE, - STATUS_ARDUINO ENUM('Ativo', 'Inativo') DEFAULT 'Inativo' NOT NULL, + STATUS_ARDUINO ENUM('Ativo', 'Inativo', 'Pendente') DEFAULT 'Pendente' NOT NULL, LAST_UPDATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (ID_ARDUINO) );