-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 19, 2016 at 11:26 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"; /*!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 utf8mb4 */; -- -- Database: `stefproject` -- -- -------------------------------------------------------- -- -- Table structure for table `action` -- 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 `action` -- 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 `action_merge` -- 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; -- -------------------------------------------------------- -- -- 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, 'SERIAL'), (2, 'relay1', 1, 'SERIAL'), (3, 'relay2', 2, 'SERIAL'); -- -------------------------------------------------------- -- -- Table structure for table `global_state` -- CREATE TABLE `global_state` ( `id_global_state` int(11) NOT NULL, `global_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`, `global_state`, `chips`) VALUES (1, '0X0', '00x'), (2, '100', 'G1x'), (3, '110', 'B1x'), (4, 'XX1', 'R0x'); -- -------------------------------------------------------- -- -- Table structure for table `history` -- CREATE TABLE `history` ( `id_history` int(11) NOT NULL, `id_user` int(11) NOT NULL, `id_machine` int(11) NOT NULL, `id_action` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `machine` -- CREATE TABLE `machine` ( `id_machine` int(11) NOT NULL, `id_warehouse` int(11) NOT NULL, `name` varchar(30) NOT NULL, `token` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `machine` -- 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; -- -------------------------------------------------------- -- -- 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; -- -------------------------------------------------------- -- -- 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_merge` -- CREATE TABLE `pin_merge` ( `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; -- -- Dumping data for table `pin_merge` -- INSERT INTO `pin_merge` (`id_pin_merge`, `id_chip`, `pin`, `type`) VALUES (1, 1, 1, 'SERIAL'), (2, 1, 2, 'SERIAL'), (3, 1, 3, 'SERIAL'), (4, 2, 4, 'SERIAL'), (5, 3, 5, 'SERIAL'); -- -------------------------------------------------------- -- -- Table structure for table `state` -- CREATE TABLE `state` ( `id_state` int(11) NOT NULL, `id_pin_merge` int(11) NOT NULL, `state` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `value` smallint(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `state` -- INSERT INTO `state` (`id_state`, `id_pin_merge`, `state`, `value`) VALUES (1, 1, '0', 0), (2, 2, '0', 0), (3, 3, '0', 0), (4, 1, 'G', 0), (5, 2, 'G', 255), (6, 3, 'G', 0), (7, 1, 'B', 0), (8, 2, 'B', 0), (9, 3, 'B', 255), (10, 1, 'R', 255), (11, 2, 'R', 0), (12, 3, 'R', 0), (13, 4, '0', 0), (14, 4, '1', 1), (15, 5, '0', 0), (16, 5, '1', 1); -- -------------------------------------------------------- -- -- Table structure for table `user` -- 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(64) NOT NULL, `status` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- 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`), ADD KEY `id_action` (`id_action`), ADD KEY `id_target` (`id_target`), ADD KEY `id_source` (`id_source`); -- -- 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`), ADD KEY `id_user` (`id_user`,`id_machine`,`id_action`), ADD KEY `history_id_machine` (`id_machine`), ADD KEY `history_id_action` (`id_action`); -- -- 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_merge` -- ALTER TABLE `pin_merge` 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 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 for table `machine_cluster_merge` -- ALTER TABLE `machine_cluster_merge` MODIFY `id_machine_cluster_merge` int(11) NOT NULL AUTO_INCREMENT; -- -- 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_merge` -- ALTER TABLE `pin_merge` MODIFY `id_pin_merge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `state` -- ALTER TABLE `state` MODIFY `id_state` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- 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 `action_merge` -- ALTER TABLE `action_merge` ADD CONSTRAINT `action_merge_id_action` FOREIGN KEY (`id_action`) REFERENCES `action` (`id_action`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `action_merge_id_source` FOREIGN KEY (`id_source`) REFERENCES `user_cluster` (`id_user_cluster`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `action_merge_id_target` FOREIGN KEY (`id_target`) REFERENCES `machine_cluster` (`id_machine_cluster`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `admin` -- ALTER TABLE `admin` ADD CONSTRAINT `admin_id_warehouse` FOREIGN KEY (`id_warehouse`) REFERENCES `warehouse` (`id_warehouse`); -- -- Constraints for table `history` -- ALTER TABLE `history` ADD CONSTRAINT `history_id_action` FOREIGN KEY (`id_action`) REFERENCES `action` (`id_action`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `history_id_machine` FOREIGN KEY (`id_machine`) REFERENCES `machine` (`id_machine`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `history_id_user` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- 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_merge` -- ALTER TABLE `pin_merge` ADD CONSTRAINT `pin_id_chip` FOREIGN KEY (`id_chip`) REFERENCES `chip` (`id_chip`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `state` -- ALTER TABLE `state` ADD CONSTRAINT `state_id_pin_merge` FOREIGN KEY (`id_pin_merge`) REFERENCES `pin_merge` (`id_pin_merge`); -- -- 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 */;