Commit 32df1735 authored by Hicham Brahimi's avatar Hicham Brahimi

change backup

parent bf24bf46
...@@ -19,7 +19,7 @@ CREATE TABLE `capteur` ( ...@@ -19,7 +19,7 @@ CREATE TABLE `capteur` (
KEY `idUser` (`idUser`), KEY `idUser` (`idUser`),
CONSTRAINT `capteur_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`id`), CONSTRAINT `capteur_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`id`),
CONSTRAINT `idGroupe` FOREIGN KEY (`idGroupe`) REFERENCES `groupe` (`id`) CONSTRAINT `idGroupe` FOREIGN KEY (`idGroupe`) REFERENCES `groupe` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=168 DEFAULT CHARSET=latin1;
-- --
...@@ -36,7 +36,7 @@ CREATE TABLE `groupe` ( ...@@ -36,7 +36,7 @@ CREATE TABLE `groupe` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `idUser` (`idUser`), KEY `idUser` (`idUser`),
CONSTRAINT `groupe_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`id`) CONSTRAINT `groupe_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
...@@ -49,7 +49,7 @@ DROP TABLE IF EXISTS `notification`; ...@@ -49,7 +49,7 @@ DROP TABLE IF EXISTS `notification`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification` ( CREATE TABLE `notification` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`temps` datetime NOT NULL, `temps` datetime(6) NOT NULL,
`type` enum('Alerte','Avertissement','Notification') NOT NULL, `type` enum('Alerte','Avertissement','Notification') NOT NULL,
`titre` tinytext NOT NULL, `titre` tinytext NOT NULL,
`message` text NOT NULL, `message` text NOT NULL,
...@@ -61,7 +61,7 @@ CREATE TABLE `notification` ( ...@@ -61,7 +61,7 @@ CREATE TABLE `notification` (
KEY `idCapteur` (`idCapteur`), KEY `idCapteur` (`idCapteur`),
CONSTRAINT `notification_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`id`), CONSTRAINT `notification_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`id`),
CONSTRAINT `notification_ibfk_2` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`) CONSTRAINT `notification_ibfk_2` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5003 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=11978 DEFAULT CHARSET=latin1;
-- --
...@@ -81,7 +81,7 @@ CREATE TABLE `seuil` ( ...@@ -81,7 +81,7 @@ CREATE TABLE `seuil` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `idCapteurSeuil` (`idCapteur`), KEY `idCapteurSeuil` (`idCapteur`),
CONSTRAINT `idCapteurSeuil` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`) CONSTRAINT `idCapteurSeuil` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;
...@@ -99,7 +99,7 @@ CREATE TABLE `tag` ( ...@@ -99,7 +99,7 @@ CREATE TABLE `tag` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `idCapteurTag` (`idCapteur`), KEY `idCapteurTag` (`idCapteur`),
CONSTRAINT `idCapteurTag` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`) CONSTRAINT `idCapteurTag` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=117 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=132 DEFAULT CHARSET=latin1;
...@@ -115,7 +115,7 @@ CREATE TABLE `user` ( ...@@ -115,7 +115,7 @@ CREATE TABLE `user` (
`username` varchar(30) NOT NULL, `username` varchar(30) NOT NULL,
`password` varchar(100) NOT NULL, `password` varchar(100) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
...@@ -128,12 +128,12 @@ DROP TABLE IF EXISTS `valeur`; ...@@ -128,12 +128,12 @@ DROP TABLE IF EXISTS `valeur`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `valeur` ( CREATE TABLE `valeur` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`temps` datetime NOT NULL, `temps` datetime(6) NOT NULL,
`valeur` varchar(20) DEFAULT NULL, `valeur` varchar(20) DEFAULT NULL,
`idCapteur` int(11) NOT NULL, `idCapteur` int(11) NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `idCapteur` (`idCapteur`), KEY `idCapteur` (`idCapteur`),
CONSTRAINT `idCapteur` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`) CONSTRAINT `idCapteur` FOREIGN KEY (`idCapteur`) REFERENCES `capteur` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41953 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB AUTO_INCREMENT=488970 DEFAULT CHARSET=latin1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment