Update database backup
This commit is contained in:
parent
b38822e506
commit
d5a0cf7977
253
logauth.sql
253
logauth.sql
|
@ -3,7 +3,7 @@
|
||||||
-- http://www.phpmyadmin.net
|
-- http://www.phpmyadmin.net
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- Host: localhost
|
||||||
-- Generation Time: Oct 12, 2017 at 09:32 PM
|
-- Generation Time: Nov 13, 2017 at 08:18 AM
|
||||||
-- Server version: 5.7.19-0ubuntu0.16.04.1
|
-- Server version: 5.7.19-0ubuntu0.16.04.1
|
||||||
-- PHP Version: 7.0.22-0ubuntu0.16.04.1
|
-- PHP Version: 7.0.22-0ubuntu0.16.04.1
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ SET time_zone = "+00:00";
|
||||||
--
|
--
|
||||||
-- Database: `logauth`
|
-- Database: `logauth`
|
||||||
--
|
--
|
||||||
CREATE DATABASE IF NOT EXISTS `logauth` DEFAULT CHARACTER SET latin1 COLLATE latin1_bin;
|
|
||||||
USE `logauth`;
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -28,7 +26,6 @@ USE `logauth`;
|
||||||
-- Table structure for table `action`
|
-- Table structure for table `action`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `action`;
|
|
||||||
CREATE TABLE `action` (
|
CREATE TABLE `action` (
|
||||||
`id_action` int(11) NOT NULL,
|
`id_action` int(11) NOT NULL,
|
||||||
`name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
|
`name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
@ -55,7 +52,6 @@ INSERT INTO `action` (`id_action`, `name`, `timeout`, `required`, `action`) VALU
|
||||||
-- Table structure for table `action_merge`
|
-- Table structure for table `action_merge`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `action_merge`;
|
|
||||||
CREATE TABLE `action_merge` (
|
CREATE TABLE `action_merge` (
|
||||||
`id_action_merge` int(11) NOT NULL,
|
`id_action_merge` int(11) NOT NULL,
|
||||||
`id_target` int(11) NOT NULL,
|
`id_target` int(11) NOT NULL,
|
||||||
|
@ -105,7 +101,6 @@ INSERT INTO `action_merge` (`id_action_merge`, `id_target`, `id_source`, `id_act
|
||||||
-- Table structure for table `admin`
|
-- Table structure for table `admin`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `admin`;
|
|
||||||
CREATE TABLE `admin` (
|
CREATE TABLE `admin` (
|
||||||
`id_admin` int(11) NOT NULL,
|
`id_admin` int(11) NOT NULL,
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
|
@ -121,8 +116,10 @@ CREATE TABLE `admin` (
|
||||||
|
|
||||||
INSERT INTO `admin` (`id_admin`, `id_warehouse`, `username`, `mail`, `password`, `token`) VALUES
|
INSERT INTO `admin` (`id_admin`, `id_warehouse`, `username`, `mail`, `password`, `token`) VALUES
|
||||||
(1, 7, 'adrien.marques', 'adminmail@gmail.com', 'eb35bccc794d3151b050285c3f6f6d084faadcc7345302b639fbb036cf623b7befcbf7ea08579c612f6201b22cdbc98d6d5d39354b3d31f51ba0426a5299371d', '434f3494ca228538463320eccf93ba67ca29e734073fbf7a9178ba7494b0e26365bb5ae2ead89428f515cdcb9ac75f0ec2200033c3911f4a49f133dfb6dd4aca'),
|
(1, 7, 'adrien.marques', 'adminmail@gmail.com', 'eb35bccc794d3151b050285c3f6f6d084faadcc7345302b639fbb036cf623b7befcbf7ea08579c612f6201b22cdbc98d6d5d39354b3d31f51ba0426a5299371d', '434f3494ca228538463320eccf93ba67ca29e734073fbf7a9178ba7494b0e26365bb5ae2ead89428f515cdcb9ac75f0ec2200033c3911f4a49f133dfb6dd4aca'),
|
||||||
(2, 8, 'alexandre.marques', 'admin2mail@gmail.com', 'b70896036f6d717f938ca09f531364c17910fc6a2011166e2c2bac6f505bda52e8d8993fefb7a6fdf13b1fd5368280f064ff87e01ae74aadf7e14f582dede676', '287361328d110cbc2e78464563e005dc82a6a0d501b84cba6770dd3d173b65eef0b226fcb8326cc14fb4ee9dec5df6622a11fd8e6e8a6e518a7eca055e67e8c5'),
|
(4, 7, 'willy.fontaine', 'willy.fontaine@stef.com', '08678556fd8223eb5d6014deeec072b809df8ac1dd6e087150f2b9e3820640ed92e33db793b9a02f31615490cee7b01c659865a6322a9d784bf86747ec41d7aa', '728caa787cf2f567cfeacf682e64b36a6387955cc441dc62c59fc51df034760e76fccb934b82f4495cfe860c3092665811d93bd1549f7d286d0ad071ee45b6fd'),
|
||||||
(4, 8, 'willy.fontaine', 'willy.fontaine@stef.com', '08678556fd8223eb5d6014deeec072b809df8ac1dd6e087150f2b9e3820640ed92e33db793b9a02f31615490cee7b01c659865a6322a9d784bf86747ec41d7aa', '728caa787cf2f567cfeacf682e64b36a6387955cc441dc62c59fc51df034760e76fccb934b82f4495cfe860c3092665811d93bd1549f7d286d0ad071ee45b6fd');
|
(5, 8, 'willy.fontaine', 'willy.fontaine@stef.com', '08678556fd8223eb5d6014deeec072b809df8ac1dd6e087150f2b9e3820640ed92e33db793b9a02f31615490cee7b01c659865a6322a9d784bf86747ec41d7aa', '9e8d9632bde19a34e1d0cc953c4ad59f59ed6f8ce981e655fccc6083e8dc2dfbc754230277ec5aa2c5e884a4fd71ee229b2d9e49492ce283fb40c23a73e432f3'),
|
||||||
|
(8, 8, 'patrick.letort', 'patrick.letort@stef.com', '2dae3e1c28554b77c2e1ec20fba4405937b159f7607802f8e88df8cefaa53a683f143edad0e1196dd13c58dc180e3bbd23e97ed320361ac33b99500e5f63071c', '8cfae3acc5917a8656e5603f7e7171265342c04af4d3a1c5ddb183905ab8bd0030edc64a4beee67b92bcbdfbbf5299625adfbbc48fb27f42a98e0a0b8afc4e09'),
|
||||||
|
(9, 8, 'adrien.marques', 'marquesadri1@gmail.com', 'e8bf5e2e0fa92a3dabfa3563c49c55ad1741faf71783d86c3342cd3bd04b46c8b138cb4efeb078c98daa777856de7eccad2189fc5f4f6fe58ffb1dec2baf38b3', '395c9e06462072e0e724be228cddccbf5189ef1f52558241ae2f89cfdf83f825b3c718396f8002a097e4648199ab8094c1390e31f0b77dbc4004093a62115822');
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -130,7 +127,6 @@ INSERT INTO `admin` (`id_admin`, `id_warehouse`, `username`, `mail`, `password`,
|
||||||
-- Table structure for table `chip`
|
-- Table structure for table `chip`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `chip`;
|
|
||||||
CREATE TABLE `chip` (
|
CREATE TABLE `chip` (
|
||||||
`id_chip` int(11) NOT NULL,
|
`id_chip` int(11) NOT NULL,
|
||||||
`id_module` int(11) DEFAULT NULL,
|
`id_module` int(11) DEFAULT NULL,
|
||||||
|
@ -154,7 +150,6 @@ INSERT INTO `chip` (`id_chip`, `id_module`, `name`, `position`, `type`, `pins`)
|
||||||
-- Table structure for table `etree`
|
-- Table structure for table `etree`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `etree`;
|
|
||||||
CREATE TABLE `etree` (
|
CREATE TABLE `etree` (
|
||||||
`id_etree` int(11) NOT NULL,
|
`id_etree` int(11) NOT NULL,
|
||||||
`id_module` int(11) NOT NULL,
|
`id_module` int(11) NOT NULL,
|
||||||
|
@ -177,7 +172,6 @@ INSERT INTO `etree` (`id_etree`, `id_module`, `daemon`) VALUES
|
||||||
-- Table structure for table `global_state`
|
-- Table structure for table `global_state`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `global_state`;
|
|
||||||
CREATE TABLE `global_state` (
|
CREATE TABLE `global_state` (
|
||||||
`id_global_state` int(11) NOT NULL,
|
`id_global_state` int(11) NOT NULL,
|
||||||
`global_state` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'started | signaled | locked',
|
`global_state` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'started | signaled | locked',
|
||||||
|
@ -200,7 +194,6 @@ INSERT INTO `global_state` (`id_global_state`, `global_state`, `chips`) VALUES
|
||||||
-- Table structure for table `history`
|
-- Table structure for table `history`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `history`;
|
|
||||||
CREATE TABLE `history` (
|
CREATE TABLE `history` (
|
||||||
`id_history` int(11) NOT NULL,
|
`id_history` int(11) NOT NULL,
|
||||||
`timestamp` int(11) NOT NULL,
|
`timestamp` int(11) NOT NULL,
|
||||||
|
@ -214,68 +207,117 @@ CREATE TABLE `history` (
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `history` (`id_history`, `timestamp`, `id_user`, `id_machine`, `id_action`) VALUES
|
INSERT INTO `history` (`id_history`, `timestamp`, `id_user`, `id_machine`, `id_action`) VALUES
|
||||||
(285, 1506950713, 215, 126, 1),
|
(504, 1508073591, 210, 127, 1),
|
||||||
(286, 1506950739, 215, 126, 5),
|
(505, 1508073598, 210, 127, 5),
|
||||||
(287, 1506950740, 215, 126, 1),
|
(506, 1508073601, 210, 127, 1),
|
||||||
(288, 1506950741, 215, 126, 5),
|
(507, 1508073644, 210, 127, 5),
|
||||||
(289, 1506950742, 215, 126, 1),
|
(508, 1508073654, 210, 127, 1),
|
||||||
(290, 1506950804, 215, 126, 5),
|
(509, 1508073657, 210, 127, 2),
|
||||||
(291, 1506950807, 215, 126, 2),
|
(510, 1508073659, 210, 127, 3),
|
||||||
(292, 1506950810, 215, 126, 5),
|
(511, 1508073682, 218, 127, 4),
|
||||||
(293, 1506950811, 215, 126, 1),
|
(512, 1508073687, 210, 127, 1),
|
||||||
(294, 1506950812, 215, 126, 5),
|
(513, 1508129928, 210, 127, 5),
|
||||||
(295, 1506950813, 215, 126, 1),
|
(514, 1508129955, 210, 127, 1),
|
||||||
(296, 1506950815, 210, 126, 6),
|
(515, 1508129964, 210, 127, 5),
|
||||||
(297, 1506950819, 215, 126, 5),
|
(516, 1508129991, 210, 127, 1),
|
||||||
(298, 1506950822, 215, 126, 2),
|
(517, 1508130001, 210, 127, 5),
|
||||||
(299, 1506950824, 215, 126, 3),
|
(518, 1508130011, 210, 127, 1),
|
||||||
(300, 1506950829, 210, 126, 4),
|
(519, 1508130022, 210, 127, 5),
|
||||||
(301, 1506950831, 215, 126, 1),
|
(520, 1508130024, 210, 127, 1),
|
||||||
(302, 1506951006, 215, 126, 5),
|
(521, 1508130027, 210, 127, 2),
|
||||||
(303, 1506951006, 215, 126, 1),
|
(522, 1508130029, 210, 127, 3),
|
||||||
(304, 1506951007, 215, 126, 5),
|
(523, 1508130114, 218, 127, 4),
|
||||||
(305, 1506951188, 215, 126, 1),
|
(524, 1508130137, 210, 127, 1),
|
||||||
(306, 1506951190, 215, 126, 5),
|
(525, 1508130156, 210, 127, 5),
|
||||||
(307, 1506951201, 215, 126, 1),
|
(526, 1508130160, 210, 127, 1),
|
||||||
(308, 1506951205, 215, 126, 5),
|
(527, 1508130198, 210, 127, 5),
|
||||||
(309, 1506951209, 215, 126, 1),
|
(528, 1508130200, 210, 127, 1),
|
||||||
(310, 1506951210, 215, 126, 5),
|
(529, 1508130203, 210, 127, 2),
|
||||||
(311, 1506951211, 215, 126, 1),
|
(530, 1508130332, 218, 127, 6),
|
||||||
(312, 1506951211, 215, 126, 5),
|
(531, 1508130339, 210, 127, 5),
|
||||||
(313, 1506951212, 215, 126, 1),
|
(532, 1508130349, 210, 127, 1),
|
||||||
(314, 1506951213, 215, 126, 5),
|
(533, 1508130447, 210, 127, 5),
|
||||||
(315, 1506951218, 215, 126, 1),
|
(534, 1508130449, 210, 127, 1),
|
||||||
(316, 1506951219, 215, 126, 5),
|
(535, 1508130451, 210, 127, 5),
|
||||||
(317, 1506951219, 215, 126, 1),
|
(536, 1508130459, 210, 127, 1),
|
||||||
(318, 1506951219, 215, 126, 5),
|
(537, 1508130644, 210, 127, 5),
|
||||||
(319, 1506951220, 215, 126, 1),
|
(538, 1508130652, 210, 127, 1),
|
||||||
(320, 1506951221, 215, 126, 5),
|
(539, 1508130654, 210, 127, 5),
|
||||||
(321, 1506951221, 215, 126, 1),
|
(540, 1508130663, 210, 127, 1),
|
||||||
(322, 1506951225, 215, 126, 5),
|
(541, 1508130668, 210, 127, 5),
|
||||||
(323, 1506951235, 215, 126, 1),
|
(542, 1508131094, 210, 127, 1),
|
||||||
(324, 1506951237, 215, 126, 5),
|
(543, 1508131102, 210, 127, 5),
|
||||||
(325, 1506951271, 215, 126, 1),
|
(544, 1508131107, 210, 127, 1),
|
||||||
(326, 1506951274, 215, 126, 2),
|
(545, 1508131120, 210, 127, 5),
|
||||||
(327, 1506951276, 215, 126, 3),
|
(546, 1508131149, 210, 127, 1),
|
||||||
(328, 1506951341, 210, 126, 4),
|
(547, 1508131167, 210, 127, 5),
|
||||||
(329, 1506951345, 215, 126, 1),
|
(548, 1508131176, 210, 127, 1),
|
||||||
(330, 1506951370, 215, 126, 5),
|
(549, 1508131281, 210, 127, 5),
|
||||||
(331, 1506951372, 215, 126, 1),
|
(550, 1508131286, 210, 127, 1),
|
||||||
(332, 1506951375, 215, 126, 2),
|
(551, 1508131313, 210, 127, 5),
|
||||||
(333, 1506951377, 215, 126, 3),
|
(552, 1508131320, 210, 127, 1),
|
||||||
(334, 1506951480, 210, 126, 4),
|
(553, 1508131323, 210, 127, 5),
|
||||||
(335, 1507815648, 215, 127, 1),
|
(554, 1508136438, 210, 127, 1),
|
||||||
(336, 1507815649, 215, 127, 5),
|
(555, 1508136455, 210, 127, 5),
|
||||||
(337, 1507816917, 215, 127, 1),
|
(556, 1508136480, 210, 127, 1),
|
||||||
(338, 1507820260, 215, 127, 5),
|
(557, 1508136499, 210, 127, 5),
|
||||||
(339, 1507820263, 215, 127, 2),
|
(558, 1508137679, 210, 127, 1),
|
||||||
(340, 1507830442, 215, 127, 5),
|
(559, 1508137723, 210, 127, 5),
|
||||||
(341, 1507830445, 215, 127, 1),
|
(560, 1508137727, 210, 127, 1),
|
||||||
(342, 1507830516, 215, 127, 5),
|
(561, 1508137737, 210, 127, 5),
|
||||||
(343, 1507830518, 215, 127, 1),
|
(562, 1508137744, 210, 127, 1),
|
||||||
(344, 1507830586, 215, 127, 5),
|
(563, 1508152269, 210, 127, 5),
|
||||||
(345, 1507830587, 215, 127, 1),
|
(564, 1508153966, 210, 127, 1),
|
||||||
(346, 1507830590, 210, 127, 6);
|
(565, 1508163844, 210, 127, 5),
|
||||||
|
(566, 1508163848, 210, 127, 1),
|
||||||
|
(567, 1508163849, 210, 127, 5),
|
||||||
|
(568, 1508163873, 210, 127, 1),
|
||||||
|
(569, 1508163879, 210, 127, 5),
|
||||||
|
(570, 1508220239, 210, 127, 1),
|
||||||
|
(571, 1508220269, 210, 127, 5),
|
||||||
|
(572, 1508220272, 210, 127, 1),
|
||||||
|
(573, 1508220284, 210, 127, 5),
|
||||||
|
(574, 1508220292, 210, 127, 1),
|
||||||
|
(575, 1508226597, 210, 127, 5),
|
||||||
|
(576, 1508227895, 210, 127, 1),
|
||||||
|
(577, 1508233976, 210, 127, 5),
|
||||||
|
(578, 1508236312, 210, 127, 1),
|
||||||
|
(579, 1508248170, 210, 127, 5),
|
||||||
|
(580, 1508249485, 210, 127, 1),
|
||||||
|
(581, 1508253739, 210, 127, 5),
|
||||||
|
(582, 1508296080, 210, 127, 1),
|
||||||
|
(583, 1508296083, 210, 127, 5),
|
||||||
|
(584, 1508296086, 210, 127, 1),
|
||||||
|
(585, 1508296091, 210, 127, 5),
|
||||||
|
(586, 1508296095, 210, 127, 1),
|
||||||
|
(587, 1508296106, 210, 127, 5),
|
||||||
|
(588, 1508296155, 210, 127, 1),
|
||||||
|
(589, 1508296156, 210, 127, 5),
|
||||||
|
(590, 1508296248, 210, 127, 1),
|
||||||
|
(591, 1508296252, 210, 127, 5),
|
||||||
|
(592, 1508306368, 210, 127, 1),
|
||||||
|
(593, 1508325871, 210, 127, 5),
|
||||||
|
(594, 1508387103, 210, 127, 1),
|
||||||
|
(595, 1508389196, 210, 127, 5),
|
||||||
|
(596, 1508389201, 210, 127, 1),
|
||||||
|
(597, 1508389202, 210, 127, 5),
|
||||||
|
(598, 1508389203, 210, 127, 1),
|
||||||
|
(599, 1508389205, 210, 127, 5),
|
||||||
|
(600, 1508389216, 210, 127, 1),
|
||||||
|
(601, 1508389224, 210, 127, 5),
|
||||||
|
(602, 1508389226, 210, 127, 1),
|
||||||
|
(603, 1508389235, 210, 127, 5),
|
||||||
|
(604, 1508534088, 210, 127, 1),
|
||||||
|
(605, 1508534098, 210, 127, 5),
|
||||||
|
(606, 1508534099, 210, 127, 1),
|
||||||
|
(607, 1508534383, 210, 127, 5),
|
||||||
|
(608, 1508650844, 210, 127, 1),
|
||||||
|
(609, 1508659205, 210, 127, 5),
|
||||||
|
(610, 1508659207, 210, 127, 1),
|
||||||
|
(611, 1508665004, 210, 127, 5),
|
||||||
|
(612, 1508665006, 210, 127, 1),
|
||||||
|
(613, 1508665094, 210, 127, 5),
|
||||||
|
(614, 1508667146, 210, 127, 1);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -283,7 +325,6 @@ INSERT INTO `history` (`id_history`, `timestamp`, `id_user`, `id_machine`, `id_a
|
||||||
-- Table structure for table `log`
|
-- Table structure for table `log`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `log`;
|
|
||||||
CREATE TABLE `log` (
|
CREATE TABLE `log` (
|
||||||
`id_log` int(11) NOT NULL,
|
`id_log` int(11) NOT NULL,
|
||||||
`id_feature` int(11) NOT NULL,
|
`id_feature` int(11) NOT NULL,
|
||||||
|
@ -298,7 +339,6 @@ CREATE TABLE `log` (
|
||||||
-- Table structure for table `machine`
|
-- Table structure for table `machine`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `machine`;
|
|
||||||
CREATE TABLE `machine` (
|
CREATE TABLE `machine` (
|
||||||
`id_machine` int(11) NOT NULL,
|
`id_machine` int(11) NOT NULL,
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
|
@ -423,12 +463,12 @@ INSERT INTO `machine` (`id_machine`, `id_warehouse`, `name`, `token`, `unlock_co
|
||||||
(115, 7, 'sd', NULL, NULL, NULL, NULL),
|
(115, 7, 'sd', NULL, NULL, NULL, NULL),
|
||||||
(116, 7, 'machine13', NULL, NULL, NULL, NULL),
|
(116, 7, 'machine13', NULL, NULL, NULL, NULL),
|
||||||
(121, 7, 'dsad', NULL, NULL, NULL, NULL),
|
(121, 7, 'dsad', NULL, NULL, NULL, NULL),
|
||||||
(122, 8, 'surgel1', NULL, '5f4769b43bba1ad8ee063b917a77a54569280cee4b04b65e251b3fa80a25867645356e99a1178830824be5ae4bd72196d2781d7324a6ca965406676f80e6c159', NULL, NULL),
|
(122, 8, 'surgel1', '7853cb554aebb76640df3e066b67a099720939aa86e52b9c17bb236d090121936fb018b301fb1ab1b49d68e360a3ebbc0a2a9be99cfadf20f69facf058a1ad4a', NULL, '6452a1', '192.168.0.21'),
|
||||||
(123, 8, 'surgel2', NULL, NULL, NULL, NULL),
|
(123, 8, 'surgel2', NULL, '24d74a635267b26a587a9902ab19275f889c8c693538373ca4c9f85eb4fb75625a07fdef5289161b9fe78156c78a777185efef2bc249f6647538d5758f5b7210', NULL, NULL),
|
||||||
(124, 8, 'surgel3', NULL, NULL, NULL, NULL),
|
(124, 8, 'surgel3', NULL, NULL, NULL, NULL),
|
||||||
(125, 8, 'surgel4', NULL, NULL, NULL, NULL),
|
(125, 8, 'surgel4', NULL, NULL, NULL, NULL),
|
||||||
(126, 8, 'lait1', 'd1607996880675c78ecdf3507540fdf6fbfb4a9fc10f350929e24e5c0b3cea03e444348f7aac7c77410a1fd61745c4f0a370a89621237174a575870d7108d8e4', NULL, '6452a1', '192.168.0.44'),
|
(126, 8, 'lait1', NULL, NULL, NULL, NULL),
|
||||||
(127, 8, 'lait2', '14e7f5ba1e789b622bdc1a9770452b71bb8959d694b48fc65610649fdf57d6113b0d4c89216b08633beec11f14764b8854ba7962eb8516d5b90466148f2b8871', NULL, '6452a1', '192.168.0.44'),
|
(127, 8, 'lait2', '207a8ef6a121fbffbedd7affcdf1c4eccf3918941d186ef93ddc03b7eeebc721b58155c10e20d2b45e41de71428f49d51da8a4223284e19d52bea7a1df2f6807', NULL, '23c683', '192.168.1.100'),
|
||||||
(128, 8, 'lait3', NULL, NULL, NULL, NULL),
|
(128, 8, 'lait3', NULL, NULL, NULL, NULL),
|
||||||
(129, 8, 'lait4', NULL, NULL, NULL, NULL);
|
(129, 8, 'lait4', NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
@ -438,7 +478,6 @@ INSERT INTO `machine` (`id_machine`, `id_warehouse`, `name`, `token`, `unlock_co
|
||||||
-- Table structure for table `machine_cluster`
|
-- Table structure for table `machine_cluster`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `machine_cluster`;
|
|
||||||
CREATE TABLE `machine_cluster` (
|
CREATE TABLE `machine_cluster` (
|
||||||
`id_machine_cluster` int(11) NOT NULL,
|
`id_machine_cluster` int(11) NOT NULL,
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
|
@ -462,7 +501,6 @@ INSERT INTO `machine_cluster` (`id_machine_cluster`, `id_warehouse`, `name`) VAL
|
||||||
-- Table structure for table `machine_cluster_merge`
|
-- Table structure for table `machine_cluster_merge`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `machine_cluster_merge`;
|
|
||||||
CREATE TABLE `machine_cluster_merge` (
|
CREATE TABLE `machine_cluster_merge` (
|
||||||
`id_machine_cluster_merge` int(11) NOT NULL,
|
`id_machine_cluster_merge` int(11) NOT NULL,
|
||||||
`id_machine_cluster` int(11) NOT NULL,
|
`id_machine_cluster` int(11) NOT NULL,
|
||||||
|
@ -477,14 +515,15 @@ INSERT INTO `machine_cluster_merge` (`id_machine_cluster_merge`, `id_machine_clu
|
||||||
(3, 1, 58),
|
(3, 1, 58),
|
||||||
(4, 2, 75),
|
(4, 2, 75),
|
||||||
(5, 3, 6),
|
(5, 3, 6),
|
||||||
(6, 2, 58),
|
|
||||||
(9, 4, 122),
|
|
||||||
(10, 4, 123),
|
(10, 4, 123),
|
||||||
(11, 4, 124),
|
(11, 4, 124),
|
||||||
(12, 4, 125),
|
(12, 4, 125),
|
||||||
(13, 5, 126),
|
(13, 5, 126),
|
||||||
(14, 5, 127),
|
(16, 5, 129),
|
||||||
(16, 5, 129);
|
(18, 5, 127),
|
||||||
|
(19, 4, 122),
|
||||||
|
(20, 5, 128),
|
||||||
|
(22, 3, 58);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -492,7 +531,6 @@ INSERT INTO `machine_cluster_merge` (`id_machine_cluster_merge`, `id_machine_clu
|
||||||
-- Table structure for table `module`
|
-- Table structure for table `module`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `module`;
|
|
||||||
CREATE TABLE `module` (
|
CREATE TABLE `module` (
|
||||||
`id_module` int(11) NOT NULL,
|
`id_module` int(11) NOT NULL,
|
||||||
`name` varchar(50) COLLATE utf8_unicode_ci NOT NULL
|
`name` varchar(50) COLLATE utf8_unicode_ci NOT NULL
|
||||||
|
@ -514,7 +552,6 @@ INSERT INTO `module` (`id_module`, `name`) VALUES
|
||||||
-- Table structure for table `module_availability`
|
-- Table structure for table `module_availability`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `module_availability`;
|
|
||||||
CREATE TABLE `module_availability` (
|
CREATE TABLE `module_availability` (
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
`id_module` int(11) NOT NULL
|
`id_module` int(11) NOT NULL
|
||||||
|
@ -537,7 +574,6 @@ INSERT INTO `module_availability` (`id_warehouse`, `id_module`) VALUES
|
||||||
-- Table structure for table `module_merge`
|
-- Table structure for table `module_merge`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `module_merge`;
|
|
||||||
CREATE TABLE `module_merge` (
|
CREATE TABLE `module_merge` (
|
||||||
`id_module_merge` int(11) NOT NULL,
|
`id_module_merge` int(11) NOT NULL,
|
||||||
`id_machine_cluster` int(11) NOT NULL,
|
`id_machine_cluster` int(11) NOT NULL,
|
||||||
|
@ -563,20 +599,26 @@ INSERT INTO `module_merge` (`id_module_merge`, `id_machine_cluster`, `id_etree`,
|
||||||
-- Table structure for table `motheure`
|
-- Table structure for table `motheure`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `motheure`;
|
|
||||||
CREATE TABLE `motheure` (
|
CREATE TABLE `motheure` (
|
||||||
`id_motheure` int(11) NOT NULL,
|
`id_motheure` int(11) NOT NULL,
|
||||||
`id_machine` int(11) NOT NULL,
|
`id_machine` int(11) NOT NULL,
|
||||||
`count` int(11) NOT NULL
|
`count` bigint(11) NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `motheure`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `motheure` (`id_motheure`, `id_machine`, `count`) VALUES
|
||||||
|
(3, 122, 13),
|
||||||
|
(6, 127, 2890);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `state`
|
-- Table structure for table `state`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `state`;
|
|
||||||
CREATE TABLE `state` (
|
CREATE TABLE `state` (
|
||||||
`id_state` int(11) NOT NULL,
|
`id_state` int(11) NOT NULL,
|
||||||
`id_chip` int(11) NOT NULL,
|
`id_chip` int(11) NOT NULL,
|
||||||
|
@ -602,7 +644,6 @@ INSERT INTO `state` (`id_state`, `id_chip`, `state`, `value`) VALUES
|
||||||
-- Table structure for table `user`
|
-- Table structure for table `user`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `user`;
|
|
||||||
CREATE TABLE `user` (
|
CREATE TABLE `user` (
|
||||||
`id_user` int(11) NOT NULL,
|
`id_user` int(11) NOT NULL,
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
|
@ -710,7 +751,7 @@ INSERT INTO `user` (`id_user`, `id_warehouse`, `code`, `username`, `firstname`,
|
||||||
(215, 8, 'F9-7D-5D-9E', 'Pass-A', 'Pass', 'A-1', 'passA@logauth.xdrm.io'),
|
(215, 8, 'F9-7D-5D-9E', 'Pass-A', 'Pass', 'A-1', 'passA@logauth.xdrm.io'),
|
||||||
(216, 8, 'D2-E2-CA-12', 'Card-D', 'Carte', 'D-3', 'cardD@logauth.xdrm.io'),
|
(216, 8, 'D2-E2-CA-12', 'Card-D', 'Carte', 'D-3', 'cardD@logauth.xdrm.io'),
|
||||||
(217, 8, 'D4-34-E8-AB', 'Pass-E', 'Pass', 'E-4', 'passE@logauth.xdrm.io'),
|
(217, 8, 'D4-34-E8-AB', 'Pass-E', 'Pass', 'E-4', 'passE@logauth.xdrm.io'),
|
||||||
(218, 8, 'A9-5B-5D-9E', 'Pass-F', 'Pass', 'F-5', 'passF@logauth.xdrm.io');
|
(218, 8, 'A9-05-5D-9E', 'Pass-F', 'Pass', 'F-5', 'passF@logauth.xdrm.io');
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -718,7 +759,6 @@ INSERT INTO `user` (`id_user`, `id_warehouse`, `code`, `username`, `firstname`,
|
||||||
-- Table structure for table `user_cluster`
|
-- Table structure for table `user_cluster`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `user_cluster`;
|
|
||||||
CREATE TABLE `user_cluster` (
|
CREATE TABLE `user_cluster` (
|
||||||
`id_user_cluster` int(11) NOT NULL,
|
`id_user_cluster` int(11) NOT NULL,
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
|
@ -743,7 +783,6 @@ INSERT INTO `user_cluster` (`id_user_cluster`, `id_warehouse`, `name`) VALUES
|
||||||
-- Table structure for table `user_cluster_merge`
|
-- Table structure for table `user_cluster_merge`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `user_cluster_merge`;
|
|
||||||
CREATE TABLE `user_cluster_merge` (
|
CREATE TABLE `user_cluster_merge` (
|
||||||
`id_user_cluster_merge` int(11) NOT NULL,
|
`id_user_cluster_merge` int(11) NOT NULL,
|
||||||
`id_user_cluster` int(11) NOT NULL,
|
`id_user_cluster` int(11) NOT NULL,
|
||||||
|
@ -769,7 +808,8 @@ INSERT INTO `user_cluster_merge` (`id_user_cluster_merge`, `id_user_cluster`, `i
|
||||||
(91, 5, 210),
|
(91, 5, 210),
|
||||||
(92, 7, 216),
|
(92, 7, 216),
|
||||||
(94, 6, 218),
|
(94, 6, 218),
|
||||||
(99, 8, 217);
|
(99, 8, 217),
|
||||||
|
(100, 5, 216);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -777,7 +817,6 @@ INSERT INTO `user_cluster_merge` (`id_user_cluster_merge`, `id_user_cluster`, `i
|
||||||
-- Table structure for table `warehouse`
|
-- Table structure for table `warehouse`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `warehouse`;
|
|
||||||
CREATE TABLE `warehouse` (
|
CREATE TABLE `warehouse` (
|
||||||
`id_warehouse` int(11) NOT NULL,
|
`id_warehouse` int(11) NOT NULL,
|
||||||
`name` varchar(30) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
|
`name` varchar(30) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
|
||||||
|
@ -792,7 +831,7 @@ CREATE TABLE `warehouse` (
|
||||||
|
|
||||||
INSERT INTO `warehouse` (`id_warehouse`, `name`, `theme`, `password`, `token`) VALUES
|
INSERT INTO `warehouse` (`id_warehouse`, `name`, `theme`, `password`, `token`) VALUES
|
||||||
(7, 'stef-montauban', '3091DB', '53859350c1eb59e301d8fe747f4d1c96d3ec31d95cd1bc72c81d72800edbc6ab45da0d5b6208080fb2e519b1f9848ce0a1289775800912068f32e390f5e1bb6c', '2046c66738b4f1f1e6460537f11970ec5b2cfa65f295b2ca0d2036609dcd3f8ccb6ec271e15440933d3b24ae27eba71423a4545583ab6f3736a5d4f7c8f8c53e'),
|
(7, 'stef-montauban', '3091DB', '53859350c1eb59e301d8fe747f4d1c96d3ec31d95cd1bc72c81d72800edbc6ab45da0d5b6208080fb2e519b1f9848ce0a1289775800912068f32e390f5e1bb6c', '2046c66738b4f1f1e6460537f11970ec5b2cfa65f295b2ca0d2036609dcd3f8ccb6ec271e15440933d3b24ae27eba71423a4545583ab6f3736a5d4f7c8f8c53e'),
|
||||||
(8, 'stef-toulouse', 'DB554E', '273bd225482d20c061620c80e3bb87528d9e178bd572acd47feb58eee7e8a3847cb308b287d9d94c7a292b33d4c766cdb7c95c2828f53b97bbc0f80fa44aeb83', '52131065a906de90e26da0732e58400edd6739cfa03fc658e7593abef4a4504e18e66e1a8fe9da374a8e8f753603463e4777789262b3ee945d4bf72dd8d6399c');
|
(8, 'stef-montbartier', 'DB554E', '034a8313428d9780e4c5bc4bc25ae3985d1d987f4c6928f888e61685ec3f183f7ec0c83f691da2eeb64f27d916fb44aafdef66113892dbc800218b3b512e316e', '52131065a906de90e26da0732e58400edd6739cfa03fc658e7593abef4a4504e18e66e1a8fe9da374a8e8f753603463e4777789262b3ee945d4bf72dd8d6399c');
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for dumped tables
|
-- Indexes for dumped tables
|
||||||
|
@ -962,7 +1001,7 @@ ALTER TABLE `action_merge`
|
||||||
-- AUTO_INCREMENT for table `admin`
|
-- AUTO_INCREMENT for table `admin`
|
||||||
--
|
--
|
||||||
ALTER TABLE `admin`
|
ALTER TABLE `admin`
|
||||||
MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `chip`
|
-- AUTO_INCREMENT for table `chip`
|
||||||
--
|
--
|
||||||
|
@ -982,7 +1021,7 @@ ALTER TABLE `global_state`
|
||||||
-- AUTO_INCREMENT for table `history`
|
-- AUTO_INCREMENT for table `history`
|
||||||
--
|
--
|
||||||
ALTER TABLE `history`
|
ALTER TABLE `history`
|
||||||
MODIFY `id_history` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=347;
|
MODIFY `id_history` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=615;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `log`
|
-- AUTO_INCREMENT for table `log`
|
||||||
--
|
--
|
||||||
|
@ -1002,7 +1041,7 @@ ALTER TABLE `machine_cluster`
|
||||||
-- AUTO_INCREMENT for table `machine_cluster_merge`
|
-- AUTO_INCREMENT for table `machine_cluster_merge`
|
||||||
--
|
--
|
||||||
ALTER TABLE `machine_cluster_merge`
|
ALTER TABLE `machine_cluster_merge`
|
||||||
MODIFY `id_machine_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
|
MODIFY `id_machine_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `module`
|
-- AUTO_INCREMENT for table `module`
|
||||||
--
|
--
|
||||||
|
@ -1017,7 +1056,7 @@ ALTER TABLE `module_merge`
|
||||||
-- AUTO_INCREMENT for table `motheure`
|
-- AUTO_INCREMENT for table `motheure`
|
||||||
--
|
--
|
||||||
ALTER TABLE `motheure`
|
ALTER TABLE `motheure`
|
||||||
MODIFY `id_motheure` int(11) NOT NULL AUTO_INCREMENT;
|
MODIFY `id_motheure` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `state`
|
-- AUTO_INCREMENT for table `state`
|
||||||
--
|
--
|
||||||
|
@ -1037,7 +1076,7 @@ ALTER TABLE `user_cluster`
|
||||||
-- AUTO_INCREMENT for table `user_cluster_merge`
|
-- AUTO_INCREMENT for table `user_cluster_merge`
|
||||||
--
|
--
|
||||||
ALTER TABLE `user_cluster_merge`
|
ALTER TABLE `user_cluster_merge`
|
||||||
MODIFY `id_user_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=100;
|
MODIFY `id_user_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101;
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `warehouse`
|
-- AUTO_INCREMENT for table `warehouse`
|
||||||
--
|
--
|
||||||
|
@ -1122,12 +1161,6 @@ ALTER TABLE `module_merge`
|
||||||
ADD CONSTRAINT `fk_module_merge_id_machine_cluster` FOREIGN KEY (`id_machine_cluster`) REFERENCES `machine_cluster` (`id_machine_cluster`) ON DELETE CASCADE ON UPDATE CASCADE,
|
ADD CONSTRAINT `fk_module_merge_id_machine_cluster` FOREIGN KEY (`id_machine_cluster`) REFERENCES `machine_cluster` (`id_machine_cluster`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
ADD CONSTRAINT `fk_module_merge_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`) ON DELETE CASCADE ON UPDATE CASCADE;
|
ADD CONSTRAINT `fk_module_merge_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
--
|
|
||||||
-- Constraints for table `motheure`
|
|
||||||
--
|
|
||||||
ALTER TABLE `motheure`
|
|
||||||
ADD CONSTRAINT `fk_motheure_id_machine` FOREIGN KEY (`id_machine`) REFERENCES `machine` (`id_machine`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Constraints for table `state`
|
-- Constraints for table `state`
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue