From 9bc638df3951ee8fd4146eef184c68ebca7b06c9 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 19 Jul 2016 00:31:13 +0200 Subject: [PATCH] minmod + modifications majeures BDD --- config/bdd.sql | 1401 ++++++++++-------- config/repositories.json | 2 +- manager/module/machineDefault.php | 2 +- manager/repo/{state.php => global_state.php} | 4 +- test/client/lib-min.js | 2 +- test/client/lib.js | 2 +- 6 files changed, 765 insertions(+), 648 deletions(-) rename manager/repo/{state.php => global_state.php} (74%) diff --git a/config/bdd.sql b/config/bdd.sql index dea3445..8d9de15 100755 --- a/config/bdd.sql +++ b/config/bdd.sql @@ -1,11 +1,11 @@ -- phpMyAdmin SQL Dump --- version 4.0.10deb1 +-- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost --- Generation Time: Feb 14, 2016 at 03:20 PM --- Server version: 5.5.47-0ubuntu0.14.04.1 --- PHP Version: 5.5.9-1ubuntu4.14 +-- Generation Time: Jul 19, 2016 at 12:30 AM +-- Server version: 5.7.12-0ubuntu1.1 +-- PHP Version: 7.0.4-7ubuntu2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; @@ -14,7 +14,7 @@ SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; +/*!40101 SET NAMES utf8mb4 */; -- -- Database: `stefproject` @@ -23,440 +23,114 @@ SET time_zone = "+00:00"; -- -------------------------------------------------------- -- --- Table structure for table `cluster` +-- Table structure for table `action` -- -CREATE TABLE IF NOT EXISTS `cluster` ( - `id_cluster` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(30) NOT NULL, - PRIMARY KEY (`id_cluster`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=201 ; +CREATE TABLE `action` ( + `id_action` int(11) NOT NULL, + `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, + `timeout` int(11) NOT NULL, + `previous` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `action` varchar(20) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- --- Dumping data for table `cluster` +-- Dumping data for table `action` -- -INSERT INTO `cluster` (`id_cluster`, `name`) VALUES -(1, 'Daniels'), -(2, 'Lucas'), -(3, 'Liz'), -(4, 'Jessie'), -(5, 'Elaine'), -(6, 'Tameka'), -(7, 'Katheryn'), -(8, 'Bowen'), -(9, 'Flores'), -(10, 'Dominique'), -(11, 'Deirdre'), -(12, 'Elvira'), -(13, 'Sonya'), -(14, 'Patrick'), -(15, 'Tamra'), -(16, 'Lawanda'), -(17, 'Susie'), -(18, 'Marlene'), -(19, 'Lara'), -(20, 'Callahan'), -(21, 'Ball'), -(22, 'Tiffany'), -(23, 'Alisha'), -(24, 'Kristen'), -(25, 'Hicks'), -(26, 'Miriam'), -(27, 'Vilma'), -(28, 'Woods'), -(29, 'Atkinson'), -(30, 'Rogers'), -(31, 'Kirsten'), -(32, 'Iva'), -(33, 'Morales'), -(34, 'Kellie'), -(35, 'Mullen'), -(36, 'Harper'), -(37, 'Pollard'), -(38, 'Howell'), -(39, 'Lina'), -(40, 'Glover'), -(41, 'Clarke'), -(42, 'Daphne'), -(43, 'Maddox'), -(44, 'Ernestine'), -(45, 'Bernice'), -(46, 'Rhodes'), -(47, 'Nancy'), -(48, 'Abigail'), -(49, 'Levy'), -(50, 'Juarez'), -(51, 'Pruitt'), -(52, 'Richard'), -(53, 'Lindsay'), -(54, 'Darla'), -(55, 'Nolan'), -(56, 'Zelma'), -(57, 'Avila'), -(58, 'Etta'), -(59, 'Ava'), -(60, 'Stein'), -(61, 'Tommie'), -(62, 'Holmes'), -(63, 'Todd'), -(64, 'Henry'), -(65, 'Liliana'), -(66, 'Angelita'), -(67, 'Mcintyre'), -(68, 'Baker'), -(69, 'Barbra'), -(70, 'Delacruz'), -(71, 'Wall'), -(72, 'Wilkinson'), -(73, 'Rosalie'), -(74, 'Mae'), -(75, 'Bernadine'), -(76, 'Norman'), -(77, 'Terra'), -(78, 'Ina'), -(79, 'Sabrina'), -(80, 'Karla'), -(81, 'Clements'), -(82, 'Mccullough'), -(83, 'Cheri'), -(84, 'Mcclain'), -(85, 'Leona'), -(86, 'Roslyn'), -(87, 'Castillo'), -(88, 'Helen'), -(89, 'Olson'), -(90, 'Ann'), -(91, 'Haynes'), -(92, 'Malinda'), -(93, 'Cochran'), -(94, 'Winters'), -(95, 'Richardson'), -(96, 'Walker'), -(97, 'Witt'), -(98, 'Valarie'), -(99, 'Jessica'), -(100, 'Velez'), -(101, 'WNTKO'), -(102, 'RMUAY'), -(103, 'ZSCMZ'), -(104, 'AWCUX'), -(105, 'HKSWO'), -(106, 'ASIFJ'), -(107, 'CCKEV'), -(108, 'KDVSJ'), -(109, 'VCEWY'), -(110, 'UKWVN'), -(111, 'FFJDJ'), -(112, 'NHCWO'), -(113, 'IBRFK'), -(114, 'FGLXK'), -(115, 'BUZRV'), -(116, 'WKNTM'), -(117, 'SPQOQ'), -(118, 'SSRWE'), -(119, 'TIBAH'), -(120, 'EKOFT'), -(121, 'GJTJW'), -(122, 'XIPNP'), -(123, 'FDFXQ'), -(124, 'HSCUZ'), -(125, 'BYKBF'), -(126, 'GNOKK'), -(127, 'WLSUB'), -(128, 'DMTTJ'), -(129, 'OCFWD'), -(130, 'CABWU'), -(131, 'BUWRJ'), -(132, 'OULIX'), -(133, 'XCDYM'), -(134, 'LREGF'), -(135, 'DDLSP'), -(136, 'DTGHG'), -(137, 'BZWUE'), -(138, 'LGDDS'), -(139, 'ERXMY'), -(140, 'VJGER'), -(141, 'LOXIE'), -(142, 'IHARA'), -(143, 'ZIQJQ'), -(144, 'ZKUEW'), -(145, 'BLDTO'), -(146, 'OZRQF'), -(147, 'NWPBM'), -(148, 'OZDYC'), -(149, 'ETUZU'), -(150, 'CNQAB'), -(151, 'OPIIW'), -(152, 'ACARQ'), -(153, 'NMHYG'), -(154, 'ASKZD'), -(155, 'QMIJT'), -(156, 'BBDZL'), -(157, 'WKKYH'), -(158, 'AFHJH'), -(159, 'CASXB'), -(160, 'LOXOZ'), -(161, 'ZTUNO'), -(162, 'QGQNK'), -(163, 'SVIBS'), -(164, 'RSVXL'), -(165, 'EMESC'), -(166, 'BBXON'), -(167, 'NGLBK'), -(168, 'MZHBC'), -(169, 'OYEPB'), -(170, 'RQFNK'), -(171, 'MRUUS'), -(172, 'DJDVW'), -(173, 'SOJEJ'), -(174, 'YYSRC'), -(175, 'AJNMI'), -(176, 'IVUSU'), -(177, 'VYPUB'), -(178, 'SJYUN'), -(179, 'QRGTG'), -(180, 'LXIFX'), -(181, 'YXWTP'), -(182, 'SMEFT'), -(183, 'HUTUW'), -(184, 'DYCLY'), -(185, 'VBJWP'), -(186, 'CZRPO'), -(187, 'JCNSP'), -(188, 'EOKCA'), -(189, 'PZEAK'), -(190, 'ERIMX'), -(191, 'NGVPC'), -(192, 'MVONW'), -(193, 'ZUHOD'), -(194, 'YIATG'), -(195, 'WFQGC'), -(196, 'NKZQL'), -(197, 'EMIWA'), -(198, 'WOYWY'), -(199, 'ZBLQG'), -(200, 'STQYS'); +INSERT INTO `action` (`id_action`, `name`, `timeout`, `previous`, `action`) VALUES +(1, 'Start', 0, '0X0', '1XX'), +(2, 'Signal', 1, 'XX0', 'X1X'), +(3, 'Lock', 2, 'XX0', '001'), +(4, 'Unlock', 0, 'XX1', '000'), +(5, 'Stop', 0, '1X0', '0XX'); -- -------------------------------------------------------- -- --- Table structure for table `cluster_merge` +-- Table structure for table `action_merge` -- -CREATE TABLE IF NOT EXISTS `cluster_merge` ( - `id_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, - `id_cluster` int(11) NOT NULL, - `id_entity` int(11) NOT NULL, - `class` int(11) NOT NULL, - PRIMARY KEY (`id_cluster_merge`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=203 ; +CREATE TABLE `action_merge` ( + `id_action_merge` int(11) NOT NULL, + `id_target` int(11) NOT NULL, + `id_source` int(11) NOT NULL, + `id_action` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- --- Dumping data for table `cluster_merge` +-- Dumping data for table `action_merge` -- -INSERT INTO `cluster_merge` (`id_cluster_merge`, `id_cluster`, `id_entity`, `class`) VALUES -(1, 1, 1, 0), -(2, 2, 2, 0), -(3, 3, 3, 0), -(4, 4, 4, 0), -(5, 5, 5, 0), -(6, 6, 6, 0), -(7, 7, 7, 0), -(8, 8, 8, 0), -(9, 9, 9, 0), -(10, 10, 10, 0), -(11, 11, 11, 0), -(12, 12, 12, 0), -(13, 13, 13, 0), -(14, 14, 14, 0), -(15, 15, 15, 0), -(16, 16, 16, 0), -(17, 17, 17, 0), -(18, 18, 18, 0), -(19, 19, 19, 0), -(20, 20, 20, 0), -(21, 21, 21, 0), -(22, 22, 22, 0), -(23, 23, 23, 0), -(24, 24, 24, 0), -(25, 25, 25, 0), -(26, 26, 26, 0), -(27, 27, 27, 0), -(28, 28, 28, 0), -(29, 29, 29, 0), -(30, 30, 30, 0), -(31, 31, 31, 0), -(32, 32, 32, 0), -(33, 33, 33, 0), -(34, 34, 34, 0), -(35, 35, 35, 0), -(36, 36, 36, 0), -(37, 37, 37, 0), -(38, 38, 38, 0), -(39, 39, 39, 0), -(40, 40, 40, 0), -(41, 41, 41, 0), -(42, 42, 42, 0), -(43, 43, 43, 0), -(44, 44, 44, 0), -(45, 45, 45, 0), -(46, 46, 46, 0), -(47, 47, 47, 0), -(48, 48, 48, 0), -(49, 49, 49, 0), -(50, 50, 50, 0), -(51, 51, 51, 0), -(52, 52, 52, 0), -(53, 53, 53, 0), -(54, 54, 54, 0), -(55, 55, 55, 0), -(56, 56, 56, 0), -(57, 57, 57, 0), -(58, 58, 58, 0), -(59, 59, 59, 0), -(60, 60, 60, 0), -(61, 61, 61, 0), -(62, 62, 62, 0), -(63, 63, 63, 0), -(64, 64, 64, 0), -(65, 65, 65, 0), -(66, 66, 66, 0), -(67, 67, 67, 0), -(68, 68, 68, 0), -(69, 69, 69, 0), -(70, 70, 70, 0), -(71, 71, 71, 0), -(72, 72, 72, 0), -(73, 73, 73, 0), -(74, 74, 74, 0), -(75, 75, 75, 0), -(76, 76, 76, 0), -(77, 77, 77, 0), -(78, 78, 78, 0), -(79, 79, 79, 0), -(80, 80, 80, 0), -(81, 81, 81, 0), -(82, 82, 82, 0), -(83, 83, 83, 0), -(84, 84, 84, 0), -(85, 85, 85, 0), -(86, 86, 86, 0), -(87, 87, 87, 0), -(88, 88, 88, 0), -(89, 89, 89, 0), -(90, 90, 90, 0), -(91, 91, 91, 0), -(92, 92, 92, 0), -(93, 93, 93, 0), -(94, 94, 94, 0), -(95, 95, 95, 0), -(96, 96, 96, 0), -(97, 97, 97, 0), -(98, 98, 98, 0), -(99, 99, 99, 0), -(100, 100, 100, 0), -(101, 101, 1, 1), -(102, 102, 2, 1), -(103, 103, 3, 1), -(104, 104, 4, 1), -(105, 105, 5, 1), -(106, 106, 6, 1), -(107, 107, 7, 1), -(108, 108, 8, 1), -(109, 109, 9, 1), -(110, 110, 10, 1), -(111, 111, 11, 1), -(112, 112, 12, 1), -(113, 113, 13, 1), -(114, 114, 14, 1), -(115, 115, 15, 1), -(116, 116, 16, 1), -(117, 117, 17, 1), -(118, 118, 18, 1), -(119, 119, 19, 1), -(120, 120, 20, 1), -(121, 121, 21, 1), -(122, 122, 22, 1), -(123, 123, 23, 1), -(124, 124, 24, 1), -(125, 125, 25, 1), -(126, 126, 26, 1), -(127, 127, 27, 1), -(128, 128, 28, 1), -(129, 129, 29, 1), -(130, 130, 30, 1), -(131, 131, 31, 1), -(132, 132, 32, 1), -(133, 133, 33, 1), -(134, 134, 34, 1), -(135, 135, 35, 1), -(136, 136, 36, 1), -(137, 137, 37, 1), -(138, 138, 38, 1), -(139, 139, 39, 1), -(140, 140, 40, 1), -(141, 141, 41, 1), -(142, 142, 42, 1), -(143, 143, 43, 1), -(144, 144, 44, 1), -(145, 145, 45, 1), -(146, 146, 46, 1), -(147, 147, 47, 1), -(148, 148, 48, 1), -(149, 149, 49, 1), -(150, 150, 50, 1), -(151, 151, 51, 1), -(152, 152, 52, 1), -(153, 153, 53, 1), -(154, 154, 54, 1), -(155, 155, 55, 1), -(156, 156, 56, 1), -(157, 157, 57, 1), -(158, 158, 58, 1), -(159, 159, 59, 1), -(160, 160, 60, 1), -(161, 161, 61, 1), -(162, 162, 62, 1), -(163, 163, 63, 1), -(164, 164, 64, 1), -(165, 165, 65, 1), -(166, 166, 66, 1), -(167, 167, 67, 1), -(168, 168, 68, 1), -(169, 169, 69, 1), -(170, 170, 70, 1), -(171, 171, 71, 1), -(172, 172, 72, 1), -(173, 173, 73, 1), -(174, 174, 74, 1), -(175, 175, 75, 1), -(176, 176, 76, 1), -(177, 177, 77, 1), -(178, 178, 78, 1), -(179, 179, 79, 1), -(180, 180, 80, 1), -(181, 181, 81, 1), -(182, 182, 82, 1), -(183, 183, 83, 1), -(184, 184, 84, 1), -(185, 185, 85, 1), -(186, 186, 86, 1), -(187, 187, 87, 1), -(188, 188, 88, 1), -(189, 189, 89, 1), -(190, 190, 90, 1), -(191, 191, 91, 1), -(192, 192, 92, 1), -(193, 193, 93, 1), -(194, 194, 94, 1), -(195, 195, 95, 1), -(196, 196, 96, 1), -(197, 197, 97, 1), -(198, 198, 98, 1), -(199, 199, 99, 1), -(200, 200, 100, 1); +INSERT INTO `action_merge` (`id_action_merge`, `id_target`, `id_source`, `id_action`) VALUES +(1, 205, 1, 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `admin` +-- + +CREATE TABLE `admin` ( + `id_admin` int(11) NOT NULL, + `id_warehouse` int(11) NOT NULL, + `username` varchar(30) COLLATE utf8_unicode_ci NOT NULL, + `mail` varchar(50) COLLATE utf8_unicode_ci NOT NULL, + `password` varchar(64) COLLATE utf8_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `admin` +-- + +INSERT INTO `admin` (`id_admin`, `id_warehouse`, `username`, `mail`, `password`, `token`) VALUES +(1, 7, 'adrien.marques', 'adminmail@gmail.com', '963bbded00d37fb3ab2863093a5a76033d9cce6557c833af65e541c8abb96c6a', '65c8c2e3d59f258f1b81fec65d8e7d19f557d2a6eb5ab83848c2cd89d08ba84c'), +(2, 8, 'alexandre.marques', 'admin2mail@gmail.com', '963bbded00d37fb3ab2863093a5a76033d9cce6557c833af65e541c8abb96c6a', '65c8c2e3d59f258f1b81fec65d8e7d19f557d2a6eb5ab83848c2cd89d08ba84f'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `chip` +-- + +CREATE TABLE `chip` ( + `id_chip` int(11) NOT NULL, + `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `position` int(11) NOT NULL, + `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `chip` +-- + +INSERT INTO `chip` (`id_chip`, `name`, `position`, `type`) VALUES +(1, 'led1', 0, 'LED'), +(2, 'relay1', 1, 'RELAY'), +(3, 'relay2', 2, 'RELAI'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `global_state` +-- + +CREATE TABLE `global_state` ( + `id_global_state` int(11) NOT NULL, + `state` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `chips` varchar(30) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `global_state` +-- + +INSERT INTO `global_state` (`id_global_state`, `state`, `chips`) VALUES +(1, '0X0', '00x'), +(2, '100', '11x'), +(3, '110', '21x'), +(4, 'XX1', '30x'); -- -------------------------------------------------------- @@ -464,13 +138,12 @@ INSERT INTO `cluster_merge` (`id_cluster_merge`, `id_cluster`, `id_entity`, `cla -- Table structure for table `history` -- -CREATE TABLE IF NOT EXISTS `history` ( - `id_history` int(11) NOT NULL AUTO_INCREMENT, +CREATE TABLE `history` ( + `id_history` int(11) NOT NULL, `action` int(11) NOT NULL, `id_acteur` int(11) NOT NULL, - `id_machine` int(11) NOT NULL, - PRIMARY KEY (`id_history`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + `id_machine` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- @@ -478,118 +151,238 @@ CREATE TABLE IF NOT EXISTS `history` ( -- Table structure for table `machine` -- -CREATE TABLE IF NOT EXISTS `machine` ( - `id_machine` int(11) NOT NULL AUTO_INCREMENT, - `code` varchar(20) NOT NULL, +CREATE TABLE `machine` ( + `id_machine` int(11) NOT NULL, + `id_warehouse` int(11) NOT NULL, `name` varchar(30) NOT NULL, - PRIMARY KEY (`id_machine`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ; + `token` varchar(64) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `machine` -- -INSERT INTO `machine` (`id_machine`, `code`, `name`) VALUES -(1, 'CB-40-70-A0', 'WNTKO'), -(2, 'C9-42-46-45', 'RMUAY'), -(3, '30-DA-23-C0', 'ZSCMZ'), -(4, '6B-F0-82-05', 'AWCUX'), -(5, 'C8-67-58-0E', 'HKSWO'), -(6, 'CB-94-1E-F3', 'ASIFJ'), -(7, '3F-A6-B3-5E', 'CCKEV'), -(8, '8E-24-B5-24', 'KDVSJ'), -(9, '27-15-0B-9D', 'VCEWY'), -(10, 'FE-38-93-E9', 'UKWVN'), -(11, '07-6F-B6-B6', 'FFJDJ'), -(12, '3A-A8-8E-B1', 'NHCWO'), -(13, 'A3-15-41-38', 'IBRFK'), -(14, '99-30-04-B1', 'FGLXK'), -(15, '80-A8-91-C8', 'BUZRV'), -(16, '97-F3-00-93', 'WKNTM'), -(17, 'C6-F7-45-02', 'SPQOQ'), -(18, '25-11-D9-70', 'SSRWE'), -(19, '5B-EF-81-00', 'TIBAH'), -(20, '74-18-01-AE', 'EKOFT'), -(21, '07-27-C3-41', 'GJTJW'), -(22, '23-38-C6-B5', 'XIPNP'), -(23, '35-49-0B-88', 'FDFXQ'), -(24, '36-00-7F-1C', 'HSCUZ'), -(25, 'CB-60-BB-1A', 'BYKBF'), -(26, 'FE-5F-E7-FB', 'GNOKK'), -(27, '54-D1-4D-EC', 'WLSUB'), -(28, '9D-D8-C8-53', 'DMTTJ'), -(29, '32-A8-CB-08', 'OCFWD'), -(30, 'A4-B4-FC-74', 'CABWU'), -(31, '9E-E7-87-A0', 'BUWRJ'), -(32, '3F-90-8D-56', 'OULIX'), -(33, 'C7-95-56-96', 'XCDYM'), -(34, '98-5B-99-35', 'LREGF'), -(35, 'C0-1C-52-1E', 'DDLSP'), -(36, 'AE-01-18-81', 'DTGHG'), -(37, '85-46-39-94', 'BZWUE'), -(38, '9C-3C-45-AB', 'LGDDS'), -(39, '14-A5-92-CE', 'ERXMY'), -(40, 'A4-35-C5-76', 'VJGER'), -(41, '69-8E-6A-11', 'LOXIE'), -(42, '04-73-52-C8', 'IHARA'), -(43, '66-48-DF-7B', 'ZIQJQ'), -(44, '01-D9-22-86', 'ZKUEW'), -(45, 'B4-AC-F6-93', 'BLDTO'), -(46, 'E3-B8-CC-D4', 'OZRQF'), -(47, 'FF-18-3D-CB', 'NWPBM'), -(48, '68-2D-86-1D', 'OZDYC'), -(49, '65-AC-44-36', 'ETUZU'), -(50, '9D-3F-90-E9', 'CNQAB'), -(51, '8B-DE-55-B5', 'OPIIW'), -(52, '15-1B-34-D7', 'ACARQ'), -(53, '0D-E1-41-A8', 'NMHYG'), -(54, '19-FB-D2-82', 'ASKZD'), -(55, 'C6-55-0A-22', 'QMIJT'), -(56, '61-E4-51-C7', 'BBDZL'), -(57, '65-78-34-50', 'WKKYH'), -(58, '41-9A-BF-99', 'AFHJH'), -(59, '05-0D-82-31', 'CASXB'), -(60, '0D-21-6F-00', 'LOXOZ'), -(61, 'F7-84-53-CF', 'ZTUNO'), -(62, 'C2-9A-2D-9A', 'QGQNK'), -(63, 'BE-57-E3-29', 'SVIBS'), -(64, '13-39-5D-21', 'RSVXL'), -(65, 'A6-3D-D3-AC', 'EMESC'), -(66, 'F2-EF-83-5E', 'BBXON'), -(67, '52-F5-7D-2B', 'NGLBK'), -(68, 'BA-30-5C-C7', 'MZHBC'), -(69, 'B5-43-98-38', 'OYEPB'), -(70, '95-AC-FD-6F', 'RQFNK'), -(71, 'E0-12-F0-7D', 'MRUUS'), -(72, 'E2-5F-C1-1F', 'DJDVW'), -(73, '0B-0B-AF-49', 'SOJEJ'), -(74, 'C1-AF-BE-FD', 'YYSRC'), -(75, '6B-71-12-94', 'AJNMI'), -(76, 'E0-D3-67-BB', 'IVUSU'), -(77, 'D7-02-23-82', 'VYPUB'), -(78, '3F-AA-D7-E0', 'SJYUN'), -(79, 'CA-0E-31-E6', 'QRGTG'), -(80, 'D4-92-6B-03', 'LXIFX'), -(81, 'EE-0A-F5-D3', 'YXWTP'), -(82, '73-EB-04-C8', 'SMEFT'), -(83, '32-37-21-39', 'HUTUW'), -(84, '97-13-49-2E', 'DYCLY'), -(85, 'EE-63-92-60', 'VBJWP'), -(86, 'B3-88-BB-2B', 'CZRPO'), -(87, 'F5-7D-F5-7E', 'JCNSP'), -(88, 'AA-A9-B2-83', 'EOKCA'), -(89, 'EA-62-F6-F9', 'PZEAK'), -(90, '3D-3B-BE-D9', 'ERIMX'), -(91, '75-57-68-54', 'NGVPC'), -(92, '0E-F0-AD-27', 'MVONW'), -(93, '84-39-68-9B', 'ZUHOD'), -(94, '75-E4-50-0C', 'YIATG'), -(95, 'E8-F6-C1-CF', 'WFQGC'), -(96, '55-89-B7-34', 'NKZQL'), -(97, 'B2-67-DD-0C', 'EMIWA'), -(98, '11-7C-2E-A4', 'WOYWY'), -(99, 'CB-D8-B5-A2', 'ZBLQG'), -(100, 'CE-A1-20-27', 'STQYS'); +INSERT INTO `machine` (`id_machine`, `id_warehouse`, `name`, `token`) VALUES +(1, 7, 'WNTKO', '6c1029fc7383b83c30c0b7ba2416469bf12981b8f6dd876c081bd626789abe74'), +(3, 7, 'ZSCMZ', '78f0e678be997dd7053a43863ac454b8d88af0be913cc33089571dfee7430ce8'), +(4, 7, 'AWCUX', '33fb538ce17e0afc420d14612c97b7276c1ed58defad4d42bc3a330b433f2287'), +(5, 7, 'HKSWO', 'b4d98765257085fbf670f5bc2051d614b74c46cc3bc7d82254527f04676060a3'), +(6, 7, 'ASIFJ', 'a0c5074a566fdea09699eeddbe9bf7abe2c4c20cfaaf5c804450a98c5baa6c2a'), +(7, 7, 'CCKEV', '4ad84c1316ea4e468593ce463128e22de253edb8636716ffc56c30568abf7f85'), +(8, 7, 'KDVSJ', '8a0c38ea61bfc52f64b76e3435e44c9265a058fb122f7ad6a6148d56366ea92d'), +(9, 7, 'VCEWY', '5617b97c0cb13da11c88517c13fdeb9320595456ffba46d06792e2ddcd608f73'), +(10, 7, 'UKWVN', 'a25a4c5fcf09cec6d57cd1b4b3606fd137cbf502bc21dfaa84e34a0124766a1e'), +(11, 7, 'FFJDJ', '432a14853f6cb254828cef3dafa2698b43d4adebe71bd20af5eccc14fa9f1b96'), +(12, 7, 'NHCWO', 'ebda82bba05de9bf7bfd8b28c8bfc37c0613b6dde9b520c3b203c89ebbc9510c'), +(13, 7, 'IBRFK', '15589a0db29ce6bcc79033c34bce79807ee1e6e09d33d7a68516766f137e8287'), +(14, 7, 'FGLXK', 'b984d53fc57f3f4421e40b0843596d91d0c1495ecfb6971037cf328bb265ba8a'), +(15, 7, 'BUZRV', 'e3506725d92913d4ebf27ca7dd94e169f127620e106d8c807c831a6129a7161a'), +(16, 7, 'WKNTM', 'fd17d195ba3dc750b1f7ff1d6d8436a8d596927d0a4e8472f5cb8fd719c5f3ba'), +(17, 7, 'SPQOQ', '0d5d3e77cbfbe84a781644c2dcd11fd1d2be0f7e714bf6cc9b438cdd0b94e59f'), +(18, 7, 'SSRWE', '6ef4fd3bf0faf1d0d7b4e5098fd030124462ea9b2c4ab5df747f77edad9c627f'), +(19, 7, 'TIBAH', '61b66c8b6a094f6ab1048c7c7875391a707156fb364933ab7037548c578febed'), +(20, 7, 'EKOFT', 'a429abbb7cad9c018f3e9dfe117cfb6e7234f7a114fe01ce5c721349c9100206'), +(21, 7, 'GJTJW', 'f23bc3d2fa84fbd8c242dad16c7da3789acf2a39273315f977d67529e74589b5'), +(22, 7, 'XIPNP', '19961d49dfcdaf12f21c3ebe9cfeb2fc4eb271506c4c8a74ceb86244ab7cf408'), +(23, 7, 'FDFXQ', 'c30780d4dfc1c7f6ff13643b4ab2ee7f627ce6b17ffea9603a77c063cb810f91'), +(24, 7, 'HSCUZ', '7ff3d951b505db3191f5378fb44bcbdc9dca85eae08da318b104383b13e60c62'), +(25, 7, 'BYKBF', '82484ba0b110d43dc9be707cb4fe32ca44a689455a182933d116add9e7b75764'), +(26, 7, 'GNOKK', '057a38294c9f4bf06b5c7f5fd1152b1ba17fb3c742dfe96f17311b801a817ad8'), +(27, 7, 'WLSUB', '5c916e172a2a1f705a16263e12b45013c78ce200c13de57739f0427971aab1f0'), +(28, 7, 'DMTTJ', '8ea3e26a208dc8398d3583adff5e1028a8bf54f9988567e06ec8ec849a884e9e'), +(29, 7, 'OCFWD', '1e03b1c91df17b15fc06d14b0c0470b2d92c9a08714ae879d176b685d18699e9'), +(30, 7, 'CABWU', 'ea31fa3f56ea822837da6f0c4441741e12c963f16b2c76c5d3fc0ca7948f32e4'), +(31, 7, 'BUWRJ', 'b9172aff7027f8c72ca3c1815f04e57ec8d33138229dabf7a7e5d701b4b4fb7e'), +(32, 7, 'OULIX', '97fbf7090fad2bd900d597129e276eeb658bc309d94c03ab70e8b59a4ff62f5b'), +(33, 7, 'XCDYM', '8dcec2b55e2dbf8d44d7fd012e6c3a602d4618ae9f3558a6e3ef193940e2ccdf'), +(34, 7, 'LREGF', 'b30e2862a0a4e8058a602271a8e9e02ca81b344db55351f430c95bfbf289d372'), +(35, 7, 'DDLSP', '1896e6d21974a50c6915331be5b80c6ee0c3ddaf87b37fcce445077d47f73189'), +(36, 7, 'DTGHG', '855833a4f4d67cce130d3599caf61ea25fae668292656d9bd60dbcb501fdd9ef'), +(37, 7, 'BZWUE', '8bdc09434eb2be80911e5b5b436a6cdfe2d6c86dd2cdec3514e83d6f9c8cf5a7'), +(38, 7, 'LGDDS', 'a9ccdb71a78b4829b37e9b4c62f5706dfbac452fcc04163c31e5147ec5bbc833'), +(39, 7, 'ERXMY', '729beb8c9b588f92a97875037228ebd73a8dd22ce34920500f7793dbece6349b'), +(40, 7, 'VJGER', '5a4860c7597c43006d7493f220b3947f0b4a5840e0577718d4b320e88f5f89c0'), +(41, 7, 'LOXIE', '933d2dc041ac654d3c397aecd2eb55035fedfed67dad13ad40f49b244a5a1481'), +(42, 7, 'IHARA', '0c60f2e4c5b81609edbca8a79792595f43ab7c40d12fc9f81df0fb78b1a4744a'), +(43, 7, 'ZIQJQ', '8f374e108c45091aea35e0d4c74b7f2eb9697ade150593e66cb0361eed12d511'), +(44, 7, 'ZKUEW', 'cc45a1444e2a9fe42ce392050423cf2a7d82649ca99c72f3bd1107b9bd0ea657'), +(45, 7, 'BLDTO', '1c6e765a71503171c5ca60e5b557def304c601a537c6d11dd14398f6b19a9108'), +(46, 7, 'OZRQF', 'b90f84bc2bd318e8596ac824e12886a31ae777166b1ab44c7c2e66aeec548906'), +(47, 7, 'NWPBM', 'fd5b958ffc6a45f87ce06fdca087904d776252f03f25d284240d148446f58f11'), +(48, 7, 'OZDYC', 'bacfbf8119a8fa393c4fc038c7e5ff26aa29ceabd2a4b69cdbc823274674b11a'), +(49, 7, 'ETUZU', 'a298994fbf596e8c31bc6554f98bce963cf7df4ad75beecc42a341b914bcadab'), +(50, 7, 'CNQAB', 'ce216623099573f2de1048263f855e097a7fdbc715b5eca66ee01df592675d8a'), +(51, 7, 'OPIIW', '5833f8bd0146fa77afc8db5c0afae1c8fa14aa3c778ee487665380dbd064fc34'), +(52, 7, 'ACARQ', 'e45e9b1c3db2d291c5989ebf4035ce707acc909bc883061584a29998fde2a456'), +(53, 7, 'NMHYG', '3f42a35f55a6fbe59efe4b5d50234ded26ce6a6bb56b43292f1303ae28f5a403'), +(54, 7, 'ASKZD', '6838763e798c247b95efe4ca5e919eb095cc25654adb7e8ba93e4ba5087f8653'), +(55, 7, 'QMIJT', '5ee3e8beac1be4fa6afd60927dce814109a53185c57d5db356faedf89445e079'), +(56, 7, 'BBDZL', '8cc6b777e06d7b63f690ddb85c75600ca8e6defb7918800a09e9bfb28c261967'), +(57, 7, 'WKKYH', '669bf7ff1371d4999a426dd9d0e50a7148e22802456a710236c85dec5149086f'), +(58, 7, 'AFHJH', '229cab3a6ce9e0f451031cae1b96e95abb96da5f37016398a19df68b7ba1ac7f'), +(59, 7, 'CASXB', 'bed34b57fd452b7be6e4c0339949185023868025658534f7a614ce74a04547b5'), +(60, 7, 'LOXOZ', '26402659d53dd4656cde56026397c57d2046a928cd732c9647dc2f1322c721e3'), +(61, 7, 'ZTUNO', '420b4e5684138fd75173a9b4eabf097355a98bd343a54ac7430d88069505cea0'), +(62, 7, 'QGQNK', '6c10170d46ceb5aabfdbb8827a50816a3e10709e28c3b559f7fcfc74746635bb'), +(63, 7, 'SVIBS', '08b37cf1831d8f485c9956bd869cf7e5933378a04082090449821dafa21e0d73'), +(64, 7, 'RSVXL', '84eda88c1073ba85e043ab84a488651983fdead00f2e028ac822a1289304794d'), +(65, 7, 'EMESC', '3e1a9132319d0e9bcba98c3fef70eb002dfae1cda7ee4dcfdbe8fb331d8789a5'), +(66, 7, 'BBXON', '5597a04e965436d3bfa82a98429c08ce589a7737a55ad7f03cff5f75a8d9e592'), +(67, 7, 'NGLBK', 'e67031f5e890c03587261b27cf36b16f0f77fdc9f5b176f464cd9dbf72635b0d'), +(68, 7, 'MZHBC', '40dad1354fec6ad6845648ad4b509f596380fdbe95d72f49214ad4ff8a9fe7ed'), +(69, 7, 'OYEPB', '1992615a129ae81e55f8a6344e3d412d319f90e15537e8fbdbf4d9f49f32f041'), +(70, 7, 'RQFNK', 'a6c0168ef35869b18fd16e87220b79ce20e55f02738b0f3578752a344075c6be'), +(71, 7, 'MRUUS', '8a982f6776569ac16d27f1f6378f2bbee04268e6b62bc2b6d9c9ff1a9bc812d0'), +(72, 7, 'DJDVW', '4448ba4887beb9f880e858b812cb5cd9eecab4a1200ae95bee5b7f164d692235'), +(73, 7, 'SOJEJ', '6d88d67101e79c477f7ecc135eeba10125c8d5df6d4f26479f9da4504f88734a'), +(74, 7, 'YYSRC', '6fe67b9fbc3cb6a07a1f03b4ec1a59f06161d80a74b65b631279ad567c09d049'), +(75, 7, 'AJNMI', '97168f5566a1ff4deb1a9d1ac9a716667c7263c24b7396f3bf6d2efac715cc94'), +(76, 7, 'IVUSU', '24a6be400fb83f2e7bc7a0ff85f7c46da92e865cf4d07aea57f08c07b9bad6f0'), +(77, 7, 'VYPUB', 'f3df506f315afe55e23801ac10f09b265a1f16f25691f3c02b29df73bb1125e0'), +(78, 7, 'SJYUN', 'e587b7ba01cd028e22da6216eab12f1efd4742ed59b9d826018b7a307554d5cb'), +(79, 7, 'QRGTG', 'fcc626bf62245896c11bdec21ef0eca4c41b16ab031cb4b524679cef5de0afad'), +(80, 7, 'LXIFX', 'cd02c8d73eb1d480660ce0788c8d2fdf16c4871f4fe6f96da6496fcd0afe49b2'), +(81, 7, 'YXWTP', '99317d134fb5d7e7b08a990e03b618f1bacd4555f3df182554e2804e1fa9e342'), +(82, 7, 'SMEFT', '5383409fc2af704de10ada3476ac241b2f38c9d9ae29992a6fdde672b5bf7aa4'), +(83, 7, 'HUTUW', '057f8c6aa146e59e55054e9dc64d8a1c8e88740b12dfaced971954fe8ffb257a'), +(84, 7, 'DYCLY', '431c1f6e6cb3782d4befef80f2211822838e1e1bc3af7630cadf99a2b9ffe831'), +(85, 7, 'VBJWP', '6ec5e08c7041ff5ebcf5d954362bc26d70a3c9f35d040702e8d24baa353280a3'), +(86, 7, 'CZRPO', '4be28fbcc8341ce980fd7368e146ecb802b5b7cdcaacc181594f3130ba086342'), +(87, 7, 'JCNSP', '71bd9280397f4892f0ffd3323dead4212cfe77bceeaf9aab5dbcd18b2556d77a'), +(88, 7, 'EOKCA', '4441b025276f5abd0ca286079ee390451aa1cf1154abc6f539453de133961277'), +(89, 7, 'PZEAK', 'd63bd4317b3c7f1b0d760196523d3b4a1da643253e4afc9403e1417a04508136'), +(90, 7, 'ERIMX', '568f171451d75f3fcdcb1592deebd94f15f775ce0f73fedf7f0a93cddd40b8e7'), +(91, 7, 'NGVPC', 'efa33fff2175e3218261a168b055696d684ca286f8e714315403a3327eae8ade'), +(92, 7, 'MVONW', '15959b37cc1fc8e7a09c5b41fefbbe982bf43e7ec1c91fa9d4c25d5513087cc0'), +(93, 7, 'ZUHOD', 'caef75217a3dc8dcac3701dede3bcb91b6c955076d51300e86ebcf6573e3f639'), +(94, 7, 'YIATG', 'ed8881fcfbb6232a040d3726c7617c12d4a06bcc40bfa551b37cd6dbaf44f1e9'), +(95, 7, 'WFQGC', 'b5ed9282b5f6b0850b06a8225656a845f4d3e67efaeb6b24b3217c2703f15e98'), +(96, 7, 'NKZQL', '9f24a90c879534a77cab60f2e06ff34cb71f26494eb87a18f8b52c538b77b349'), +(97, 7, 'EMIWA', '0b070a27c9d3acd35de1054bc0cde8087491a154e8de78fe1ac8b907fe702925'), +(98, 7, 'WOYWY', 'd053eff105dc18ae3a7102cc7780a4e5c2da525eeb5d2c518e707bd3a8dc9322'), +(99, 7, 'ZBLQG', '08d5c78d8265d4a50af9077d04cef7003d0305127dcebe6296f38b6e1ac28a1d'), +(100, 7, 'STQYS', '0e46017afa2de78b817a151e41a37d3e5352a1616d0fc13c40ed3ac12580baa1'), +(101, 7, 'a', '5786289d418301e2584541b8fa484d4ec0f04dfabd36f6d15ab174b9c53811f8'), +(102, 7, 'machine1', '831e9024227e651fb4c17a9cfd050a9c68075bbb475ce2f731707d8371c8ab61'), +(103, 7, 'machine2', '5ab4012b23ddb474973eefa85afd21d03e5d4e07a8287c991e56fe013f36eace'), +(104, 7, 'machine3', '77d23601952121f65a1546eec81b08e81382deb5d015abb9e055d091899836ba'), +(105, 7, 'machine4', 'd65aa0434e18f41b4467ae2fc0a671e207753a238bb21ca922bfb8d9a87158c6'), +(106, 7, 'machine5', '1b615c263a166e6aea509260993f88da7e7575432e1cabc2007ce495b1e578ed'), +(107, 7, 'machine6', 'bfb1715589556a5e81dd0863bb3c5c0424149d8d0cae88cbf201ec7a52f3223f'), +(108, 7, 'machine7', '92db4c0c92acba35372a7b0741cd48565c57c7a8c0a2c07a39c75e329ba3a4a4'), +(109, 7, 'machine8', '82adcb46952b4308ed6c4c81972e4d46f3bc81e37fcdce49c89e8b9eccc77d03'), +(110, 7, 'machine9', '9070391dc61984bf52cf7c944d58e53cfa715d34fa30ca508df220e01db32302'), +(111, 7, 'machine10', 'c1c47684322f0c448ad8509f3e7a60b9bb20cd12adcf4abe0147d6f6ce777271'), +(112, 7, 'machine11', '0d8ecbf9a0b82a441d4afeab98579d23b44beaffe109d4bc081dc70cd86a4957'), +(113, 7, 'machine12', '47ca3abe1c46a43a4bf572ba08bc0f4322ac4dbc9017676ceaf578250fb05248'), +(114, 7, 'b', '123c966969541eb1aebc3183a28573caf7fc8f69eb8147273392f69ccd29ff2d'), +(115, 7, 'sd', '5b8f03b003ff40649949af3940ecd4e2aef82169f6bc3ae382be49a0b2141670'), +(116, 7, 'machine13', '7da985aaaca93d277baf0ddfb89274cda6785be46cec5f8c42772f08d876c964'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `machine_cluster` +-- + +CREATE TABLE `machine_cluster` ( + `id_machine_cluster` int(11) NOT NULL, + `id_warehouse` int(11) NOT NULL, + `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `machine_cluster` +-- + +INSERT INTO `machine_cluster` (`id_machine_cluster`, `id_warehouse`, `name`) VALUES +(2, 7, 'FirstMachineCluster'), +(3, 7, 'test'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `machine_cluster_merge` +-- + +CREATE TABLE `machine_cluster_merge` ( + `id_machine_cluster_merge` int(11) NOT NULL, + `id_machine_cluster` int(11) NOT NULL, + `id_machine` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `machine_cluster_merge` +-- + +INSERT INTO `machine_cluster_merge` (`id_machine_cluster_merge`, `id_machine_cluster`, `id_machine`) VALUES +(3, 2, 1), +(4, 2, 3); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `module` +-- + +CREATE TABLE `module` ( + `id_module` int(11) NOT NULL, + `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `module` +-- + +INSERT INTO `module` (`id_module`, `name`) VALUES +(1, 'module'), +(2, 'download'), +(3, 'upload'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `module_merge` +-- + +CREATE TABLE `module_merge` ( + `id_warehouse` int(11) NOT NULL, + `id_module` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `module_merge` +-- + +INSERT INTO `module_merge` (`id_warehouse`, `id_module`) VALUES +(7, 1), +(7, 2), +(7, 3); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pin` +-- + +CREATE TABLE `pin` ( + `id_pin_merge` int(11) NOT NULL, + `id_chip` int(11) NOT NULL, + `pin` int(11) NOT NULL, + `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `state` +-- + +CREATE TABLE `state` ( + `id_state` int(11) NOT NULL, + `id_pin_merge` int(11) NOT NULL, + `value` varchar(1) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- @@ -597,124 +390,448 @@ INSERT INTO `machine` (`id_machine`, `code`, `name`) VALUES -- Table structure for table `user` -- -CREATE TABLE IF NOT EXISTS `user` ( - `id_user` int(11) NOT NULL AUTO_INCREMENT, +CREATE TABLE `user` ( + `id_user` int(11) NOT NULL, + `id_warehouse` int(11) NOT NULL, `code` varchar(20) NOT NULL, `username` varchar(30) NOT NULL, `firstname` varchar(30) NOT NULL, `lastname` varchar(30) NOT NULL, `mail` varchar(50) NOT NULL, - `password` varchar(40) NOT NULL, - `status` int(11) NOT NULL, - PRIMARY KEY (`id_user`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ; + `password` varchar(64) NOT NULL, + `status` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- -INSERT INTO `user` (`id_user`, `code`, `username`, `firstname`, `lastname`, `mail`, `password`, `status`) VALUES -(1, '92-55-B9-B3', 'Daniels', 'Juliana', 'French', 'julianafrench@corecom.com', '0c77186b0906214f00df4e1aa038b096d3e8e46c', 1), -(2, '10-FE-BD-61', 'Lucas', 'Curry', 'Church', 'currychurch@corecom.com', '42e9f77558d9a97c9eac737473c318cd2a9f801e', 0), -(3, 'E0-11-41-DB', 'Liz', 'Geneva', 'Diaz', 'genevadiaz@corecom.com', '946690ac829f6b6bdb43484a7fc70a7b7585e2cf', 1), -(4, '23-77-93-8C', 'Jessie', 'Joann', 'Melendez', 'joannmelendez@corecom.com', 'f137079aa3c8badc4527a61d87e78c6fe3724710', 1), -(5, 'E7-DA-79-9B', 'Elaine', 'Fox', 'Kerr', 'foxkerr@corecom.com', 'aee4d3605daeac7403b6f8b12b89104f6d9205b6', 1), -(6, '0F-9F-56-50', 'Tameka', 'Nieves', 'Velasquez', 'nievesvelasquez@corecom.com', 'd2b3958520536e3dafc51434b556bb6448f558f5', 0), -(7, 'DB-A3-8A-D7', 'Katheryn', 'Rodriquez', 'Gomez', 'rodriquezgomez@corecom.com', '654cf9797684c177d34e9485404f11d950789b0e', 1), -(8, 'AF-BB-68-6B', 'Bowen', 'Bender', 'Holder', 'benderholder@corecom.com', '2939dd7052c52439454bc0339ba0e9d8af228248', 1), -(9, '39-DF-20-69', 'Flores', 'Beck', 'Murray', 'beckmurray@corecom.com', '844856a258b01518156453ac4fa4dda6dd1aa275', 1), -(10, '88-FA-FC-C3', 'Dominique', 'Tracy', 'Morin', 'tracymorin@corecom.com', '19b804d53a04953c907182e44aceaceb7282414c', 1), -(11, '75-E1-A6-9E', 'Deirdre', 'Phoebe', 'Pearson', 'phoebepearson@corecom.com', 'fca00c9b40a0a2f68f337e571e1545b9d4f7cb3c', 0), -(12, 'CC-28-79-89', 'Elvira', 'Latasha', 'Myers', 'latashamyers@corecom.com', 'da6ceb69b3586575e0d325dea73aca9c3419e63d', 1), -(13, 'E1-C8-AB-8C', 'Sonya', 'Shepherd', 'Mcgowan', 'shepherdmcgowan@corecom.com', '17866bc3dc4a9b755b4a7ea9d2dc3c993ab80fa2', 0), -(14, '7C-94-C4-9A', 'Patrick', 'Sandoval', 'Wolfe', 'sandovalwolfe@corecom.com', '289108619de517fb3e197d4dea616ee95b545209', 1), -(15, '36-3C-BB-F4', 'Tamra', 'Julie', 'Alvarado', 'juliealvarado@corecom.com', 'b8cdf51a55fef9748d818fe6d8edb6604a875d2d', 0), -(16, 'E7-52-B2-35', 'Lawanda', 'Erin', 'Hayes', 'erinhayes@corecom.com', '052eafc7c22fb21a825764c92fe7858689eeb055', 0), -(17, '94-E7-44-49', 'Susie', 'Jannie', 'Thomas', 'janniethomas@corecom.com', 'afe9fe189e1fd5be046d96496a61ff85e3a29ea9', 1), -(18, '89-64-A2-C2', 'Marlene', 'Janine', 'Mcgee', 'janinemcgee@corecom.com', 'fd525062225deb92fb69885ae69f8aa4d9371ece', 1), -(19, 'AB-E2-19-73', 'Lara', 'Janell', 'Wilcox', 'janellwilcox@corecom.com', '8038a9af1995278ae8db31ff6742d905a4ff7fce', 0), -(20, '88-13-39-95', 'Callahan', 'Gutierrez', 'Hale', 'gutierrezhale@corecom.com', '2b533291cfec2e0fca6f47e86ef7a2bb917e5c8b', 0), -(21, '6A-8B-F5-05', 'Ball', 'Lowery', 'Clarke', 'loweryclarke@corecom.com', '2479548e7716cab434e49ed76b8f6addcfab8c4a', 1), -(22, 'F2-8B-B7-52', 'Tiffany', 'Noelle', 'Grant', 'noellegrant@corecom.com', '101f4125a93abc3f0bfd9dd89c052a48adb221f7', 0), -(23, 'C2-97-8A-D1', 'Alisha', 'Dorsey', 'Cohen', 'dorseycohen@corecom.com', 'b6b867104c4b8ed66531eab451f9a5288756ecc0', 1), -(24, 'D1-CD-18-D5', 'Kristen', 'Mosley', 'Allen', 'mosleyallen@corecom.com', 'cfb4e905b928df0cab2189efe52fc70346ae5195', 0), -(25, 'BF-18-2B-5A', 'Hicks', 'Georgia', 'Henry', 'georgiahenry@corecom.com', 'ff9a6bf10d7a158ad03e798ad4e955d31ce9a4d3', 1), -(26, '3A-B9-55-4C', 'Miriam', 'Rosetta', 'Daugherty', 'rosettadaugherty@corecom.com', 'fcb448f82ee02e64d7e0127c7f7fd382e022bc49', 0), -(27, '6C-90-5E-0A', 'Vilma', 'Adrian', 'Small', 'adriansmall@corecom.com', '7a99bc00ef3323224b136d5558957f878aab139e', 0), -(28, '3B-FE-71-B1', 'Woods', 'Benton', 'Long', 'bentonlong@corecom.com', 'f245b196981b294e877780612cd3da6d0f74f6dd', 0), -(29, '94-B6-5A-D4', 'Atkinson', 'Atkins', 'Riddle', 'atkinsriddle@corecom.com', '89cc132f6ebc532af34fbdfa2731fa0daf133616', 0), -(30, 'C3-61-78-F2', 'Rogers', 'Jolene', 'Young', 'joleneyoung@corecom.com', '601d9c709aa4d6efeb016ef277036276ea4b8555', 0), -(31, '7D-2B-DB-BD', 'Kirsten', 'Bush', 'Luna', 'bushluna@corecom.com', '69f09a6fc580e5763bbc6880cd70cfc4698717ed', 0), -(32, 'D8-A3-FB-FC', 'Iva', 'Fran', 'Odom', 'franodom@corecom.com', '70711fb36f6d3dbc1fd498748a626981af650a40', 1), -(33, 'D8-3D-79-D5', 'Morales', 'Stevens', 'Vaughan', 'stevensvaughan@corecom.com', '75d7516da7b52fa0519a5aec6bdd211c52edb194', 0), -(34, 'CE-08-DB-1D', 'Kellie', 'Kristi', 'Gilliam', 'kristigilliam@corecom.com', '542fc3247f42b5410efc8ff73d262ad8c171b105', 1), -(35, 'F1-3C-AA-0D', 'Mullen', 'Trudy', 'Wolf', 'trudywolf@corecom.com', 'd22e60e193e038749dd350047502b079bf4d2c50', 1), -(36, '86-EE-8D-B3', 'Harper', 'Penelope', 'Harrell', 'penelopeharrell@corecom.com', 'e6de981876c42ef67e497011d0dc5c9395034f52', 0), -(37, '34-1E-E7-CC', 'Pollard', 'Pena', 'Roberson', 'penaroberson@corecom.com', '2cbb0389770e400c104682438009bed0799ddb6f', 0), -(38, '36-E8-D6-7F', 'Howell', 'Maryann', 'Keith', 'maryannkeith@corecom.com', '804ea34707d2a1a2894e28ddc75aa8ba83fe7819', 1), -(39, '23-77-0B-03', 'Lina', 'Allie', 'Matthews', 'alliematthews@corecom.com', 'ccca3b876b3524e174d1c24c3b7224b3f41ec80d', 0), -(40, '83-1B-E8-D4', 'Glover', 'Giles', 'Carpenter', 'gilescarpenter@corecom.com', 'bf8f5e17de22bafb10ccc27afacba146cc262350', 1), -(41, '59-4F-13-7B', 'Clarke', 'Newman', 'Mays', 'newmanmays@corecom.com', '66caf3c7fc1bd55a9097c76d13659857df0ff1b7', 0), -(42, '03-58-61-02', 'Daphne', 'Josephine', 'Ferguson', 'josephineferguson@corecom.com', '3e903e048bbe86ee5ada35a572390c7e643df98e', 0), -(43, '5F-CA-AD-DC', 'Maddox', 'Larson', 'Guthrie', 'larsonguthrie@corecom.com', 'e1c11d1b3695fc675ddf3cac2dc913fc952737a0', 1), -(44, '29-12-1D-1B', 'Ernestine', 'Heidi', 'Harris', 'heidiharris@corecom.com', '1720b86274ead53863213d6cd320e5cc2609a5c5', 0), -(45, 'E9-61-60-8B', 'Bernice', 'Ella', 'Golden', 'ellagolden@corecom.com', 'c590b0e4516ba73f35f5421c02fce9047ae09108', 0), -(46, '3B-27-8E-1F', 'Rhodes', 'Cantrell', 'Castaneda', 'cantrellcastaneda@corecom.com', 'b0bd979539d3c9ba099c5b749f2c639fa80a914f', 1), -(47, '49-DF-A5-C2', 'Nancy', 'Audrey', 'Wallace', 'audreywallace@corecom.com', '6bff6d80d87eb006c39c44326fd4f2b7594c3380', 1), -(48, 'B1-87-EA-BF', 'Abigail', 'Mcmillan', 'Savage', 'mcmillansavage@corecom.com', 'd439c7b5b005505f8331a669bf2f04f12978386a', 0), -(49, '63-7F-09-29', 'Levy', 'Shawna', 'Hicks', 'shawnahicks@corecom.com', 'c0777b820de8114eb075290b2f35f4d3ec422177', 1), -(50, 'C9-48-F7-62', 'Juarez', 'Lynn', 'Roth', 'lynnroth@corecom.com', '6394e386186c49a3da990c45343bec478500289b', 0), -(51, 'DF-CD-42-C9', 'Pruitt', 'Minerva', 'Tran', 'minervatran@corecom.com', '7279362c06f5c27996ea0297175419aaecc55632', 1), -(52, '9F-E7-39-8A', 'Richard', 'Norris', 'West', 'norriswest@corecom.com', '1bbe7ad5c8d5c782b3fd1a9a722bbcbe6f3aff76', 0), -(53, 'F5-AA-76-14', 'Lindsay', 'Wright', 'Delgado', 'wrightdelgado@corecom.com', 'd0a0e16b1531c8d2293da363696ae78d1ed3820c', 0), -(54, 'A5-C8-50-F5', 'Darla', 'May', 'Mcconnell', 'maymcconnell@corecom.com', '513f18a2598d5572812017914a9ad93728947f58', 1), -(55, 'A0-0E-D0-AC', 'Nolan', 'Herrera', 'Randall', 'herrerarandall@corecom.com', '4ff09e0c08b128bfa168adc3363e2056f9329787', 0), -(56, 'FF-1F-FD-20', 'Zelma', 'Gwendolyn', 'Yates', 'gwendolynyates@corecom.com', 'e9cfd7299f85e5b27c397752065debe04ff83349', 1), -(57, '7D-0D-95-B1', 'Avila', 'Ramos', 'Benton', 'ramosbenton@corecom.com', 'd8c9499b74c890c880ec0fdef5bee7676d719701', 0), -(58, '9D-5A-95-A9', 'Etta', 'Graves', 'Horne', 'graveshorne@corecom.com', '9ba3f432d027249c532dd3f0ae87c35b6b7f7bc2', 0), -(59, 'B9-3C-5A-74', 'Ava', 'Maribel', 'Lawrence', 'maribellawrence@corecom.com', '3155d09a5314aebf3a65effcacc235b16ea9a8b6', 0), -(60, 'E0-B9-0F-F5', 'Stein', 'Peterson', 'Lindsey', 'petersonlindsey@corecom.com', '6754a730b74fa45f03ad67c574c87b9039e07d7f', 1), -(61, 'BD-A1-69-F0', 'Tommie', 'Lee', 'Chen', 'leechen@corecom.com', '28374a860c16c25aaa2089d6334e9d4d6b003dfb', 0), -(62, '81-8B-3B-DD', 'Holmes', 'Doreen', 'Ramos', 'doreenramos@corecom.com', 'c87af6c6edb145007b3ff203d3385f7421c32160', 1), -(63, '8D-C8-12-6C', 'Todd', 'Sherri', 'Knight', 'sherriknight@corecom.com', 'cba287d8f2e7259ab0f224684edfa62ab2662021', 1), -(64, '12-74-96-57', 'Henry', 'Kane', 'Martinez', 'kanemartinez@corecom.com', 'debec5f18c49d3c6123fdb74176aa439ac2ec3f2', 0), -(65, '5E-CA-06-D0', 'Liliana', 'Eleanor', 'Molina', 'eleanormolina@corecom.com', '85b651279360c82b0661264f92e3b33f82267b74', 0), -(66, '46-D5-1C-58', 'Angelita', 'Pennington', 'Simpson', 'penningtonsimpson@corecom.com', '2ee7dfa7b527da1af08ccea9a815fe516a986cb4', 0), -(67, '04-D8-00-77', 'Mcintyre', 'Tami', 'Clements', 'tamiclements@corecom.com', '4a454f5c4963285907e449c277b8c4be6cd44f6f', 0), -(68, '85-F4-B2-64', 'Baker', 'Noreen', 'Chang', 'noreenchang@corecom.com', 'ba082820d55b25751169c71ac06a137b08ef6866', 1), -(69, '99-82-48-DC', 'Barbra', 'Charlene', 'Meadows', 'charlenemeadows@corecom.com', 'e8b1250d2fba79847af5445d631d270221543e8a', 1), -(70, '51-FC-6F-FB', 'Delacruz', 'Lois', 'Ware', 'loisware@corecom.com', '656896e513e69d29d81479e8fe830cc8b85f48fb', 0), -(71, 'C5-20-CB-4B', 'Wall', 'Mcgee', 'Washington', 'mcgeewashington@corecom.com', 'f610e643113d78e7101063afbc6b77b05c4005e6', 1), -(72, 'BA-25-6F-EA', 'Wilkinson', 'Langley', 'Oneil', 'langleyoneil@corecom.com', 'f332c321ca4b5d9cd1a774679d7a30c3e8298bb9', 0), -(73, 'D6-9E-A2-80', 'Rosalie', 'Frost', 'Floyd', 'frostfloyd@corecom.com', '0bf8898efd21e0adbdafa513e4e4ea37ea925485', 0), -(74, '26-C4-EB-5D', 'Mae', 'Diaz', 'Pruitt', 'diazpruitt@corecom.com', '9dbc88fe1d357fd94ae4f0fa6b919ee73470e0f0', 1), -(75, '8A-BF-C9-3D', 'Bernadine', 'Bullock', 'Tucker', 'bullocktucker@corecom.com', '1aa94f1b8b41d736ccf9a037848450d5a1e974e8', 0), -(76, '17-4B-80-EC', 'Norman', 'Foster', 'Hyde', 'fosterhyde@corecom.com', '299f39186ea493d1400a326758281d0c84b7e5cb', 0), -(77, 'C8-5B-C6-4A', 'Terra', 'Hahn', 'Larsen', 'hahnlarsen@corecom.com', 'dd55505b18e64620aa99af77829fdc4692e0483a', 0), -(78, 'BD-6F-75-F0', 'Ina', 'Payne', 'Hawkins', 'paynehawkins@corecom.com', '278594b59cf1ca074c2c85c4fa8c4db7724b353d', 1), -(79, 'C4-DB-18-8B', 'Sabrina', 'Leach', 'Cantrell', 'leachcantrell@corecom.com', '903fef98051c203813685c59db1273e82d6fa8f1', 0), -(80, '23-4D-56-D9', 'Karla', 'Roxanne', 'Bullock', 'roxannebullock@corecom.com', '354d2ecc14a19d5c401ac3c6c970565e6cbd4590', 1), -(81, '04-08-EB-92', 'Clements', 'Munoz', 'Brooks', 'munozbrooks@corecom.com', '27c880549bb385604ba72f6b8b9afc088d29c277', 0), -(82, 'EB-DB-FD-87', 'Mccullough', 'Sofia', 'Farley', 'sofiafarley@corecom.com', '00fd33711271fe613b1c783d328ef12ddbb83fea', 1), -(83, '83-F4-17-0D', 'Cheri', 'Trina', 'Walls', 'trinawalls@corecom.com', '314eb5077e644e54f7908255ab69a8a182583ec7', 1), -(84, 'E7-7D-E0-52', 'Mcclain', 'Price', 'Gentry', 'pricegentry@corecom.com', 'edf9c6bb1bed27911dd4889710e98e166e446471', 1), -(85, '0F-6C-B6-F9', 'Leona', 'Adriana', 'Williamson', 'adrianawilliamson@corecom.com', '1a094070343af634058ca8c95b243d391419e12c', 1), -(86, '2D-C2-9C-32', 'Roslyn', 'Garner', 'Armstrong', 'garnerarmstrong@corecom.com', '1d2d3b593858da028c39945a76c828188a6ca0c6', 0), -(87, '1C-5E-93-06', 'Castillo', 'Rachael', 'Trevino', 'rachaeltrevino@corecom.com', '7fd283709ad4542bcc148916f5c5a7040ee6b563', 0), -(88, '6F-49-74-A5', 'Helen', 'Samantha', 'Gates', 'samanthagates@corecom.com', '1d6dfe0d2fccf591b71b9c087c00bdb7788b37ca', 1), -(89, '54-65-6C-9F', 'Olson', 'Sweet', 'Barry', 'sweetbarry@corecom.com', 'bf4c289377f60b992ac4c0cb6f7ddf7dc36d42b7', 1), -(90, 'BC-1E-40-1A', 'Ann', 'Evans', 'Howe', 'evanshowe@corecom.com', 'e9ac12df8e8630ea8b7f7e8aa5f2a84ae04d4e07', 1), -(91, 'F1-D0-5D-4E', 'Haynes', 'Russell', 'Shannon', 'russellshannon@corecom.com', '189f897b61dc6ac5ddde070c49c023f2ec0c3740', 1), -(92, 'D5-E3-43-71', 'Malinda', 'Alvarez', 'Singleton', 'alvarezsingleton@corecom.com', '8b251913ab48631ac945f0c008dd9ca1a6930372', 0), -(93, '23-41-81-AB', 'Cochran', 'Mcgowan', 'Mclaughlin', 'mcgowanmclaughlin@corecom.com', 'b7fd671317e8b8bb1dab53dbe97095fcb43e8d69', 0), -(94, '28-86-38-25', 'Winters', 'Eugenia', 'Anthony', 'eugeniaanthony@corecom.com', '59055f429896e2747f4684f81ccfc1f3c3959750', 1), -(95, 'C7-7C-E2-41', 'Richardson', 'King', 'Rodriguez', 'kingrodriguez@corecom.com', '1e7c28afccf9a495a3dca7373d5033ee1d104784', 1), -(96, '6B-1B-5E-A7', 'Walker', 'Montoya', 'Meyer', 'montoyameyer@corecom.com', 'f3e6cba691792c642574c4aa4ab75b751d701a95', 0), -(97, '48-03-38-1F', 'Witt', 'Larsen', 'Strong', 'larsenstrong@corecom.com', 'd6319a099f7a6577b548dba182f350562c0312c3', 0), -(98, 'E0-4B-04-F6', 'Valarie', 'Craft', 'Klein', 'craftklein@corecom.com', 'fb303aa403c8312e63b2b06c1d6d3dc734167497', 0), -(99, '2F-7D-0A-51', 'Jessica', 'Delgado', 'Campos', 'delgadocampos@corecom.com', '6db5f7b5415a933416a7114bccb6663bc9be59c8', 0), -(100, '91-D4-7E-65', 'Velez', 'Mcmahon', 'Lott', 'mcmahonlott@corecom.com', 'f01205307be8c618083e0e7bd34b4f9e42aa7b8a', 1); +INSERT INTO `user` (`id_user`, `id_warehouse`, `code`, `username`, `firstname`, `lastname`, `mail`, `password`, `status`) VALUES +(1, 7, '92-55-B9-B3', 'Daniel', 'Juliana', 'French', 'julianafrench@corecom.com', '', 1), +(2, 7, '10-FE-BD-61', 'Lucas', 'Curry', 'Church', 'currychurch@corecom.com', '0e57f5dba3ebeefbfeaa0e6581a94bfd8ff54339f068b6e0641e60533ee74a46', 0), +(3, 7, 'E0-11-41-DB', 'Liz', 'Geneva', 'Diaz', 'genevadiaz@corecom.com', '2cc28fd972f8bfb25a0508b1a33c7919a1132e939c19b084686ee3d855563283', 1), +(4, 7, '23-77-93-8C', 'Jessie', 'Joann', 'Melendez', 'joannmelendez@corecom.com', '0071537b25e1d5288d5ae771789e3e8738c312207bceea6368cd49c906b48efc', 1), +(5, 7, 'E7-DA-79-9B', 'Elaine', 'Fox', 'Kerr', 'foxkerr@corecom.com', '9a8d00ce9b7962b823c60c135bce28a318f583c2064e0a64afc566557aa785c2', 1), +(6, 7, '0F-9F-56-50', 'Tameka', 'Nieves', 'Velasquez', 'nievesvelasquez@corecom.com', 'e5e056ced450f575f26a8c5fb9379586fa591096e4a9b7a881f8880ace22364e', 0), +(7, 7, 'DB-A3-8A-D7', 'Katheryn', 'Rodriquez', 'Gomez', 'rodriquezgomez@corecom.com', '29caeb46f540ea85db87e938933eeeb857a48bc513353d8f6b742909b670fd73', 1), +(8, 7, 'AF-BB-68-6B', 'Bowen', 'Bender', 'Holder', 'benderholder@corecom.com', 'ad74e70b6076c80b3f217afa0b3545eee1436b0d6084f39993630779b8cecf10', 1), +(9, 7, '39-DF-20-69', 'Flores', 'Beck', 'Murray', 'beckmurray@corecom.com', '6b3fc90bfd07b05ad1de66c052e60535fafbc5908e1feabb84e3e50659b0d11c', 1), +(10, 7, '88-FA-FC-C3', 'Dominique', 'Tracy', 'Morin', 'tracymorin@corecom.com', '522f2b066cd361dc2bf0a389175bad8a9925cdcbe8a2b083d09b82dd35ef569a', 1), +(11, 7, '75-E1-A6-9E', 'Deirdre', 'Phoebe', 'Pearson', 'phoebepearson@corecom.com', 'd83ca2be0c3d28d42e140f7c9bd3e0b6573b4cbb7e1cacd1f14ed54c78aee23f', 0), +(12, 7, 'CC-28-79-89', 'Elvira', 'Latasha', 'Myers', 'latashamyers@corecom.com', '58f3a6e5f0db17ffdd9e694e12ec0c4b68cbea472972e7a60730edd3174fc748', 1), +(13, 7, 'E1-C8-AB-8C', 'Sonya', 'Shepherd', 'Mcgowan', 'shepherdmcgowan@corecom.com', '263fc014063ef5b1a66bbb157fc0866e4c7058a6cf5e19bafa39fa0efe894ead', 0), +(14, 7, '7C-94-C4-9A', 'Patrick', 'Sandoval', 'Wolfe', 'sandovalwolfe@corecom.com', '50500b7c792015704cbc4c37951dba0bba636749d280d911556cd8f1e6b293d5', 1), +(15, 7, '36-3C-BB-F4', 'Tamra', 'Julie', 'Alvarado', 'juliealvarado@corecom.com', '509a2ebdea8b69c45effb7fefd52511a9dca56cd8781060657f5ce6f14e6e2ed', 0), +(16, 7, 'E7-52-B2-35', 'Lawanda', 'Erin', 'Hayes', 'erinhayes@corecom.com', 'caf19aacbdfac0b075b4172a72427ea12b9e9f868032cccdece2f9f7f8a64632', 0), +(17, 7, '94-E7-44-49', 'Susie', 'Jannie', 'Thomas', 'janniethomas@corecom.com', 'b925d40c2331eb56075b87552a6b58bbda2015df6aeab9fca56bcb27ff209844', 1), +(18, 7, '89-64-A2-C2', 'Marlene', 'Janine', 'Mcgee', 'janinemcgee@corecom.com', 'a1c85ecc756ff7da559f142dd2d82e542fd036108e08de6c58de7c4f07d310e2', 1), +(19, 7, 'AB-E2-19-73', 'Lara', 'Janell', 'Wilcox', 'janellwilcox@corecom.com', 'e6cf26a9f4b0a905474c2aa82c01c093c03c6dcf09836da13d29e08bbc1b85c6', 0), +(20, 7, '88-13-39-95', 'Callahan', 'Gutierrez', 'Hale', 'gutierrezhale@corecom.com', 'fdc9ac5b9ce6abae8d321d7b4f90a3cd0fc8d09c41f065090d618c3716a269ca', 0), +(21, 7, '6A-8B-F5-05', 'Ball', 'Lowery', 'Clarke', 'loweryclarke@corecom.com', '6d4751eee202f1c6f760ad7866f5b4d2611a37170be69f80d831be33498d3e1d', 1), +(22, 7, 'F2-8B-B7-52', 'Tiffany', 'Noelle', 'Grant', 'noellegrant@corecom.com', 'f787d28aa8aff320813b00832825a54d34ce8530d8be80671887199ba7177363', 0), +(23, 7, 'C2-97-8A-D1', 'Alisha', 'Dorsey', 'Cohen', 'dorseycohen@corecom.com', 'cd185541aa6fb3de981fb992d8fec1c8e9115cac962779aff14ce0af4d69f47a', 1), +(24, 7, 'D1-CD-18-D5', 'Kristen', 'Mosley', 'Allen', 'mosleyallen@corecom.com', '206bbb9e3ed995b4cf45720745e30ca4029cfc1d926a806246312dad5b2f0279', 0), +(25, 7, 'BF-18-2B-5A', 'Hicks', 'Georgia', 'Henry', 'georgiahenry@corecom.com', '52d5454c3bed5ce167c6f89d3bddd14b836c02d222e9c971ecdb32684905625b', 1), +(26, 7, '3A-B9-55-4C', 'Miriam', 'Rosetta', 'Daugherty', 'rosettadaugherty@corecom.com', 'ab4aa0d3eaf5d2c1264aadbaf44adcdebd844cecfd490b91e5b27212f2a0b614', 0), +(27, 7, '6C-90-5E-0A', 'Vilma', 'Adrian', 'Small', 'adriansmall@corecom.com', '23d7b3b3ca30ba04dfe8d43e5749c33e9bf3f9845ab72c4c78cb1eda6cf0cd44', 0), +(28, 7, '3B-FE-71-B1', 'Woods', 'Benton', 'Long', 'bentonlong@corecom.com', 'f476f76199b181565c222a571f587a584ab33cae78ce5a0aae231e6a1ae24fe2', 0), +(29, 7, '94-B6-5A-D4', 'Atkinson', 'Atkins', 'Riddle', 'atkinsriddle@corecom.com', '5b3c944a8a39fdcae17e083eee98c0f6ed3e9d480125bb3c8fc14c8500a550dd', 0), +(30, 7, 'C3-61-78-F2', 'Rogers', 'Jolene', 'Young', 'joleneyoung@corecom.com', '698a013d596a35f0f9b87414a592fc24dd7649c77727424c0d40ed05976bc1c8', 0), +(31, 7, '7D-2B-DB-BD', 'Kirsten', 'Bush', 'Luna', 'bushluna@corecom.com', 'fe6c95cf1d86ac305f56a31725e864efc1874cb3d988b9179f609486e2f79133', 0), +(32, 7, 'D8-A3-FB-FC', 'Iva', 'Fran', 'Odom', 'franodom@corecom.com', 'ca0e9ad15d84d7b21fc11606ddefd3b6f50df6f1b643f1e878b68d5aff4c9286', 1), +(33, 7, 'D8-3D-79-D5', 'Morales', 'Stevens', 'Vaughan', 'stevensvaughan@corecom.com', '967e5bdebae7a0aa92b8ae163416cc5a0a79fd0ae0bf02ab76bc7e2152274141', 0), +(34, 7, 'CE-08-DB-1D', 'Kellie', 'Kristi', 'Gilliam', 'kristigilliam@corecom.com', 'bacde83816dd285aa30fc40a2389700fb1389cdb940eda4b39b179bf6107fcac', 1), +(35, 7, 'F1-3C-AA-0D', 'Mullen', 'Trudy', 'Wolf', 'trudywolf@corecom.com', '00d5c8ed6df881f3e01a3f873ecb77d891a0373f8bb75cb7a56769edcd0d96ea', 1), +(36, 7, '86-EE-8D-B3', 'Harper', 'Penelope', 'Harrell', 'penelopeharrell@corecom.com', '6d59fb7ba49a63b2997bfc3a1a8a27285142a97bc159250248ff920e1d75a87b', 0), +(37, 7, '34-1E-E7-CC', 'Pollard', 'Pena', 'Roberson', 'penaroberson@corecom.com', '9ccab3c5efb91a765369afa1f6dceca4f0a3ded5a8d084a1ffe027e5d056f2b0', 0), +(38, 7, '36-E8-D6-7F', 'Howell', 'Maryann', 'Keith', 'maryannkeith@corecom.com', '11c2fa89ab484b8148879faeddd803bc2cce09e21c7c44b04b3975f6845bd23d', 1), +(39, 7, '23-77-0B-03', 'Lina', 'Allie', 'Matthews', 'alliematthews@corecom.com', '3f8b152662136e1955a332a4705726a0578d122110b9fb7d9cba32e318afe1cc', 0), +(40, 7, '83-1B-E8-D4', 'Glover', 'Giles', 'Carpenter', 'gilescarpenter@corecom.com', '805ee7ae37fdbb902a83d1fbac7424f1155b40a8d4310c5e731e7ccc626ab930', 1), +(41, 7, '59-4F-13-7B', 'Clarke', 'Newman', 'Mays', 'newmanmays@corecom.com', 'c742fa61af7630fddb07ac7988dbea1b7c438ae83e2d31b4e87bd7620bca23c4', 0), +(42, 7, '03-58-61-02', 'Daphne', 'Josephine', 'Ferguson', 'josephineferguson@corecom.com', 'c3dfa4a96e76c67b5549a5a2f3c5a79d5af83c715f98e3c42d382ce42017695a', 0), +(43, 7, '5F-CA-AD-DC', 'Maddox', 'Larson', 'Guthrie', 'larsonguthrie@corecom.com', '641e419f1158abfa7f9cdb0523c6ad6e769677b56114827f30a48ec10db509ee', 1), +(44, 7, '29-12-1D-1B', 'Ernestine', 'Heidi', 'Harris', 'heidiharris@corecom.com', 'a6ca1e53b39d7972407bad060123ff100ef6935e676dba9f02049538f92ba102', 0), +(45, 7, 'E9-61-60-8B', 'Bernice', 'Ella', 'Golden', 'ellagolden@corecom.com', 'c7c215af95acf07f7a24ae51b214498e47e8ed479c9274c5bc385d8c77c76431', 0), +(46, 7, '3B-27-8E-1F', 'Rhodes', 'Cantrell', 'Castaneda', 'cantrellcastaneda@corecom.com', '1097e3649146b44485928c23090f06f78647fc6269631281121ebc75002fe27c', 1), +(47, 7, '49-DF-A5-C2', 'Nancy', 'Audrey', 'Wallace', 'audreywallace@corecom.com', '899759b3816f12d1f9791c7c8683a033da8aded0b21eb548184dfee334ecf4e9', 1), +(48, 7, 'B1-87-EA-BF', 'Abigail', 'Mcmillan', 'Savage', 'mcmillansavage@corecom.com', '5b9d095a7fcc3285a654d9c359ea6b94b351da015e9271b52f1ae1e7b369249e', 0), +(49, 7, '63-7F-09-29', 'Levy', 'Shawna', 'Hicks', 'shawnahicks@corecom.com', '934faf21066def091deb8081b71f07663972b9a48ab9fee2b15b8652f5a57ad9', 1), +(50, 7, 'C9-48-F7-62', 'Juarez', 'Lynn', 'Roth', 'lynnroth@corecom.com', '01cb75b22cabff705eae5d978a98bb6a56004f336562c2c7359ea23ec368a745', 0), +(51, 7, 'DF-CD-42-C9', 'Pruitt', 'Minerva', 'Tran', 'minervatran@corecom.com', '445e2881a1487390aa478f86c9b6b3b33e53fb1b35f10d85fc104c922fe38884', 1), +(52, 7, '9F-E7-39-8A', 'Richard', 'Norris', 'West', 'norriswest@corecom.com', '9f1069524695e2dca850d51a5731b9c954fbe3c7ff2215503d57bd69203902b2', 0), +(53, 7, 'F5-AA-76-14', 'Lindsay', 'Wright', 'Delgado', 'wrightdelgado@corecom.com', '3d2018a268d8b5569b01fb2101071eb4fff6ad0d4f6355d3d84dbe1ff128db5f', 0), +(54, 7, 'A5-C8-50-F5', 'Darla', 'May', 'Mcconnell', 'maymcconnell@corecom.com', 'd98c6bb800e3dd324dd51343e92aa81afbd9b9c36551ce82f72d6ac5c1e52722', 1), +(55, 7, 'A0-0E-D0-AC', 'Nolan', 'Herrera', 'Randall', 'herrerarandall@corecom.com', 'ca19c4b8af326aaef6a887e6eebf01801acbd531b64ecf7e9b182362d17e8c3e', 0), +(56, 7, 'FF-1F-FD-20', 'Zelma', 'Gwendolyn', 'Yates', 'gwendolynyates@corecom.com', 'd3542d993a846b6031dd0a090dcb408517f735dbf40ad14cf755e13960cf1f2a', 1), +(57, 7, '7D-0D-95-B1', 'Avila', 'Ramos', 'Benton', 'ramosbenton@corecom.com', '8bc57eabc950a3c68ae52a8a1159b2d5fa57b8be379c2a8ad75c4930a7d4c92f', 0), +(58, 7, '9D-5A-95-A9', 'Etta', 'Graves', 'Horne', 'graveshorne@corecom.com', '70c786fe597b2a0c8e8c669f25faadf480a515b87696575c8b697345a02aea64', 0), +(59, 7, 'B9-3C-5A-74', 'Ava', 'Maribel', 'Lawrence', 'maribellawrence@corecom.com', '83dc0cc049265c2578f298b5d44991d430d36140ca49d37212728835bd878bcd', 0), +(60, 7, 'E0-B9-0F-F5', 'Stein', 'Peterson', 'Lindsey', 'petersonlindsey@corecom.com', '9ea1d380a6ccd046773cb0ef2702ab88f7d0be385da44efb7e12fa053afbefbb', 1), +(61, 7, 'BD-A1-69-F0', 'Tommie', 'Lee', 'Chen', 'leechen@corecom.com', '849cd3463470a86ec830993fe23c136f637068fdb2654d4a6a634885cffbec7e', 0), +(62, 7, '81-8B-3B-DD', 'Holmes', 'Doreen', 'Ramos', 'doreenramos@corecom.com', '44fea8b2f0d482038e9a724f791b2b25248b3a7aa89e27248d9ff98cf404bfa6', 1), +(63, 7, '8D-C8-12-6C', 'Todd', 'Sherri', 'Knight', 'sherriknight@corecom.com', '488d578e26d42ce2a1cbd0a9cd82571a23eb26f1fe8e4d25b671dd00e63ad7f6', 1), +(64, 7, '12-74-96-57', 'Henry', 'Kane', 'Martinez', 'kanemartinez@corecom.com', '4b7b475187554cd809c6e6fe61759f994b33c7ed03ca9d7de5299f1cb9a4ddb0', 0), +(65, 7, '5E-CA-06-D0', 'Liliana', 'Eleanor', 'Molina', 'eleanormolina@corecom.com', '3b2421e7d06dc4e85dd33d515b68efafe2e92a0138fb3fdd1f91b32752005c42', 0), +(66, 7, '46-D5-1C-58', 'Angelita', 'Pennington', 'Simpson', 'penningtonsimpson@corecom.com', '73ef7cc9be7860a0c86d906bb62b7c7f3f3c7c28eef613ce7243d97936e38fb0', 0), +(67, 7, '04-D8-00-77', 'Mcintyre', 'Tami', 'Clements', 'tamiclements@corecom.com', 'c9b22eb1eb8034e94079fdd8f6ccb8e5b4ce707017b8cf26b745f42dcb3fe88f', 0), +(68, 7, '85-F4-B2-64', 'Baker', 'Noreen', 'Chang', 'noreenchang@corecom.com', '36d2d1cf20d8fd302205b9b4cb04d5b704f9250b06a23526cffc4e70fb4a42bd', 1), +(69, 7, '99-82-48-DC', 'Barbra', 'Charlene', 'Meadows', 'charlenemeadows@corecom.com', '616da459ec3a130db7cc99dcf9e230d7a2df1da7222bb35490f43d4e444e4407', 1), +(70, 7, '51-FC-6F-FB', 'Delacruz', 'Lois', 'Ware', 'loisware@corecom.com', 'e2c39c2ec1e4011d1b59e3f30f07d5bc1e5ccdf02e2d996e4f2792217fe7b7f8', 0), +(71, 7, 'C5-20-CB-4B', 'Wall', 'Mcgee', 'Washington', 'mcgeewashington@corecom.com', 'c3c572cb424f836728f5b8d5b15043579e6af41497d08237975e11f7828542ad', 1), +(72, 7, 'BA-25-6F-EA', 'Wilkinson', 'Langley', 'Oneil', 'langleyoneil@corecom.com', 'adfe5d23dee3bd2d30da3022f7debfdb388dbe2d122eade14be5973d76a266fb', 0), +(73, 7, 'D6-9E-A2-80', 'Rosalie', 'Frost', 'Floyd', 'frostfloyd@corecom.com', '9978340417cb4721fe1983871c284b68c4359b8f0e77f4e499b14c1f3156a4b3', 0), +(74, 7, '26-C4-EB-5D', 'Mae', 'Diaz', 'Pruitt', 'diazpruitt@corecom.com', 'c3f77a92bb6d0da44e9243858135d5042e2fa77d0fb630b67c17a3941b7a42ff', 1), +(75, 7, '8A-BF-C9-3D', 'Bernadine', 'Bullock', 'Tucker', 'bullocktucker@corecom.com', 'ce9df98b273cbd5205a2fdd0f5ad3d93afab10c91fdf1967c15d442e088161f5', 0), +(76, 7, '17-4B-80-EC', 'Norman', 'Foster', 'Hyde', 'fosterhyde@corecom.com', '89b9eed1a560e40334af8b64b050a494bf7433a1fd10a07784f12af153098674', 0), +(77, 7, 'C8-5B-C6-4A', 'Terra', 'Hahn', 'Larsen', 'hahnlarsen@corecom.com', '101e478b4c4e0dbfadf30079357c78e7c4c7e3654a92a62e3aec46e3371bc872', 0), +(78, 7, 'BD-6F-75-F0', 'Ina', 'Payne', 'Hawkins', 'paynehawkins@corecom.com', '9736792d6223377936c9020867c09c7db16317396468752f592f5b5a09eff46e', 1), +(79, 7, 'C4-DB-18-8B', 'Sabrina', 'Leach', 'Cantrell', 'leachcantrell@corecom.com', '9d4d99a0ac60be003bb0ddbb70e71a0f5b65cad9bddccefd061b15e3bb273eb6', 0), +(80, 7, '23-4D-56-D9', 'Karla', 'Roxanne', 'Bullock', 'roxannebullock@corecom.com', '7c54d10bbcce20138805774d828e08d02cedc0ecf6afbf0ea7284560533e1052', 1), +(81, 7, '04-08-EB-92', 'Clements', 'Munoz', 'Brooks', 'munozbrooks@corecom.com', '8c80ec8e8dbeb1294a79223a675b78904ed7b0b81f2f17e870a9c8b12d8da7ef', 0), +(82, 7, 'EB-DB-FD-87', 'Mccullough', 'Sofia', 'Farley', 'sofiafarley@corecom.com', '674a915755c96d111fba0e45e35cb1289f834cc757fa04422fcb6a64a88d6590', 1), +(83, 7, '83-F4-17-0D', 'Cheri', 'Trina', 'Walls', 'trinawalls@corecom.com', '38efbd198cdf57955c644795878d7ef66f96d2093c1548cbb7cbb5fabad51f13', 1), +(84, 7, 'E7-7D-E0-52', 'Mcclain', 'Price', 'Gentry', 'pricegentry@corecom.com', '94d0c9e416456a3f1ca1d81da1694a4f6e5bc0c0fa722dc4f253eeb7592db248', 1), +(85, 7, '0F-6C-B6-F9', 'Leona', 'Adriana', 'Williamson', 'adrianawilliamson@corecom.com', '33c82e702d9b1c28f562d0b8d22d74047d65b14f365facad59c38dbb36767d6f', 1), +(86, 7, '2D-C2-9C-32', 'Roslyn', 'Garner', 'Armstrong', 'garnerarmstrong@corecom.com', '128a8d2f91baed2122fcdbc4f8763efb90e89aba2c15ed905339c0a47981ecbd', 0), +(87, 7, '1C-5E-93-06', 'Castillo', 'Rachael', 'Trevino', 'rachaeltrevino@corecom.com', '11512db73072ef67054ee88217a5015b05906d22d34c34ec3ba9774923cb6099', 0), +(88, 7, '6F-49-74-A5', 'Helen', 'Samantha', 'Gates', 'samanthagates@corecom.com', '183928ee4f7205ac682495b9153d37927845132ad61545280727f89d4bb9a69c', 1), +(89, 7, '54-65-6C-9F', 'Olson', 'Sweet', 'Barry', 'sweetbarry@corecom.com', '4705a5e4f64ca7e0262bd181f22dc6ab166a289dc4e74ba771771c0b8205595b', 1), +(90, 7, 'BC-1E-40-1A', 'Ann', 'Evans', 'Howe', 'evanshowe@corecom.com', 'd42123bc5430311a009d813bd6c0afbf231326e9b75a692c37079482d563a9e7', 1), +(91, 7, 'F1-D0-5D-4E', 'Haynes', 'Russell', 'Shannon', 'russellshannon@corecom.com', '0ae662fc1ff74985777e30711897766a0dc3a93e39c340348cdc67e69a65860a', 1), +(92, 7, 'D5-E3-43-71', 'Malinda', 'Alvarez', 'Singleton', 'alvarezsingleton@corecom.com', '5ac37c701eca893d9eec96c887776a52ae9a48093a92493b01d62d41f6f56704', 0), +(93, 7, '23-41-81-AB', 'Cochran', 'Mcgowan', 'Mclaughlin', 'mcgowanmclaughlin@corecom.com', 'd7e2e838aca4adfcac531376f381f48778c47e252a0e694ef30ec3535c9491c0', 0), +(94, 7, '28-86-38-25', 'Winters', 'Eugenia', 'Anthony', 'eugeniaanthony@corecom.com', 'b728dda78f477a7dfd535a7a5d9757ac6d3861e37a3f3f6a35aebff96f03606e', 1), +(95, 7, 'C7-7C-E2-41', 'Richardson', 'King', 'Rodriguez', 'kingrodriguez@corecom.com', '98723457f5c3eb37eb75fc87c03b8bea8731cd0b36c2254910b9ca2fe063d597', 1), +(96, 7, '6B-1B-5E-A7', 'Walker', 'Montoya', 'Meyer', 'montoyameyer@corecom.com', 'fbdc89231b0a72ac0d97035c0914b6102f2a64d5c72177e5db4e69548d872799', 0), +(97, 7, '48-03-38-1F', 'Witt', 'Larsen', 'Strong', 'larsenstrong@corecom.com', '1b36fe7acff3aab77d37cdb13c988ac7e81f4b84862ec1bcc0f15094c999d7e3', 0), +(98, 7, 'E0-4B-04-F6', 'Valarie', 'Craft', 'Klein', 'craftklein@corecom.com', '00fbb6c4c947cf27db3daeba63a0cb969479fb89331c723061d0d1fca64ba9a1', 0), +(99, 7, '2F-7D-0A-51', 'Jessica', 'Delgado', 'Campos', 'delgadocampos@corecom.com', 'f542646e2305d8f0ecf2e473a4e34d6eca8f028c6a61e450e058c59ac9c20030', 0), +(100, 7, '91-D4-7E-65', 'Velez', 'Mcmahon', 'Lott', 'mcmahonlott@corecom.com', '8b4b263914fb6e817f5ed9802bd8db3f2c2ba27978c92af08272235a27c72ffa', 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `user_cluster` +-- + +CREATE TABLE `user_cluster` ( + `id_user_cluster` int(11) NOT NULL, + `id_warehouse` int(11) NOT NULL, + `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `user_cluster` +-- + +INSERT INTO `user_cluster` (`id_user_cluster`, `id_warehouse`, `name`) VALUES +(2, 7, 'FirstCluster'), +(3, 7, 'test'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `user_cluster_merge` +-- + +CREATE TABLE `user_cluster_merge` ( + `id_user_cluster_merge` int(11) NOT NULL, + `id_user_cluster` int(11) NOT NULL, + `id_user` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `user_cluster_merge` +-- + +INSERT INTO `user_cluster_merge` (`id_user_cluster_merge`, `id_user_cluster`, `id_user`) VALUES +(3, 2, 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `warehouse` +-- + +CREATE TABLE `warehouse` ( + `id_warehouse` int(11) NOT NULL, + `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, + `theme` varchar(6) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'f44f06', + `password` varchar(64) COLLATE utf8_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8_unicode_ci NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- Dumping data for table `warehouse` +-- + +INSERT INTO `warehouse` (`id_warehouse`, `name`, `theme`, `password`, `token`) VALUES +(7, 'stef-montauban', '00B0EB', '963bbded00d37fb3ab2863093a5a76033d9cce6557c833af65e541c8abb96c6a', '643405e1004845c2291c244faab192e3ad493b9dec147c8030475794b0f2fa23'), +(8, 'stef-toulouse', 'B356C8', '963bbded00d37fb3ab2863093a5a76033d9cce6557c833af65e541c8abb96c6a', '643405e1004845c2291c244faab192e3ad493b9dec147c803047f794b0f2fa23'); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `action` +-- +ALTER TABLE `action` + ADD PRIMARY KEY (`id_action`); + +-- +-- Indexes for table `action_merge` +-- +ALTER TABLE `action_merge` + ADD PRIMARY KEY (`id_action_merge`); + +-- +-- Indexes for table `admin` +-- +ALTER TABLE `admin` + ADD PRIMARY KEY (`id_admin`), + ADD KEY `id_warehouse` (`id_warehouse`); + +-- +-- Indexes for table `chip` +-- +ALTER TABLE `chip` + ADD PRIMARY KEY (`id_chip`); + +-- +-- Indexes for table `global_state` +-- +ALTER TABLE `global_state` + ADD PRIMARY KEY (`id_global_state`); + +-- +-- Indexes for table `history` +-- +ALTER TABLE `history` + ADD PRIMARY KEY (`id_history`); + +-- +-- Indexes for table `machine` +-- +ALTER TABLE `machine` + ADD PRIMARY KEY (`id_machine`), + ADD KEY `id_warehouse` (`id_warehouse`); + +-- +-- Indexes for table `machine_cluster` +-- +ALTER TABLE `machine_cluster` + ADD PRIMARY KEY (`id_machine_cluster`), + ADD KEY `id_warehouse` (`id_warehouse`); + +-- +-- Indexes for table `machine_cluster_merge` +-- +ALTER TABLE `machine_cluster_merge` + ADD PRIMARY KEY (`id_machine_cluster_merge`), + ADD KEY `id_machine_cluster` (`id_machine_cluster`), + ADD KEY `id_machine` (`id_machine`); + +-- +-- Indexes for table `module` +-- +ALTER TABLE `module` + ADD PRIMARY KEY (`id_module`); + +-- +-- Indexes for table `module_merge` +-- +ALTER TABLE `module_merge` + ADD KEY `id_module` (`id_module`), + ADD KEY `id_warehouse` (`id_warehouse`); + +-- +-- Indexes for table `pin` +-- +ALTER TABLE `pin` + ADD PRIMARY KEY (`id_pin_merge`), + ADD KEY `id_chip` (`id_chip`); + +-- +-- Indexes for table `state` +-- +ALTER TABLE `state` + ADD PRIMARY KEY (`id_state`), + ADD KEY `id_pin_merge` (`id_pin_merge`); + +-- +-- Indexes for table `user` +-- +ALTER TABLE `user` + ADD PRIMARY KEY (`id_user`), + ADD KEY `id_warehouse` (`id_warehouse`); + +-- +-- Indexes for table `user_cluster` +-- +ALTER TABLE `user_cluster` + ADD PRIMARY KEY (`id_user_cluster`), + ADD KEY `id_warehouse` (`id_warehouse`); + +-- +-- Indexes for table `user_cluster_merge` +-- +ALTER TABLE `user_cluster_merge` + ADD PRIMARY KEY (`id_user_cluster_merge`), + ADD KEY `id_user_cluster` (`id_user_cluster`), + ADD KEY `id_user` (`id_user`); + +-- +-- Indexes for table `warehouse` +-- +ALTER TABLE `warehouse` + ADD PRIMARY KEY (`id_warehouse`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `action` +-- +ALTER TABLE `action` + MODIFY `id_action` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; +-- +-- AUTO_INCREMENT for table `action_merge` +-- +ALTER TABLE `action_merge` + MODIFY `id_action_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; +-- +-- AUTO_INCREMENT for table `admin` +-- +ALTER TABLE `admin` + MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; +-- +-- AUTO_INCREMENT for table `chip` +-- +ALTER TABLE `chip` + MODIFY `id_chip` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; +-- +-- AUTO_INCREMENT for table `global_state` +-- +ALTER TABLE `global_state` + MODIFY `id_global_state` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; +-- +-- AUTO_INCREMENT for table `history` +-- +ALTER TABLE `history` + MODIFY `id_history` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `machine` +-- +ALTER TABLE `machine` + MODIFY `id_machine` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=117; +-- +-- AUTO_INCREMENT for table `machine_cluster` +-- +ALTER TABLE `machine_cluster` + MODIFY `id_machine_cluster` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; +-- +-- AUTO_INCREMENT for table `machine_cluster_merge` +-- +ALTER TABLE `machine_cluster_merge` + MODIFY `id_machine_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; +-- +-- AUTO_INCREMENT for table `module` +-- +ALTER TABLE `module` + MODIFY `id_module` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; +-- +-- AUTO_INCREMENT for table `pin` +-- +ALTER TABLE `pin` + MODIFY `id_pin_merge` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `state` +-- +ALTER TABLE `state` + MODIFY `id_state` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `user` +-- +ALTER TABLE `user` + MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=101; +-- +-- AUTO_INCREMENT for table `user_cluster` +-- +ALTER TABLE `user_cluster` + MODIFY `id_user_cluster` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; +-- +-- AUTO_INCREMENT for table `user_cluster_merge` +-- +ALTER TABLE `user_cluster_merge` + MODIFY `id_user_cluster_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; +-- +-- AUTO_INCREMENT for table `warehouse` +-- +ALTER TABLE `warehouse` + MODIFY `id_warehouse` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; +-- +-- Constraints for dumped tables +-- + +-- +-- Constraints for table `admin` +-- +ALTER TABLE `admin` + ADD CONSTRAINT `admin_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`); + +-- +-- Constraints for table `machine` +-- +ALTER TABLE `machine` + ADD CONSTRAINT `machine_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`); + +-- +-- Constraints for table `machine_cluster` +-- +ALTER TABLE `machine_cluster` + ADD CONSTRAINT `machine_cluster_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`) ON DELETE CASCADE ON UPDATE CASCADE; + +-- +-- Constraints for table `machine_cluster_merge` +-- +ALTER TABLE `machine_cluster_merge` + ADD CONSTRAINT `machine_cluster_merge_id_machine` FOREIGN KEY (`id_machine`) REFERENCES `machine` (`id_machine`) ON DELETE CASCADE ON UPDATE CASCADE, + ADD CONSTRAINT `machine_cluster_merge_id_machine_cluster` FOREIGN KEY (`id_machine_cluster`) REFERENCES `machine_cluster` (`id_machine_cluster`) ON DELETE CASCADE ON UPDATE CASCADE; + +-- +-- Constraints for table `module_merge` +-- +ALTER TABLE `module_merge` + ADD CONSTRAINT `module_merge_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`) ON DELETE CASCADE ON UPDATE CASCADE, + ADD CONSTRAINT `module_merge_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`) ON DELETE CASCADE ON UPDATE CASCADE; + +-- +-- Constraints for table `pin` +-- +ALTER TABLE `pin` + ADD CONSTRAINT `pin_id_chip` FOREIGN KEY (`id_chip`) REFERENCES `chip` (`id_chip`) ON DELETE CASCADE ON UPDATE CASCADE; + +-- +-- Constraints for table `user` +-- +ALTER TABLE `user` + ADD CONSTRAINT `user_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`); + +-- +-- Constraints for table `user_cluster` +-- +ALTER TABLE `user_cluster` + ADD CONSTRAINT `user_cluster_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`) ON DELETE CASCADE ON UPDATE CASCADE; + +-- +-- Constraints for table `user_cluster_merge` +-- +ALTER TABLE `user_cluster_merge` + ADD CONSTRAINT `user_cluster_merge_id_user` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE, + ADD CONSTRAINT `user_cluster_merge_id_user_cluster` FOREIGN KEY (`id_user_cluster`) REFERENCES `user_cluster` (`id_user_cluster`) ON DELETE CASCADE ON UPDATE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/config/repositories.json b/config/repositories.json index cc6e7bb..ebd49fc 100755 --- a/config/repositories.json +++ b/config/repositories.json @@ -103,7 +103,7 @@ "getById" ], - "state": [ + "global_state": [ "getAll" ], diff --git a/manager/module/machineDefault.php b/manager/module/machineDefault.php index 4330c14..6a876b4 100755 --- a/manager/module/machineDefault.php +++ b/manager/module/machineDefault.php @@ -380,7 +380,7 @@ /* [2] On récupère la liste des états =========================================================*/ - $statesReq = new Repo('state/getAll'); + $statesReq = new Repo('global_state/getAll'); $states = ($statesReq->error==0) ? $statesReq->answer() : []; diff --git a/manager/repo/state.php b/manager/repo/global_state.php similarity index 74% rename from manager/repo/state.php rename to manager/repo/global_state.php index 133906f..2874fb9 100644 --- a/manager/repo/state.php +++ b/manager/repo/global_state.php @@ -6,9 +6,9 @@ use \manager\ManagerError; use \manager\repo\cluster as clusterRepo; - class state extends parentRepo{ + class global_state extends parentRepo{ - protected static function table_name(){ static $table_name = 'state'; return $table_name; } + protected static function table_name(){ static $table_name = 'global_state'; return $table_name; } } diff --git a/test/client/lib-min.js b/test/client/lib-min.js index 1cbcc07..f020d9f 100644 --- a/test/client/lib-min.js +++ b/test/client/lib-min.js @@ -3,4 +3,4 @@ var Chip; Chip.prototype.getPin=function(a){if(parseInt(a)==a&&this.pin.hasOwnProperty(a))return this.pin[a]};Chip.prototype.getPins=function(){for(var a=[],b=0;b