-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le :  jeu. 25 jan. 2018 à 07:54
-- Version du serveur :  5.7.19
-- Version de PHP :  5.6.31

START TRANSACTION;



--
-- Base de données :  `interactoqtotal`
--

-- --------------------------------------------------------

--
-- Structure de la table `action`
--

CREATE TABLE IF NOT EXISTS `action` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `request_id` int(11) DEFAULT NULL,
  `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `qui` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `quand` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `fait` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_47CC8C92427EB8A5` (`request_id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `action`
--

INSERT INTO `action` (`id`, `request_id`, `nom`, `qui`, `quand`, `fait`) VALUES
(1, 1, 'x', 'x', 'x', 'Oui'),
(2, 2, 'x', 'x', 'x', 'Oui'),
(3, 3, 'x', 'x', 'x', 'Oui'),
(4, 4, 'Action N°1', 'Who', 'When', 'oui'),
(5, 5, 'x', 'x', '1', 'Non'),
(6, 6, 'Action N°1', 'Chef de dépôt', '01/09/2017', 'Oui'),
(7, 7, 'Action N°1', 'Chef de dépôt', '01/09/2017', 'Oui'),
(8, 8, 'Action N°1', 'Chef de dépôt', '01/09/2017', 'Oui'),
(9, 9, 'Action N°1', 'Chef de dépôt', '01/09/2017', 'Oui'),
(10, 10, 'Action N°1', 'x', '01/09/2017', 'Oui'),
(11, 11, 'f', 'f', 'f', 'Oui'),
(12, 12, 'f', 'f', 'f', 'Non'),
(13, 13, 'f', 'f', 'f', 'Oui'),
(14, 14, 'Action N°1', 'Chef de dépôt', '1', 'Non'),
(15, 15, 'Action N°1', 'Chef de dépôt', '1', 'oui'),
(16, 16, 'ff', 'ff', 'ff', 'Non'),
(17, 17, 'ff', 'ff', '', 'Oui'),
(18, 18, 'qqq', 'qqqqqqqqq', 'qqqqqqqqqq', 'Non'),
(19, 19, 'qqq', 'qqqqqqqqq', '', 'Oui'),
(20, 20, 'g', 'g', 'g', 'Oui'),
(21, 21, 'Action N°1', 'wx', 'wx', 'Oui'),
(22, 12, 'cv', 'cv', 'cv', 'Oui'),
(23, 12, 'cv', 'cv', 'xv', 'Oui'),
(24, 22, 'sdsdsd', 'sdsdsd', 'sdsdsd', 'oui'),
(25, 4, 'Action N°1', 'Who', 'When', 'oui'),
(26, 23, 'sdds', 'sdsd', 'sdsd', 'oui'),
(27, 24, 'qsqs', 'qsqssq', 'qssqqs', 'oui'),
(28, 25, 'wxxwxw', 'wxxw', 'wxwx', 'oui'),
(29, 26, 'seffse', 'efssf', 'esffes', 'oui'),
(30, 27, 'sdsd', 'dssd', 'sddsds', 'non'),
(31, 27, 'dsdssd', 'sdsdsd', 'sdsdsd', 'oui'),
(32, 28, 'dssd', 'sdsdsd', 'sdsdsd', 'oui'),
(33, 29, 'sqqsqs', 'sqqs', 'qsqs', 'oui'),
(34, 30, 'ezze', 'ezze', 'zeze', 'non'),
(35, 31, 'qsqs', 'qsqs', 'qsqs', 'oui'),
(36, 32, 'xcxcxc', 'xccx', 'xccx', 'oui');

-- --------------------------------------------------------

--
-- Structure de la table `history`
--

CREATE TABLE IF NOT EXISTS `history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `demande_id` int(11) DEFAULT NULL,
  `pays_id` int(11) DEFAULT NULL,
  `site_id` int(11) DEFAULT NULL,
  `ref` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date_create` datetime NOT NULL,
  `etat` int(11) NOT NULL,
  `requester_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_27BA704B80E95E18` (`demande_id`),
  KEY `IDX_27BA704BA6E44244` (`pays_id`),
  KEY `IDX_27BA704BF6BD1646` (`site_id`),
  KEY `IDX_27BA704BED442CF4` (`requester_id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `history`
--

INSERT INTO `history` (`id`, `demande_id`, `pays_id`, `site_id`, `ref`, `date_create`, `etat`, `requester_id`) VALUES
(1, 1, 1, 3, 'TOTAL-GSD N1-2018', '2018-01-03 11:34:26', 5, 5),
(2, 2, 1, 3, 'TOTAL-GSD N2-2018', '2018-01-03 11:35:00', 5, 5),
(3, 3, 1, 3, 'TOTAL-GSD N3-2018', '2018-01-03 11:35:27', 4, 5),
(4, 4, 1, 3, 'TOTAL-GSD N4-2018', '2018-01-03 11:44:16', 0, 5),
(5, 5, 1, 3, 'TOTAL-GSD N5-2018', '2018-01-03 11:58:20', 0, 5),
(6, 6, 1, 3, 'TOTAL-GSD N6-2018', '2018-01-03 15:15:10', 5, 5),
(7, 7, 1, 3, 'TOTAL-GSD N7-2018', '2018-01-03 15:15:59', 4, 5),
(8, 8, 1, 3, 'TOTAL-GSD N8-2018', '2018-01-03 15:17:12', 4, 5),
(9, 9, 1, 3, 'TOTAL-GSD N9-2018', '2018-01-03 15:17:22', 5, 5),
(10, 10, 1, 3, 'TOTAL-GSD N10-2018', '2017-12-13 15:17:30', 3, 5),
(11, 11, 1, 3, 'TOTAL-GSD N11-2018', '2018-01-03 15:22:37', 2, 5),
(12, 12, 1, 3, 'TOTAL-GSD N12-2018', '2018-01-03 15:26:27', 1, 5),
(13, 13, 1, 3, 'TOTAL-GSD N13-2018', '2018-01-03 15:30:07', 1, 5),
(14, 14, 1, 3, 'TOTAL-GSD N14-2018', '2018-01-03 15:32:47', 0, 5),
(15, 15, 1, 3, 'TOTAL-GSD N15-2018', '2018-01-03 15:51:43', 0, 5),
(16, 16, 1, 3, 'TOTAL-GSD N16-2018', '2018-01-05 10:31:42', 5, 5),
(17, 17, 1, 3, 'TOTAL-GSD N17-2018', '2018-01-05 10:38:30', 0, 5),
(18, 18, 1, 3, 'TOTAL-GSD N18-2018', '2018-01-08 10:21:03', 5, 5),
(19, 19, 1, 3, 'TOTAL-GSD N19-2018', '2018-01-08 10:26:50', 0, 5),
(20, 20, 1, 3, 'TOTAL-GSD N20-2018', '2018-01-08 11:22:48', 1, 5),
(21, 21, 1, 3, 'TOTAL-GSD N21-2018', '2018-01-08 11:33:59', 1, 5),
(22, 22, 1, 3, 'TOTAL-GSD N22-2018', '2018-01-15 10:08:43', 0, 5),
(23, 23, 1, 3, 'TOTAL-GSD N23-2018', '2018-01-17 10:40:49', 0, 5),
(24, 24, 1, 3, 'TOTAL-GSD N24-2018', '2018-01-17 10:41:48', 0, 5),
(25, 25, 1, 3, 'TOTAL-GSD N25-2018', '2018-01-17 10:43:18', 0, 5),
(26, 26, 1, 3, 'TOTAL-GSD N26-2018', '2018-01-17 10:47:05', 0, 5),
(27, 27, 1, 3, 'TOTAL-GSD N27-2018', '2018-01-22 10:52:29', 0, 5),
(28, 28, 1, 3, 'TOTAL-GSD N28-2018', '2018-01-22 11:04:07', 0, 5),
(29, 29, 1, 3, 'TOTAL-GSD N29-2018', '2018-01-22 11:06:16', 0, 5),
(30, 30, 1, 3, 'TOTAL-GSD N30-2018', '2018-01-22 13:12:54', 0, 5),
(31, 31, 1, 3, 'TOTAL-GSD N31-2018', '2018-01-22 13:16:48', 0, 5),
(32, 32, 1, 3, 'TOTAL-GSD N32-2018', '2018-01-22 14:57:41', 0, 5);

-- --------------------------------------------------------

--
-- Structure de la table `invitation`
--

CREATE TABLE IF NOT EXISTS `invitation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender_id` int(11) DEFAULT NULL,
  `subject` longtext COLLATE utf8_unicode_ci NOT NULL,
  `dateCreation` datetime NOT NULL,
  `history_id` int(11) DEFAULT NULL,
  `receiver_email` longtext COLLATE utf8_unicode_ci NOT NULL,
  `receiver_nom` longtext COLLATE utf8_unicode_ci NOT NULL,
  `receiver_prenom` longtext COLLATE utf8_unicode_ci NOT NULL,
  `send_by` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F11D61A2F624B39D` (`sender_id`),
  KEY `IDX_F11D61A21E058452` (`history_id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `invitation`
--

INSERT INTO `invitation` (`id`, `sender_id`, `subject`, `dateCreation`, `history_id`, `receiver_email`, `receiver_nom`, `receiver_prenom`, `send_by`) VALUES
(1, 4, 'Invitation Directeur', '2018-01-08 16:57:56', 3, 'zeineb.haddad@gmail.com', 'HADDAD', 'Zeineb', 'Invitation By Directeur'),
(2, 4, 'Invitation Directeur', '2018-01-08 16:58:58', 3, 'zeineb@gmail.com', 'test', 'test', 'Invitation By DG'),
(3, 4, 'xx', '2018-01-09 14:49:20', 12, 'interactions.dev@gmail.com', 'dsd', 'sd', 'Invitation By Directeur'),
(4, 4, 'd', '2018-01-09 14:54:06', 12, 'zeineb.haddad@gmail.com', 'd', 'd', 'Invitation By Directeur'),
(5, 4, 'sdddssdds', '2018-01-09 15:19:55', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(6, 4, 'sdddssdds', '2018-01-09 15:24:50', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(7, 4, 'dfdffd', '2018-01-09 16:29:56', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(8, 4, 'dfdffd', '2018-01-09 16:31:11', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(9, 4, 'sdddssdds', '2018-01-11 12:49:36', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(10, 4, 'sdddssdds', '2018-01-11 12:57:24', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(11, 4, 'sdddssdds', '2018-01-11 13:02:44', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(12, 4, 'sdddssdds', '2018-01-11 13:03:01', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(13, 4, 'sdddssdds', '2018-01-11 13:03:41', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(14, 4, 'sdddssdds', '2018-01-11 13:04:05', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(15, 4, 'sdddssdds', '2018-01-11 13:04:40', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(16, 4, 'sdddssdds', '2018-01-11 13:04:56', 12, 'oussemaakrouti@gmail.com', 'sddssd', 'sdsdds', 'Invitation By Directeur'),
(17, 4, '\"sddsdsdz\"', '2018-01-11 14:15:17', NULL, '\"oussemaakrouti@gmail.com\"', '\"nbhghjgh\"', '\"jhjhhjhjhhj\"', 'Invitation By Directeur'),
(18, 4, '\"sddsdsdz\"', '2018-01-11 14:18:25', 12, '\"oussemaakrouti@gmail.com\"', '\"nbhghjgh\"', '\"jhjhhjhjhhj\"', 'Invitation By Directeur'),
(19, 4, '\"sddsdsdz\"', '2018-01-11 14:18:38', 12, 'oussemaakrouti@gmail.com', '\"nbhghjgh\"', '\"jhjhhjhjhhj\"', 'Invitation By Directeur'),
(20, 4, '\"sddsdsdz\"', '2018-01-11 14:22:37', 12, '\"oussemaakrouti@gmail.com\"', '\"nbhghjgh\"', '\"jhjhhjhjhhj\"', 'Invitation By Directeur'),
(21, 4, '\"sddsdsdz\"', '2018-01-11 14:39:31', 12, '\"oussemaakrouti@gmail.com\"', '\"nbhghjgh\"', '\"jhjhhjhjhhj\"', 'Invitation By Directeur'),
(22, 4, 'f', '2018-01-11 15:20:27', 12, 's@2.j', 's', 's', 'Invitation By Directeur'),
(23, 4, 'sdsdsdds', '2018-01-15 10:18:59', 12, 'oussemaakrouti@gmail.com', 'fddf', 'fddfdf', 'Invitation By Directeur'),
(24, 4, 'sdsdsdsd', '2018-01-18 11:38:42', NULL, 'interactions.dev2@gmail.com', 'dffddf', 'fdfdf', 'Invitation By Directeur'),
(25, 4, 'sdsdsdsd', '2018-01-18 11:38:58', NULL, 'interactions.dev2@gmail.com', 'dffddf', 'fdfdf', 'Invitation By Directeur'),
(26, 4, 'efrrer', '2018-01-18 12:08:00', NULL, 'interactions.dev2@gmail.com', 'reerer', 'ererr', 'Invitation By Directeur'),
(27, 4, 'efrrer', '2018-01-18 12:08:52', NULL, 'interactions.dev2@gmail.com', 'reerer', 'ererr', 'Invitation By Directeur'),
(28, 4, 'obj', '2018-01-18 12:17:43', NULL, 'email', 'nom', 'prenom', 'Invitation By Directeur'),
(29, 4, 'obj', '2018-01-18 12:17:52', NULL, 'email', 'nom', 'prenom', 'Invitation By Directeur'),
(30, 4, 'sdsdsddsd', '2018-01-18 12:18:29', 12, 'nteractions.dev2@gmail.com', 'fdsfd', 'sfeefs', 'Invitation By Directeur'),
(31, 4, 'eefefefeef', '2018-01-18 13:14:30', 12, 'ouqdqgs@gmail.com', 'fddff', 'dfdfdf', 'Invitation By Directeur'),
(32, 4, 'Décision du directeur dépôt ', '2018-01-18 13:36:35', 20, 'interactions.dev2@gmail.com', 'nom', 'prenom', 'Invitation By Directeur'),
(33, 4, 'sdsddsdsds', '2018-01-22 10:00:59', 22, 'interactions.dev2@gmail.com', 'ssd', 'sdsdsd', 'Invitation By Directeur'),
(34, 4, 'Demande Expertise = Demande TOTAL-GSD N32-2018', '2018-01-24 16:57:01', 32, 'interactions.dev2@gmail.com', 'ze', 'ezezz', 'Invitation By Directeur');

-- --------------------------------------------------------

--
-- Structure de la table `liste_pays`
--

CREATE TABLE IF NOT EXISTS `liste_pays` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` int(11) NOT NULL,
  `alpha2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `alpha3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nom_en_gb` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nom_fr_fr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=242 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `liste_pays`
--

INSERT INTO `liste_pays` (`id`, `code`, `alpha2`, `alpha3`, `nom_en_gb`, `nom_fr_fr`) VALUES
(1, 4, 'AF', 'AFG', 'Afghanistan', 'Afghanistan'),
(2, 8, 'AL', 'ALB', 'Albania', 'Albanie'),
(3, 10, 'AQ', 'ATA', 'Antarctica', 'Antarctique'),
(4, 12, 'DZ', 'DZA', 'Algeria', 'Algérie'),
(5, 16, 'AS', 'ASM', 'American Samoa', 'Samoa Américaines'),
(6, 20, 'AD', 'AND', 'Andorra', 'Andorre'),
(7, 24, 'AO', 'AGO', 'Angola', 'Angola'),
(8, 28, 'AG', 'ATG', 'Antigua and Barbuda', 'Antigua-et-Barbuda'),
(9, 31, 'AZ', 'AZE', 'Azerbaijan', 'Azerbaïdjan'),
(10, 32, 'AR', 'ARG', 'Argentina', 'Argentine'),
(11, 36, 'AU', 'AUS', 'Australia', 'Australie'),
(12, 40, 'AT', 'AUT', 'Austria', 'Autriche'),
(13, 44, 'BS', 'BHS', 'Bahamas', 'Bahamas'),
(14, 48, 'BH', 'BHR', 'Bahrain', 'Bahreïn'),
(15, 50, 'BD', 'BGD', 'Bangladesh', 'Bangladesh'),
(16, 51, 'AM', 'ARM', 'Armenia', 'Arménie'),
(17, 52, 'BB', 'BRB', 'Barbados', 'Barbade'),
(18, 56, 'BE', 'BEL', 'Belgium', 'Belgique'),
(19, 60, 'BM', 'BMU', 'Bermuda', 'Bermudes'),
(20, 64, 'BT', 'BTN', 'Bhutan', 'Bhoutan'),
(21, 68, 'BO', 'BOL', 'Bolivia', 'Bolivie'),
(22, 70, 'BA', 'BIH', 'Bosnia and Herzegovina', 'Bosnie-Herzégovine'),
(23, 72, 'BW', 'BWA', 'Botswana', 'Botswana'),
(24, 74, 'BV', 'BVT', 'Bouvet Island', 'Île Bouvet'),
(25, 76, 'BR', 'BRA', 'Brazil', 'Brésil'),
(26, 84, 'BZ', 'BLZ', 'Belize', 'Belize'),
(27, 86, 'IO', 'IOT', 'British Indian Ocean Territory', 'Territoire Britannique de l\'Océan Indien'),
(28, 90, 'SB', 'SLB', 'Solomon Islands', 'Îles Salomon'),
(29, 92, 'VG', 'VGB', 'British Virgin Islands', 'Îles Vierges Britanniques'),
(30, 96, 'BN', 'BRN', 'Brunei Darussalam', 'Brunéi Darussalam'),
(31, 100, 'BG', 'BGR', 'Bulgaria', 'Bulgarie'),
(32, 104, 'MM', 'MMR', 'Myanmar', 'Myanmar'),
(33, 108, 'BI', 'BDI', 'Burundi', 'Burundi'),
(34, 112, 'BY', 'BLR', 'Belarus', 'Bélarus'),
(35, 116, 'KH', 'KHM', 'Cambodia', 'Cambodge'),
(36, 120, 'CM', 'CMR', 'Cameroon', 'Cameroun'),
(37, 124, 'CA', 'CAN', 'Canada', 'Canada'),
(38, 132, 'CV', 'CPV', 'Cape Verde', 'Cap-vert'),
(39, 136, 'KY', 'CYM', 'Cayman Islands', 'Îles Caïmanes'),
(40, 140, 'CF', 'CAF', 'Central African', 'République Centrafricaine'),
(41, 144, 'LK', 'LKA', 'Sri Lanka', 'Sri Lanka'),
(42, 148, 'TD', 'TCD', 'Chad', 'Tchad'),
(43, 152, 'CL', 'CHL', 'Chile', 'Chili'),
(44, 156, 'CN', 'CHN', 'China', 'Chine'),
(45, 158, 'TW', 'TWN', 'Taiwan', 'Taïwan'),
(46, 162, 'CX', 'CXR', 'Christmas Island', 'Île Christmas'),
(47, 166, 'CC', 'CCK', 'Cocos (Keeling) Islands', 'Îles Cocos (Keeling)'),
(48, 170, 'CO', 'COL', 'Colombia', 'Colombie'),
(49, 174, 'KM', 'COM', 'Comoros', 'Comores'),
(50, 175, 'YT', 'MYT', 'Mayotte', 'Mayotte'),
(51, 178, 'CG', 'COG', 'Republic of the Congo', 'République du Congo'),
(52, 180, 'CD', 'COD', 'The Democratic Republic Of The Congo', 'République Démocratique du Congo'),
(53, 184, 'CK', 'COK', 'Cook Islands', 'Îles Cook'),
(54, 188, 'CR', 'CRI', 'Costa Rica', 'Costa Rica'),
(55, 191, 'HR', 'HRV', 'Croatia', 'Croatie'),
(56, 192, 'CU', 'CUB', 'Cuba', 'Cuba'),
(57, 196, 'CY', 'CYP', 'Cyprus', 'Chypre'),
(58, 203, 'CZ', 'CZE', 'Czech Republic', 'République Tchèque'),
(59, 204, 'BJ', 'BEN', 'Benin', 'Bénin'),
(60, 208, 'DK', 'DNK', 'Denmark', 'Danemark'),
(61, 212, 'DM', 'DMA', 'Dominica', 'Dominique'),
(62, 214, 'DO', 'DOM', 'Dominican Republic', 'République Dominicaine'),
(63, 218, 'EC', 'ECU', 'Ecuador', 'Équateur'),
(64, 222, 'SV', 'SLV', 'El Salvador', 'El Salvador'),
(65, 226, 'GQ', 'GNQ', 'Equatorial Guinea', 'Guinée Équatoriale'),
(66, 231, 'ET', 'ETH', 'Ethiopia', 'Éthiopie'),
(67, 232, 'ER', 'ERI', 'Eritrea', 'Érythrée'),
(68, 233, 'EE', 'EST', 'Estonia', 'Estonie'),
(69, 234, 'FO', 'FRO', 'Faroe Islands', 'Îles Féroé'),
(70, 238, 'FK', 'FLK', 'Falkland Islands', 'Îles (malvinas) Falkland'),
(71, 239, 'GS', 'SGS', 'South Georgia and the South Sandwich Islands', 'Géorgie du Sud et les Îles Sandwich du Sud'),
(72, 242, 'FJ', 'FJI', 'Fiji', 'Fidji'),
(73, 246, 'FI', 'FIN', 'Finland', 'Finlande'),
(74, 248, 'AX', 'ALA', 'Åland Islands', 'Îles Åland'),
(75, 250, 'FR', 'FRA', 'France', 'France'),
(76, 254, 'GF', 'GUF', 'French Guiana', 'Guyane Française'),
(77, 258, 'PF', 'PYF', 'French Polynesia', 'Polynésie Française'),
(78, 260, 'TF', 'ATF', 'French Southern Territories', 'Terres Australes Françaises'),
(79, 262, 'DJ', 'DJI', 'Djibouti', 'Djibouti'),
(80, 266, 'GA', 'GAB', 'Gabon', 'Gabon'),
(81, 268, 'GE', 'GEO', 'Georgia', 'Géorgie'),
(82, 270, 'GM', 'GMB', 'Gambia', 'Gambie'),
(83, 275, 'PS', 'PSE', 'Occupied Palestinian Territory', 'Territoire Palestinien Occupé'),
(84, 276, 'DE', 'DEU', 'Germany', 'Allemagne'),
(85, 288, 'GH', 'GHA', 'Ghana', 'Ghana'),
(86, 292, 'GI', 'GIB', 'Gibraltar', 'Gibraltar'),
(87, 296, 'KI', 'KIR', 'Kiribati', 'Kiribati'),
(88, 300, 'GR', 'GRC', 'Greece', 'Grèce'),
(89, 304, 'GL', 'GRL', 'Greenland', 'Groenland'),
(90, 308, 'GD', 'GRD', 'Grenada', 'Grenade'),
(91, 312, 'GP', 'GLP', 'Guadeloupe', 'Guadeloupe'),
(92, 316, 'GU', 'GUM', 'Guam', 'Guam'),
(93, 320, 'GT', 'GTM', 'Guatemala', 'Guatemala'),
(94, 324, 'GN', 'GIN', 'Guinea', 'Guinée'),
(95, 328, 'GY', 'GUY', 'Guyana', 'Guyana'),
(96, 332, 'HT', 'HTI', 'Haiti', 'Haïti'),
(97, 334, 'HM', 'HMD', 'Heard Island and McDonald Islands', 'Îles Heard et Mcdonald'),
(98, 336, 'VA', 'VAT', 'Vatican City State', 'Saint-Siège (état de la Cité du Vatican)'),
(99, 340, 'HN', 'HND', 'Honduras', 'Honduras'),
(100, 344, 'HK', 'HKG', 'Hong Kong', 'Hong-Kong'),
(101, 348, 'HU', 'HUN', 'Hungary', 'Hongrie'),
(102, 352, 'IS', 'ISL', 'Iceland', 'Islande'),
(103, 356, 'IN', 'IND', 'India', 'Inde'),
(104, 360, 'ID', 'IDN', 'Indonesia', 'Indonésie'),
(105, 364, 'IR', 'IRN', 'Islamic Republic of Iran', 'République Islamique d\'Iran'),
(106, 368, 'IQ', 'IRQ', 'Iraq', 'Iraq'),
(107, 372, 'IE', 'IRL', 'Ireland', 'Irlande'),
(108, 376, 'IL', 'ISR', 'Israel', 'Israël'),
(109, 380, 'IT', 'ITA', 'Italy', 'Italie'),
(110, 384, 'CI', 'CIV', 'Côte d\'Ivoire', 'Côte d\'Ivoire'),
(111, 388, 'JM', 'JAM', 'Jamaica', 'Jamaïque'),
(112, 392, 'JP', 'JPN', 'Japan', 'Japon'),
(113, 398, 'KZ', 'KAZ', 'Kazakhstan', 'Kazakhstan'),
(114, 400, 'JO', 'JOR', 'Jordan', 'Jordanie'),
(115, 404, 'KE', 'KEN', 'Kenya', 'Kenya'),
(116, 408, 'KP', 'PRK', 'Democratic People\'s Republic of Korea', 'République Populaire Démocratique de Corée'),
(117, 410, 'KR', 'KOR', 'Republic of Korea', 'République de Corée'),
(118, 414, 'KW', 'KWT', 'Kuwait', 'Koweït'),
(119, 417, 'KG', 'KGZ', 'Kyrgyzstan', 'Kirghizistan'),
(120, 418, 'LA', 'LAO', 'Lao People\'s Democratic Republic', 'République Démocratique Populaire Lao'),
(121, 422, 'LB', 'LBN', 'Lebanon', 'Liban'),
(122, 426, 'LS', 'LSO', 'Lesotho', 'Lesotho'),
(123, 428, 'LV', 'LVA', 'Latvia', 'Lettonie'),
(124, 430, 'LR', 'LBR', 'Liberia', 'Libéria'),
(125, 434, 'LY', 'LBY', 'Libyan Arab Jamahiriya', 'Jamahiriya Arabe Libyenne'),
(126, 438, 'LI', 'LIE', 'Liechtenstein', 'Liechtenstein'),
(127, 440, 'LT', 'LTU', 'Lithuania', 'Lituanie'),
(128, 442, 'LU', 'LUX', 'Luxembourg', 'Luxembourg'),
(129, 446, 'MO', 'MAC', 'Macao', 'Macao'),
(130, 450, 'MG', 'MDG', 'Madagascar', 'Madagascar'),
(131, 454, 'MW', 'MWI', 'Malawi', 'Malawi'),
(132, 458, 'MY', 'MYS', 'Malaysia', 'Malaisie'),
(133, 462, 'MV', 'MDV', 'Maldives', 'Maldives'),
(134, 466, 'ML', 'MLI', 'Mali', 'Mali'),
(135, 470, 'MT', 'MLT', 'Malta', 'Malte'),
(136, 474, 'MQ', 'MTQ', 'Martinique', 'Martinique'),
(137, 478, 'MR', 'MRT', 'Mauritania', 'Mauritanie'),
(138, 480, 'MU', 'MUS', 'Mauritius', 'Maurice'),
(139, 484, 'MX', 'MEX', 'Mexico', 'Mexique'),
(140, 492, 'MC', 'MCO', 'Monaco', 'Monaco'),
(141, 496, 'MN', 'MNG', 'Mongolia', 'Mongolie'),
(142, 498, 'MD', 'MDA', 'Republic of Moldova', 'République de Moldova'),
(143, 500, 'MS', 'MSR', 'Montserrat', 'Montserrat'),
(144, 504, 'MA', 'MAR', 'Morocco', 'Maroc'),
(145, 508, 'MZ', 'MOZ', 'Mozambique', 'Mozambique'),
(146, 512, 'OM', 'OMN', 'Oman', 'Oman'),
(147, 516, 'NA', 'NAM', 'Namibia', 'Namibie'),
(148, 520, 'NR', 'NRU', 'Nauru', 'Nauru'),
(149, 524, 'NP', 'NPL', 'Nepal', 'Népal'),
(150, 528, 'NL', 'NLD', 'Netherlands', 'Pays-Bas'),
(151, 530, 'AN', 'ANT', 'Netherlands Antilles', 'Antilles Néerlandaises'),
(152, 533, 'AW', 'ABW', 'Aruba', 'Aruba'),
(153, 540, 'NC', 'NCL', 'New Caledonia', 'Nouvelle-Calédonie'),
(154, 548, 'VU', 'VUT', 'Vanuatu', 'Vanuatu'),
(155, 554, 'NZ', 'NZL', 'New Zealand', 'Nouvelle-Zélande'),
(156, 558, 'NI', 'NIC', 'Nicaragua', 'Nicaragua'),
(157, 562, 'NE', 'NER', 'Niger', 'Niger'),
(158, 566, 'NG', 'NGA', 'Nigeria', 'Nigéria'),
(159, 570, 'NU', 'NIU', 'Niue', 'Niué'),
(160, 574, 'NF', 'NFK', 'Norfolk Island', 'Île Norfolk'),
(161, 578, 'NO', 'NOR', 'Norway', 'Norvège'),
(162, 580, 'MP', 'MNP', 'Northern Mariana Islands', 'Îles Mariannes du Nord'),
(163, 581, 'UM', 'UMI', 'United States Minor Outlying Islands', 'Îles Mineures Éloignées des États-Unis'),
(164, 583, 'FM', 'FSM', 'Federated States of Micronesia', 'États Fédérés de Micronésie'),
(165, 584, 'MH', 'MHL', 'Marshall Islands', 'Îles Marshall'),
(166, 585, 'PW', 'PLW', 'Palau', 'Palaos'),
(167, 586, 'PK', 'PAK', 'Pakistan', 'Pakistan'),
(168, 591, 'PA', 'PAN', 'Panama', 'Panama'),
(169, 598, 'PG', 'PNG', 'Papua New Guinea', 'Papouasie-Nouvelle-Guinée'),
(170, 600, 'PY', 'PRY', 'Paraguay', 'Paraguay'),
(171, 604, 'PE', 'PER', 'Peru', 'Pérou'),
(172, 608, 'PH', 'PHL', 'Philippines', 'Philippines'),
(173, 612, 'PN', 'PCN', 'Pitcairn', 'Pitcairn'),
(174, 616, 'PL', 'POL', 'Poland', 'Pologne'),
(175, 620, 'PT', 'PRT', 'Portugal', 'Portugal'),
(176, 624, 'GW', 'GNB', 'Guinea-Bissau', 'Guinée-Bissau'),
(177, 626, 'TL', 'TLS', 'Timor-Leste', 'Timor-Leste'),
(178, 630, 'PR', 'PRI', 'Puerto Rico', 'Porto Rico'),
(179, 634, 'QA', 'QAT', 'Qatar', 'Qatar'),
(180, 638, 'RE', 'REU', 'Réunion', 'Réunion'),
(181, 642, 'RO', 'ROU', 'Romania', 'Roumanie'),
(182, 643, 'RU', 'RUS', 'Russian Federation', 'Fédération de Russie'),
(183, 646, 'RW', 'RWA', 'Rwanda', 'Rwanda'),
(184, 654, 'SH', 'SHN', 'Saint Helena', 'Sainte-Hélène'),
(185, 659, 'KN', 'KNA', 'Saint Kitts and Nevis', 'Saint-Kitts-et-Nevis'),
(186, 660, 'AI', 'AIA', 'Anguilla', 'Anguilla'),
(187, 662, 'LC', 'LCA', 'Saint Lucia', 'Sainte-Lucie'),
(188, 666, 'PM', 'SPM', 'Saint-Pierre and Miquelon', 'Saint-Pierre-et-Miquelon'),
(189, 670, 'VC', 'VCT', 'Saint Vincent and the Grenadines', 'Saint-Vincent-et-les Grenadines'),
(190, 674, 'SM', 'SMR', 'San Marino', 'Saint-Marin'),
(191, 678, 'ST', 'STP', 'Sao Tome and Principe', 'Sao Tomé-et-Principe'),
(192, 682, 'SA', 'SAU', 'Saudi Arabia', 'Arabie Saoudite'),
(193, 686, 'SN', 'SEN', 'Senegal', 'Sénégal'),
(194, 690, 'SC', 'SYC', 'Seychelles', 'Seychelles'),
(195, 694, 'SL', 'SLE', 'Sierra Leone', 'Sierra Leone'),
(196, 702, 'SG', 'SGP', 'Singapore', 'Singapour'),
(197, 703, 'SK', 'SVK', 'Slovakia', 'Slovaquie'),
(198, 704, 'VN', 'VNM', 'Vietnam', 'Viet Nam'),
(199, 705, 'SI', 'SVN', 'Slovenia', 'Slovénie'),
(200, 706, 'SO', 'SOM', 'Somalia', 'Somalie'),
(201, 710, 'ZA', 'ZAF', 'South Africa', 'Afrique du Sud'),
(202, 716, 'ZW', 'ZWE', 'Zimbabwe', 'Zimbabwe'),
(203, 724, 'ES', 'ESP', 'Spain', 'Espagne'),
(204, 732, 'EH', 'ESH', 'Western Sahara', 'Sahara Occidental'),
(205, 736, 'SD', 'SDN', 'Sudan', 'Soudan'),
(206, 740, 'SR', 'SUR', 'Suriname', 'Suriname'),
(207, 744, 'SJ', 'SJM', 'Svalbard and Jan Mayen', 'Svalbard etÎle Jan Mayen'),
(208, 748, 'SZ', 'SWZ', 'Swaziland', 'Swaziland'),
(209, 752, 'SE', 'SWE', 'Sweden', 'Suède'),
(210, 756, 'CH', 'CHE', 'Switzerland', 'Suisse'),
(211, 760, 'SY', 'SYR', 'Syrian Arab Republic', 'République Arabe Syrienne'),
(212, 762, 'TJ', 'TJK', 'Tajikistan', 'Tadjikistan'),
(213, 764, 'TH', 'THA', 'Thailand', 'Thaïlande'),
(214, 768, 'TG', 'TGO', 'Togo', 'Togo'),
(215, 772, 'TK', 'TKL', 'Tokelau', 'Tokelau'),
(216, 776, 'TO', 'TON', 'Tonga', 'Tonga'),
(217, 780, 'TT', 'TTO', 'Trinidad and Tobago', 'Trinité-et-Tobago'),
(218, 784, 'AE', 'ARE', 'United Arab Emirates', 'Émirats Arabes Unis'),
(219, 788, 'TN', 'TUN', 'Tunisia', 'Tunisie'),
(220, 792, 'TR', 'TUR', 'Turkey', 'Turquie'),
(221, 795, 'TM', 'TKM', 'Turkmenistan', 'Turkménistan'),
(222, 796, 'TC', 'TCA', 'Turks and Caicos Islands', 'Îles Turks et Caïques'),
(223, 798, 'TV', 'TUV', 'Tuvalu', 'Tuvalu'),
(224, 800, 'UG', 'UGA', 'Uganda', 'Ouganda'),
(225, 804, 'UA', 'UKR', 'Ukraine', 'Ukraine'),
(226, 807, 'MK', 'MKD', 'The Former Yugoslav Republic of Macedonia', 'L\'ex-République Yougoslave de Macédoine'),
(227, 818, 'EG', 'EGY', 'Egypt', 'Égypte'),
(228, 826, 'GB', 'GBR', 'United Kingdom', 'Royaume-Uni'),
(229, 833, 'IM', 'IMN', 'Isle of Man', 'Île de Man'),
(230, 834, 'TZ', 'TZA', 'United Republic Of Tanzania', 'République-Unie de Tanzanie'),
(231, 840, 'US', 'USA', 'United States', 'États-Unis'),
(232, 850, 'VI', 'VIR', 'U.S. Virgin Islands', 'Îles Vierges des États-Unis'),
(233, 854, 'BF', 'BFA', 'Burkina Faso', 'Burkina Faso'),
(234, 858, 'UY', 'URY', 'Uruguay', 'Uruguay'),
(235, 860, 'UZ', 'UZB', 'Uzbekistan', 'Ouzbékistan'),
(236, 862, 'VE', 'VEN', 'Venezuela', 'Venezuela'),
(237, 876, 'WF', 'WLF', 'Wallis and Futuna', 'Wallis et Futuna'),
(238, 882, 'WS', 'WSM', 'Samoa', 'Samoa'),
(239, 887, 'YE', 'YEM', 'Yemen', 'Yémen'),
(240, 891, 'CS', 'SCG', 'Serbia and Montenegro', 'Serbie-et-Monténégro'),
(241, 894, 'ZM', 'ZMB', 'Zambia', 'Zambie');

-- --------------------------------------------------------

--
-- Structure de la table `media`
--

CREATE TABLE IF NOT EXISTS `media` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `request_id` int(11) DEFAULT NULL,
  `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `alt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nom` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_create` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6A2CA10C427EB8A5` (`request_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `media`
--

INSERT INTO `media` (`id`, `request_id`, `path`, `alt`, `nom`, `date_create`) VALUES
(1, 14, 'jpg', '2154076635a4f44b7687324.68677054.jpg', 't', '2018-01-05 10:26:15'),
(2, 22, 'docx', '79565a5c7dab179075.39564090.docx', 'sddssdsd', '2018-01-15 10:08:39'),
(3, 4, 'jpg', '327115a5c7e509b0de6.01158552.jpg', 'sqqsqsqsqs', '2018-01-15 10:11:28'),
(4, 4, 'docx', '11835a5c7e9b2a7505.24472892.docx', 'xsdds', '2018-01-15 10:12:43'),
(5, 22, 'jpg', '168825a65c8fee4e8d4.00058893.jpg', 'qqsqssqsq', '2018-01-22 11:20:30');

-- --------------------------------------------------------

--
-- Structure de la table `pays`
--

CREATE TABLE IF NOT EXISTS `pays` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status_dg` tinyint(1) NOT NULL,
  `status_hseq` tinyint(1) NOT NULL,
  `user1_id` int(11) DEFAULT NULL,
  `user2_id` int(11) DEFAULT NULL,
  `pays_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_349F3CAE56AE248B` (`user1_id`),
  UNIQUE KEY `UNIQ_349F3CAE441B8B65` (`user2_id`),
  KEY `IDX_349F3CAEA6E44244` (`pays_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `pays`
--

INSERT INTO `pays` (`id`, `status_dg`, `status_hseq`, `user1_id`, `user2_id`, `pays_id`) VALUES
(1, 1, 1, 2, 3, 219),
(2, 0, 0, NULL, NULL, 75),
(7, 1, 1, 21, 32, 1),
(8, 0, 0, NULL, NULL, 5);

-- --------------------------------------------------------

--
-- Structure de la table `site`
--

CREATE TABLE IF NOT EXISTS `site` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `pays_id` int(11) DEFAULT NULL,
  `status_chef` tinyint(1) NOT NULL,
  `chef_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_694309E4150A48F1` (`chef_id`),
  KEY `IDX_694309E4A6E44244` (`pays_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `site`
--

INSERT INTO `site` (`id`, `nom`, `pays_id`, `status_chef`, `chef_id`) VALUES
(1, 'Secteur Sécurité', 1, 1, 25),
(2, 'Dépôt Aviation Djerba', 1, 1, 26),
(3, 'Département Pilotage', 1, 1, 4);

-- --------------------------------------------------------

--
-- Structure de la table `type_deviation`
--

CREATE TABLE IF NOT EXISTS `type_deviation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `type_deviation`
--

INSERT INTO `type_deviation` (`id`, `nom`) VALUES
(1, 'HSEQ'),
(2, 'Process'),
(3, 'Sécurité');

-- --------------------------------------------------------

--
-- Structure de la table `validation`
--

CREATE TABLE IF NOT EXISTS `validation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `validateur_id` int(11) DEFAULT NULL,
  `historique_id` int(11) DEFAULT NULL,
  `date_val` datetime NOT NULL,
  `decision` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `commentaire` longtext COLLATE utf8_unicode_ci NOT NULL,
  `rapport` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
  `Niveau` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_16AC5B6EE57AEF2F` (`validateur_id`),
  KEY `IDX_16AC5B6E6128735E` (`historique_id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Déchargement des données de la table `validation`
--

INSERT INTO `validation` (`id`, `validateur_id`, `historique_id`, `date_val`, `decision`, `commentaire`, `rapport`, `Niveau`) VALUES
(1, 4, 1, '2018-01-03 11:44:15', 'Demande Refusée', '<p>eeeeeeeeeeeeeeeeeeeeeeee</p>', 'a:0:{}', 1),
(2, 4, 2, '2018-01-03 11:49:32', 'Demande Approuvée', '<p>gfrgfrgfrg</p>', 'a:0:{}', 1),
(3, 4, 3, '2018-01-03 11:51:27', 'Demande Approuvée', '<p>defezferf</p>', 'a:0:{}', 1),
(4, 3, 2, '2018-01-03 11:58:19', 'Demande Refusée', '<p>sg</p>', 'a:0:{}', 2),
(5, 3, 3, '2018-01-03 11:58:30', 'Demande Approuvée', '<p>fchyf</p>', 'a:0:{}', 2),
(6, 2, 3, '2018-01-03 14:29:22', 'Demande Approuvée', '<p>sss</p>', 'a:0:{}', 3),
(7, 4, 6, '2018-01-03 15:32:47', 'Demande Refusée', '<p>eeeeeeeeeee</p>', 'a:0:{}', 1),
(8, 4, 7, '2018-01-03 15:33:37', 'Demande Approuvée', '<p>xsdd</p>', 'a:0:{}', 1),
(9, 4, 8, '2018-01-03 15:33:41', 'Demande Approuvée', '<p>sdsd</p>', 'a:0:{}', 1),
(10, 4, 9, '2018-01-03 15:33:45', 'Demande Approuvée', '<p>sdsd</p>', 'a:0:{}', 1),
(11, 3, 7, '2018-01-03 15:48:20', 'Demande Approuvée', '<p>ddddd</p>', 'a:0:{}', 2),
(12, 3, 8, '2018-01-03 15:50:39', 'Demande Approuvée', '<p>sssss</p>', 'a:0:{}', 2),
(13, 3, 9, '2018-01-03 15:50:46', 'Demande Approuvée', '<p>ssss</p>', 'a:0:{}', 2),
(14, 2, 9, '2018-01-03 15:51:43', 'Demande Refusée', '<p>sss</p>', 'a:0:{}', 3),
(15, 2, 8, '2018-01-03 15:51:50', 'Demande Approuvée', '<p>ssss</p>', 'a:0:{}', 3),
(16, 2, 7, '2018-01-03 15:51:54', 'Demande Approuvée', '<p>sss</p>', 'a:0:{}', 3),
(17, 3, 3, '2018-01-03 16:38:51', 'Demande Approuvée', '<p>dzsdsefesf</p>', 'a:0:{}', 4),
(18, 3, 7, '2018-01-03 16:40:41', 'Demande Approuvée', '<p>ssss</p>', 'a:0:{}', 4),
(19, 3, 8, '2018-01-03 16:41:54', 'Demande Approuvée', '<p>ssss</p>', 'a:0:{}', 4),
(20, 4, 16, '2018-01-05 10:34:11', 'Demande Approuvée', '<p>commentaire</p>', 'a:0:{}', 1),
(21, 3, 16, '2018-01-05 10:38:30', 'Demande Refusée', '<p>vvvvvvvvvvvv</p>', 'a:0:{}', 2),
(22, 4, 10, '2018-01-08 09:24:58', 'Demande Approuvée', '<p>GGGGG</p>', 'a:0:{}', 1),
(23, 4, 18, '2018-01-08 10:26:50', 'Demande Refusée', '<p>&nbsp;bhhhhhhhh</p>', 'a:0:{}', 1),
(24, 3, 10, '2018-01-08 10:28:30', 'Demande Approuvée', '<p>hhhhhhhhhhhhhhhhhh</p>', 'a:0:{}', 2),
(25, 2, 10, '2017-12-07 10:31:34', 'Demande Approuvée', '<p>&nbsp; &nbsp;xsssssssssssssssssssssss</p>', 'a:0:{}', 3),
(26, 4, 11, '2018-01-08 11:37:42', 'Demande Approuvée', '<p>dfdsfsf</p>', 'a:0:{}', 1),
(27, 4, 12, '2018-01-15 10:21:32', 'Demande Approuvée', 'Décision du directeur dépôt', 'a:0:{}', 1),
(28, 3, 11, '2018-01-17 10:52:12', 'Demande Approuvée', 'sdsddsdsd', 'a:0:{}', 2),
(29, 4, 13, '2018-01-18 12:18:39', 'Demande Approuvée', 'zezezeze', 'a:0:{}', 1),
(30, 4, 21, '2018-01-18 13:34:22', 'Demande Approuvée', 'Décision du directeur dépôt', 'a:0:{}', 1),
(31, 4, 20, '2018-01-18 13:36:51', 'Demande Approuvée', 'xqxqxqqxxq', 'a:0:{}', 1);

--
-- Contraintes pour les tables déchargées
--

--
-- Contraintes pour la table `action`
--
ALTER TABLE `action`
  ADD CONSTRAINT `FK_47CC8C92427EB8A5` FOREIGN KEY (`request_id`) REFERENCES `demande` (`id`);

--
-- Contraintes pour la table `history`
--
ALTER TABLE `history`
  ADD CONSTRAINT `FK_27BA704B80E95E18` FOREIGN KEY (`demande_id`) REFERENCES `demande` (`id`),
  ADD CONSTRAINT `FK_27BA704BA6E44244` FOREIGN KEY (`pays_id`) REFERENCES `pays` (`id`),
  ADD CONSTRAINT `FK_27BA704BED442CF4` FOREIGN KEY (`requester_id`) REFERENCES `user` (`id`),
  ADD CONSTRAINT `FK_27BA704BF6BD1646` FOREIGN KEY (`site_id`) REFERENCES `site` (`id`);

--
-- Contraintes pour la table `invitation`
--
ALTER TABLE `invitation`
  ADD CONSTRAINT `FK_F11D61A21E058452` FOREIGN KEY (`history_id`) REFERENCES `history` (`id`),
  ADD CONSTRAINT `FK_F11D61A2F624B39D` FOREIGN KEY (`sender_id`) REFERENCES `user` (`id`);

--
-- Contraintes pour la table `media`
--
ALTER TABLE `media`
  ADD CONSTRAINT `FK_6A2CA10C427EB8A5` FOREIGN KEY (`request_id`) REFERENCES `demande` (`id`);

--
-- Contraintes pour la table `pays`
--
ALTER TABLE `pays`
  ADD CONSTRAINT `FK_349F3CAE441B8B65` FOREIGN KEY (`user2_id`) REFERENCES `user` (`id`),
  ADD CONSTRAINT `FK_349F3CAE56AE248B` FOREIGN KEY (`user1_id`) REFERENCES `user` (`id`),
  ADD CONSTRAINT `FK_349F3CAEA6E44244` FOREIGN KEY (`pays_id`) REFERENCES `liste_pays` (`id`);

--
-- Contraintes pour la table `site`
--
ALTER TABLE `site`
  ADD CONSTRAINT `FK_694309E4150A48F1` FOREIGN KEY (`chef_id`) REFERENCES `user` (`id`),
  ADD CONSTRAINT `FK_694309E4A6E44244` FOREIGN KEY (`pays_id`) REFERENCES `pays` (`id`);

--
-- Contraintes pour la table `validation`
--
ALTER TABLE `validation`
  ADD CONSTRAINT `FK_16AC5B6E6128735E` FOREIGN KEY (`historique_id`) REFERENCES `history` (`id`),
  ADD CONSTRAINT `FK_16AC5B6EE57AEF2F` FOREIGN KEY (`validateur_id`) REFERENCES `user` (`id`);
COMMIT;

