-- --------------------------------------------------------
-- Hôte:                         127.0.0.1
-- Version du serveur:           10.11.8-MariaDB-ubu2204 - mariadb.org binary distribution
-- SE du serveur:                debian-linux-gnu
-- HeidiSQL Version:             12.8.0.6908
-- --------------------------------------------------------



-- Listage de la structure de la base pour paelo
DROP DATABASE IF EXISTS `paelo`;
CREATE DATABASE IF NOT EXISTS `paelo` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
USE `paelo`;

-- Listage de la structure de table paelo. activities
CREATE TABLE IF NOT EXISTS `activities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `assigned_training_id` int(11) NOT NULL,
  `date` date DEFAULT NULL,
  `type` varchar(10) DEFAULT NULL,
  `completed` tinyint(1) NOT NULL DEFAULT 0,
  `trainer_id` int(11) DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `status` varchar(255) DEFAULT NULL,
  `notes` varchar(255) DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `activity_presentiel_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `assigned_training_id` (`assigned_training_id`),
  KEY `activity_presentiel_id` (`activity_presentiel_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.activities : ~2 rows (environ)
REPLACE INTO `activities` (`id`, `name`, `assigned_training_id`, `date`, `type`, `completed`, `trainer_id`, `duration`, `status`, `notes`, `documents`, `activity_presentiel_id`, `created_at`, `updated_at`) VALUES
	(6, NULL, 16, '2024-09-21', 'Theory', 0, 4, 1800, 'Not Completed', 'test', NULL, 9, '2024-09-22 16:17:45', '2024-09-22 16:17:45'),
	(7, NULL, 17, '2024-09-21', 'Theory', 0, 4, 1800, 'Not Completed', 'test', NULL, 9, '2024-09-22 16:17:45', '2024-09-22 16:17:45');

-- Listage de la structure de table paelo. activities_presentiel
CREATE TABLE IF NOT EXISTS `activities_presentiel` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `presentiel_id` int(11) NOT NULL,
  `date` date DEFAULT NULL,
  `type` varchar(10) DEFAULT NULL,
  `completed` tinyint(1) NOT NULL DEFAULT 0,
  `trainer_id` int(11) DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `status` varchar(255) DEFAULT NULL,
  `notes` varchar(255) DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `fk_activities_assigned_trainings_fk` (`presentiel_id`),
  CONSTRAINT `fk_activities_assigned_trainings` FOREIGN KEY (`presentiel_id`) REFERENCES `presentiel` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.activities_presentiel : ~3 rows (environ)
REPLACE INTO `activities_presentiel` (`id`, `name`, `presentiel_id`, `date`, `type`, `completed`, `trainer_id`, `duration`, `status`, `notes`, `documents`, `created_at`, `updated_at`) VALUES
	(1, 'Acti Pres1', 1, '2024-08-21', 'Practice', 1, 1, 1500, 'Completed', 'dsdsff', NULL, '2024-08-31 15:53:14', '2024-09-22 09:48:34'),
	(2, 'Acti Pres2', 1, '2024-08-22', 'Theory', 1, 3, 7260, 'Completed', 'dsdsffds', NULL, '2024-08-31 15:53:14', '2024-09-08 14:48:22'),
	(9, NULL, 1, '2024-09-21', 'Theory', 0, 4, 1800, 'Not Completed', 'test', NULL, '2024-09-22 16:17:45', '2024-09-22 16:17:45');

-- Listage de la structure de table paelo. answer
CREATE TABLE IF NOT EXISTS `answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `task_id` int(11) NOT NULL,
  `answer` text NOT NULL,
  `correct` tinyint(1) NOT NULL,
  `feedback` text DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `filepath` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `questions_id` (`id`),
  KEY `questions_id_2` (`id`),
  KEY `task_id_3` (`task_id`),
  CONSTRAINT `answer_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.answer : ~7 rows (environ)
REPLACE INTO `answer` (`id`, `task_id`, `answer`, `correct`, `feedback`, `filename`, `filepath`, `created_at`, `updated_at`) VALUES
	(1, 1, 'A', 1, NULL, NULL, NULL, '2024-07-23 17:00:32', '2024-07-23 17:00:32'),
	(2, 1, 'B', 0, NULL, NULL, NULL, '2024-07-23 17:00:32', '2024-07-23 17:00:32'),
	(3, 1, 'C', 0, NULL, NULL, NULL, '2024-07-23 17:00:32', '2024-07-23 17:00:32'),
	(4, 7, 'Test', 1, NULL, NULL, NULL, '2024-07-23 17:00:32', '2024-07-23 17:00:32'),
	(6, 7, 'Test d', 0, NULL, 'Capture d’écran du 2021-11-03 17-16-51.png', 'public/documents/09847cc5a062c4439983b5494a02371a/TsgscLHlrHhENFDrXIGKfxPZn6OzmjoKBI4KYOY4.png', '2024-08-04 12:57:11', '2024-08-15 12:54:27'),
	(8, 2, 'Test1', 0, NULL, NULL, NULL, '2024-08-07 18:35:07', '2024-08-07 18:35:07'),
	(9, 2, 'Test 2', 0, NULL, NULL, NULL, '2024-08-07 18:35:15', '2024-08-07 18:35:15');

-- Listage de la structure de table paelo. assigned_training
CREATE TABLE IF NOT EXISTS `assigned_training` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `platform_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `mygroup_id` int(11) DEFAULT NULL,
  `training_id` int(11) DEFAULT NULL,
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `trainer_id` int(11) DEFAULT 0,
  `start_date` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `cert_date` date DEFAULT NULL,
  `attest_date` date DEFAULT NULL,
  `refresh_date` date DEFAULT NULL,
  `comments` text NOT NULL,
  `result` int(11) NOT NULL DEFAULT 0,
  `status` varchar(30) NOT NULL,
  `training_passed` tinyint(4) NOT NULL,
  `user_training_id` int(11) DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `training_demand_id` int(11) DEFAULT NULL,
  `presentiel_id` int(11) DEFAULT NULL,
  `training_group_id` int(11) DEFAULT NULL,
  `job_training_group_id` int(11) DEFAULT NULL,
  `practice` tinyint(1) DEFAULT NULL,
  `theory` tinyint(1) DEFAULT NULL,
  `user_form_id` int(11) NOT NULL DEFAULT 0,
  `company_id` int(11) DEFAULT NULL,
  `survey_id` int(11) NOT NULL DEFAULT 0,
  `completed` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  CONSTRAINT `assigned_training_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.assigned_training : ~5 rows (environ)
REPLACE INTO `assigned_training` (`id`, `platform_id`, `category_id`, `mygroup_id`, `training_id`, `type`, `user_id`, `trainer_id`, `start_date`, `due_date`, `cert_date`, `attest_date`, `refresh_date`, `comments`, `result`, `status`, `training_passed`, `user_training_id`, `documents`, `training_demand_id`, `presentiel_id`, `training_group_id`, `job_training_group_id`, `practice`, `theory`, `user_form_id`, `company_id`, `survey_id`, `completed`, `created_at`, `updated_at`) VALUES
	(4, 1, 4, 1, 4, '', 3, 4, '2024-09-02', '2024-09-03', '2024-09-04', '2024-09-10', '2024-09-16', 'Test 04', 0, 'Completed', 0, 1, NULL, 1, 2, NULL, NULL, NULL, NULL, 0, 1, 0, 0, '2024-09-02 03:06:14', '2024-09-07 11:18:13'),
	(5, 1, 5, 1, 5, '', 1, 4, '2024-09-02', '2024-09-03', '2024-09-04', '2024-09-10', '2024-09-16', 'Test 05', 0, 'In Progress', 0, 1, NULL, 1, 2, NULL, NULL, NULL, NULL, 0, 1, 0, 0, '2024-09-02 03:06:14', '2024-09-07 11:18:17'),
	(6, 1, 6, 1, 6, '', 1, 4, '2024-09-02', '2024-09-03', '2024-09-04', '2024-09-10', '2024-09-16', 'Test 06', 0, 'Completed', 0, 1, NULL, 1, 3, NULL, NULL, NULL, NULL, 0, 1, 0, 0, '2024-09-02 03:06:14', '2024-09-07 11:18:19'),
	(16, 1, 1, NULL, 1, NULL, 4, 5, '2024-08-15', NULL, NULL, NULL, NULL, '', 0, 'In Progress', 0, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 0, 1, 0, 0, '2024-09-22 16:16:41', '2024-09-22 16:16:41'),
	(17, 1, 1, NULL, 1, NULL, 9, 5, '2024-08-15', NULL, NULL, NULL, NULL, '', 0, 'In Progress', 0, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 0, 1, 0, 0, '2024-09-22 16:16:41', '2024-09-22 16:16:41');

-- Listage de la structure de table paelo. cache
CREATE TABLE IF NOT EXISTS `cache` (
  `key` varchar(255) NOT NULL,
  `value` mediumtext NOT NULL,
  `expiration` int(11) NOT NULL,
  PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.cache_locks : ~0 rows (environ)

-- Listage de la structure de table paelo. categories
CREATE TABLE IF NOT EXISTS `categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_name` varchar(60) NOT NULL,
  `cat_num` int(11) NOT NULL DEFAULT 0,
  `new_name` varchar(60) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `video_fr` varchar(255) DEFAULT NULL,
  `video_en` varchar(255) DEFAULT NULL,
  `video_es` varchar(255) DEFAULT NULL,
  `video_pt` varchar(255) DEFAULT NULL,
  `video_de` varchar(255) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `categoryID` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.categories : ~12 rows (environ)
REPLACE INTO `categories` (`id`, `cat_name`, `cat_num`, `new_name`, `image`, `video_fr`, `video_en`, `video_es`, `video_pt`, `video_de`, `code`, `created_at`, `updated_at`) VALUES
	(1, 'General', 1, 'Online training and evaluation', 'images/u9v78X9QuRgdWK4kpcwE1crm38gt6WAe6rC32eMh.jpg', NULL, NULL, NULL, NULL, NULL, 'online_training_and_evaluation', '2024-06-26 20:43:46', '2024-10-14 14:34:17'),
	(2, 'Procedures', 2, 'Online reading procedures', 'images/rRwBAJ8oTbEv8LM7WRfrc62674WpwJLNQBkSlpQV.jpg', NULL, NULL, NULL, NULL, NULL, 'online_reading_procedures', '2024-06-26 21:00:00', '2024-10-14 14:33:15'),
	(3, 'Professional', 3, 'Interactive apprentice booklet', 'images/FvYb2mdVJgnGIhfUtIQibN6Ui3Go4586uGckaGBc.png', NULL, NULL, NULL, NULL, NULL, 'interactive_apprentice_booklet', '2024-06-26 21:10:19', '2024-10-14 14:33:54'),
	(4, 'Interactive Survey', 11, 'Interactive Survey', 'images/qGojHv2g7L6pB5PJEEtdbfbtnRYILIpav2n4ApII.png', 'videos/X7W3izrp9paujbcyfhy5kVudLcaBepID4I8ORJM5.mp4', NULL, NULL, NULL, NULL, 'interactive_survey', '2024-06-26 21:43:05', '2024-10-14 14:38:10'),
	(5, 'Personal Survey', 12, 'Personal Survey', 'images/TWKQ2ta0VdqnIyTdQ4xqVTIILltt9e966FQN3JY2.png', NULL, NULL, NULL, NULL, NULL, 'personal_survey', '2024-06-26 21:44:35', '2024-10-14 14:38:31'),
	(6, '3D Inspection', 4, 'Inspection of equipment in 3D', 'images/WLKRq7AE6CFg1Zt9ikoGVIaPPU8WKqeK6tmVAARS.png', NULL, NULL, NULL, NULL, NULL, 'inspection_of_equipment_in_3d', '2024-06-26 21:45:51', '2024-10-14 14:32:25'),
	(7, 'Form', 7, 'Form', 'images/j2MIUIqR5hV9B0xv4rmEQEzbAVxQWuIO0hecmOA8.png', NULL, NULL, NULL, NULL, NULL, 'form', '2024-06-26 21:46:50', '2024-10-14 14:31:19'),
	(8, 'Reports', 8, 'Reports', 'images/l4vQ6FfbXeKBpcrB56AGqEvhIGPI4lbBCCltJoET.png', NULL, NULL, NULL, NULL, NULL, 'reports', '2024-06-26 21:48:21', '2024-10-14 14:34:58'),
	(9, 'Work Card', 9, 'Work Card', 'images/ymzSMEORbMXqYv97lvr13fKGEns5nPlSRNbID6fE.png', NULL, NULL, NULL, NULL, NULL, 'work_card', '2024-06-26 21:49:28', '2024-10-14 14:36:48'),
	(10, 'Daily goals', 10, 'Daily goals', 'images/RM7pWUm1rb9dMRLWAKCy9ix0RPdMxOOHRNkn2fdK.jpg', NULL, NULL, NULL, NULL, NULL, 'daily_goals', '2024-07-08 19:08:30', '2024-10-14 14:37:26'),
	(11, 'Video Library', 5, 'Video Library', 'images/MxWMrSp3F9m585JuRXxetenTGdN79LURfsFt6TiN.jpg', NULL, NULL, NULL, NULL, NULL, 'video_library', '2024-07-08 19:09:33', '2024-10-14 14:32:12'),
	(12, 'Lockout sheets', 6, 'Lockout sheets', 'images/4sdwagt1916d6jwcYWo2RWRYSUxSnJqqnnavfTms.png', NULL, NULL, NULL, NULL, NULL, 'lockout_sheets', '2024-07-08 19:10:28', '2024-10-14 14:30:20');

-- Listage de la structure de table paelo. competency
CREATE TABLE IF NOT EXISTS `competency` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `prefix` varchar(100) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `competency` (`name`,`company_id`),
  KEY `competency_companies_fk` (`company_id`),
  CONSTRAINT `competency_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.competency : ~0 rows (environ)

-- Listage de la structure de table paelo. competency_cards
CREATE TABLE IF NOT EXISTS `competency_cards` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `competency_name` varchar(255) NOT NULL,
  `training_service` varchar(255) NOT NULL,
  `curriculum` varchar(255) NOT NULL,
  `approved` tinyint(4) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `approved_by` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `competency_card_company_fk` (`company_id`),
  KEY `fk_users_user_id` (`approved_by`),
  KEY `fk_users_user_id_2` (`created_by`),
  CONSTRAINT `competency_card_company_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_users_user_id` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  CONSTRAINT `fk_users_user_id_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.competency_cards : ~0 rows (environ)

-- Listage de la structure de table paelo. departments
CREATE TABLE IF NOT EXISTS `departments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `departments` (`name`,`company_id`),
  KEY `departments_companies_fk` (`company_id`),
  CONSTRAINT `departments_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=611 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.departments : ~296 rows (environ)
REPLACE INTO `departments` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Santé-Sécurité', 1, '2024-07-05 03:38:48', '2024-07-15 16:30:35'),
	(2, 'Ressources Humaines', 1, '2024-07-05 23:09:20', '2024-07-15 16:31:35'),
	(3, 'Mine', 1, '2024-07-05 23:09:36', '2024-07-15 16:32:04'),
	(4, 'Maintenance', NULL, '2024-07-05 23:09:53', '2024-07-05 23:09:53'),
	(5, 'Services Surface', NULL, '2024-07-05 23:10:13', '2024-07-05 23:10:13'),
	(6, 'Entrepôt', NULL, '2024-07-05 23:10:25', '2024-07-05 23:10:25'),
	(7, 'Environnement', NULL, '2024-07-05 23:10:37', '2024-07-05 23:10:55'),
	(8, 'Human Resources (HR)', NULL, '2024-07-05 23:11:16', '2024-07-05 23:11:16'),
	(9, 'Maintenance 2', NULL, '2024-07-05 23:11:32', '2024-07-05 23:11:32'),
	(10, 'Production', 1, '2024-07-05 23:11:54', '2024-07-15 16:32:13'),
	(11, 'Production', NULL, '2024-07-05 23:12:06', '2024-07-05 23:12:06'),
	(12, 'Mécaniciens', NULL, '2024-07-05 23:12:22', '2024-07-05 23:12:22'),
	(13, 'Direction', NULL, '2024-07-05 23:12:45', '2024-07-05 23:12:45'),
	(14, 'MADA', NULL, '2024-07-05 23:12:57', '2024-07-05 23:12:57'),
	(24, 'Usine procédé', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(25, 'Garage', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(26, 'Traitement des eaux', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(27, 'Environnement', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(28, 'Ressources Humaines', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(29, 'Entrepôt', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(30, 'Santé-Sécurité', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(31, 'Formation', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(32, 'Mine, surface', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(33, 'Mine sous terre', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(34, 'Administration', 18, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(35, 'Garage', 18, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(36, 'Opér.local +Pit', 18, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(37, 'PBA', 18, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(38, 'PBO', 18, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(42, 'Formation', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(43, 'Santé-Sécurité', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(44, 'Ressources Humaines', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(45, 'Mine', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(46, 'Maintenance ', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(48, 'Services Surface', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(49, 'Entrepôt', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(50, 'Environnement', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(51, 'Human Resources (HR)', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(52, 'CCQ', 18, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(53, 'Santé-Sécurité', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(54, 'Formation', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(55, 'Ressources Humaines', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(59, 'Environnement', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(69, 'Maintenance  2', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(72, 'Administration', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(73, 'Comptabilité', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(74, 'Direction ', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(75, 'Entretien', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(76, 'Exploration', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(77, 'Géologie', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(78, 'Ingénierie', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(79, 'Mécanique', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(80, 'RH', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(81, 'Sous-terre', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(82, 'SST', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(83, 'Surface', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(84, 'Usine', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(85, 'Beacon', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(86, 'Environnement', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(87, 'Electrique', 23, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(340, 'Administration', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(341, 'Composé', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(342, 'Contrôle qualité', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(343, 'Emballage', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(344, 'Expédition', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(345, 'Extrusion', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(346, 'Maintenance', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(347, 'Opérations secondaires', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(348, 'Outillage', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(349, 'Recursos humanos', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(350, 'Environnement', 20, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(358, 'Construction', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(359, 'Department 2', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(360, 'Entretien', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(361, 'Opérations Minières', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(362, 'Administration', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(363, 'Services Techniques', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(364, 'Exploitation', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(365, 'Usine', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(366, 'Entrepreneur', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(367, 'Ressources humaines et santé-sécurité', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(368, 'Technique ', 32, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(369, 'Logistique', 32, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(370, 'Exploration', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(371, 'FBC-Admin', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(372, 'AVP-AA', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(373, 'AVP-CC', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(374, 'AVP-SAC', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(375, 'PP-COPY', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(376, 'FBC-Membre', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(377, 'Maintenance', 32, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(378, 'Odyssey - Administration', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(379, '100         Haldes - Préparation', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(380, '200         Lixiviation', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(381, '300         Deshydratation', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(382, '400         Électrolyse', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(383, '500        Centre de coulée', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(384, '500E     Fonderie recyclage', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(385, '600         Synthese HCL', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(386, '700         Infrastructure', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(387, '800         Services', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(388, '900         Cout indirect', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(389, '010         Admin', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(390, '020         Ventes et Marketing', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(391, '030         R&D', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(392, '040         Entretien Mines', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(393, '050         RH', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(394, '060         Communications', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(395, '070         Laboratoire', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(396, '080         R & D ', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(397, '090         .', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(398, 'Santé-Sécurité', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(399, 'Ressources Humaines', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(400, 'Production', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(401, 'Environnement', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(402, 'Direction', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(403, 'Ventes', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(404, 'Achats', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(405, 'Qualité', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(406, 'Opération Minières', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(407, 'Odyssey - Construction', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(408, 'Ressources humaines et santé sécurité', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(409, 'Projets', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(410, 'Odyssey - Mine', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(411, 'Mécanique', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(412, 'Developpement durable et environnement partenariat', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(413, 'Communication et relation avec le milieu', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(414, 'Odyssey', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(415, 'Opération minière Sandvik', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(416, 'Juridique', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(417, 'Mine Géologie', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(418, 'Mine Mécanique', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(419, 'Ressources Naturelles Canada', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(420, 'Ventes', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(421, 'Santé et sécurité', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(422, 'Mine entretien', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(423, 'Soudeur', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(424, 'Norascon', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(425, 'Op.Mine - Maintenance', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(426, 'Instrumentation', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(427, 'Usine Planification', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(428, 'Rochester NH', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(429, 'Support technique', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(430, 'Stagiaire', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(431, 'Saint-Laurent QC', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(432, 'Informatique', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(433, '900         Indirects construction', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(434, 'Administration', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(435, 'Service technique', 37, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(436, 'Laminé', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(437, 'Granulation', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(438, 'Nettoyage', 36, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(439, 'Service d\'Impartition Industriel', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(443, 'Usine', 40, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(444, 'Ressources Humaines', 40, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(445, 'Production', 40, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(446, 'Mécanique', 40, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(447, 'Électrique', 40, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(448, 'Amélioration continue', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(449, 'Automatisation', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(450, 'Ressources Humaines', 41, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(451, 'Santé-Sécurité', 41, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(452, 'Direction', 41, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(453, 'Production', 41, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(454, 'Maintenance', 41, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(455, 'departement test 27 mars  malala', 19, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(456, 'Opérations | Production', 45, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(457, 'Ressources Humaines', 45, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(458, 'Santé-Sécurité', 45, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(459, 'Maintenance', 45, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(460, 'Santé-Sécurité', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(461, 'Ressources Humaines', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(462, 'Formation', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(463, 'Mine surface', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(464, 'Usine', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(466, 'Maintenance', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(467, 'Services Surface', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(468, 'Direction', 49, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(469, 'Santé-Sécurité', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(470, 'Ressources Humaines', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(471, 'Formation', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(472, 'Mine surface', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(473, 'Mine sous terre', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(474, 'Usine', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(475, 'Direction', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(476, 'Garage', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(477, 'Environnement', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(478, 'Entrepôt', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(479, 'Services Surface', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(480, 'Santé-Sécurité', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(481, 'Ressources Humaines', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(482, 'Formation', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(483, 'Maintenance mécanique', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(484, 'Maintenance électrique', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(485, 'Opérations | Production', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(486, 'Bureau/ administration', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(487, 'Mécaniciens', 38, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(488, 'Étudiant', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(489, 'Parcs à résidus', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(490, '11-Mine Operations', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(491, '12-Mine Maintenance', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(492, '13-Mine Geology', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(493, '14-Mine Engineering', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(494, '15-Mill Administration', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(495, '16-Mill Operation', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(496, '17-Mill Maintenance', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(497, '18-Mill Metallurgy', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(498, '19-Mill Assay Laboratory', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(499, '20-General Management', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(500, '21-Supply Chain', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(501, '22-Human Resources', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(502, '23-Security', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(503, '24-IT', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(504, '25-Accounting', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(505, '26-Surface Support', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(506, '27-Environment', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(507, '28-Health&Safety', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(508, 'Supervision', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(509, 'Développement durable', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(510, 'Direction', 51, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(511, 'Centrale Énergie', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(512, 'Services Techniques', 50, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(513, 'Production', 52, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(514, 'Administration', 52, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(515, 'Garage', 52, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(516, 'AVP', 31, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(517, 'Camp', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(518, 'Environnement', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(519, 'Garage', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(520, 'Géologie', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(521, 'Groupe Endeavour', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(522, 'Ressources-Humaines', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(523, 'Santé-Sécurité', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(524, 'Usine', 54, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(525, '10-Construction', 24, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(526, 'Approvisionnement', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(527, 'Entretien mécanique', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(528, 'Entretien électrique', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(529, 'Instrumentation', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(530, 'Entretien surface', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(531, 'Mine', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(532, 'Exploration', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(533, 'Usine', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(534, 'Ingénierie', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(535, 'Géologie', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(536, 'Direction', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(537, 'Santé-Sécurité', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(538, 'Ressources Humaines', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(539, 'Usine', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(540, 'Maintenance', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(541, 'Laboratoire', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(542, 'Entrepôt', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(543, 'Planification', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(544, 'Achats', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(545, 'Comptabilité', 56, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(546, 'Mine sous terre', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(547, 'Usine', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(548, 'Maintenance', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(549, 'Santé-Sécurité', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(550, 'Ressources Humaines', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(551, 'Administration', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(552, 'Planification', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(553, 'Comptabilité', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(554, 'Entrepôt', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(555, 'Expédition', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(556, 'Services Surface', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(557, 'Environnement', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(558, 'Laboratoire', 57, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(559, 'open pit | mina a cielo abierto | mina a céu aberto', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(560, 'underground mine | mina subterránea | mina subterrânea', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(561, 'process plant | planta de procesado|fábrica de processamento', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(562, 'maintenance | mantenimiento | manutenção', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(563, 'human resources | recursos humanos | recursos humanos', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(564, 'health & safety | salud y seguridad | saúde e segurança', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(565, 'laboratory | laboratorio | laboratório', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(566, 'management | gestión | gestão', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(567, 'environment | entorno | ambiente', 58, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(568, 'Communication', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(569, 'Ressources Humaines', 59, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(570, 'Production', 59, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(571, 'Maintenance', 59, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(572, 'Ressources Humaines', 61, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(573, 'Santé-Sécurité', 61, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(574, 'Formation', 61, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(575, 'Maintenance', 61, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(576, 'Usine', 61, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(577, 'Services Surface', 61, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(578, 'Ressources Humaines | Human Resources', 62, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(580, 'Expédition | Shipping', 62, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(582, 'Administration | Management', 62, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(583, 'Santé-Sécurité | Health & Safety', 62, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(584, 'Usine | Factory', 62, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(585, 'Approvisionnement', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(593, 'Santé sécurité', 15, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(599, 'TRIAN', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37'),
	(609, 'EXPLO', 21, '2024-10-05 06:40:37', '2024-10-05 06:40:37');

-- Listage de la structure de table paelo. employers
CREATE TABLE IF NOT EXISTS `employers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `employers` (`name`,`company_id`),
  KEY `employers_companies_fk` (`company_id`),
  CONSTRAINT `employers_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- Listage des données de la table paelo.employers : ~6 rows (environ)
REPLACE INTO `employers` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Global Formation Inc.', 1, '2024-07-04 21:18:39', '2024-07-04 21:18:39'),
	(3, 'NSC Formation Développement', NULL, '2024-07-04 22:25:14', '2024-07-04 22:25:14'),
	(4, 'PCM', NULL, '2024-07-04 22:25:30', '2024-07-04 22:25:30'),
	(5, 'Béton Barette', NULL, '2024-07-04 22:26:16', '2024-07-04 22:26:32'),
	(6, 'Eldorado', NULL, '2024-07-04 22:26:45', '2024-07-04 22:26:45'),
	(7, 'Galaxy Lithium (Canada) Inc', NULL, '2024-07-04 22:27:00', '2024-07-04 22:27:37');

-- Listage de la structure de table paelo. employe_category
CREATE TABLE IF NOT EXISTS `employe_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(2552) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.employe_category : ~4 rows (environ)
REPLACE INTO `employe_category` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Category 1', NULL, '2024-07-05 03:40:24', '2024-07-06 14:10:42'),
	(2, 'Category 2', NULL, '2024-07-06 14:10:54', '2024-07-06 14:10:54'),
	(3, 'categorie test 27 mars malala', NULL, '2024-07-06 14:11:06', '2024-07-06 14:11:40'),
	(4, 'Groupe lebel test', NULL, '2024-07-06 14:11:22', '2024-07-06 14:11:22');

-- Listage de la structure de table paelo. equipements
CREATE TABLE IF NOT EXISTS `equipements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  CONSTRAINT `equipements_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.equipements : ~27 rows (environ)
REPLACE INTO `equipements` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Equipement 1', 19, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(2, 'Equipement 2', 19, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(3, 'Chargeuse navette', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(4, 'Camion CAT', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(5, 'Camion Sandvik', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(6, 'Jeep', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(7, 'Tracteur', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(8, 'Ciseau PLA', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(9, 'Boulonneuse', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(10, 'Jumbo', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(11, 'BlocHoler', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(12, 'Pépine rétrocaveuse CAT ', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(13, 'Pelle Kubota', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(14, 'Boomtruck', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(15, 'Téléhandler', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(16, 'Loader', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(17, 'Manitou', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(18, 'Skyjack', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(19, 'Nacelle', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(20, 'Bétonnière', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(21, 'Chariot élévateur', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(22, 'PAUS- Explosifs', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(23, 'PAUS - Sauvetage minier', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(24, 'SPLH', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(25, 'Petite pelle Bobcat', 21, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(26, 'Equipement 1', 1, '2024-07-16 15:42:40', '2024-07-16 15:42:40'),
	(27, 'Equipement 2', 1, '2024-07-16 15:42:40', '2024-07-16 15:42:40');

-- Listage de la structure de table paelo. failed_jobs
CREATE TABLE IF NOT EXISTS `failed_jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.failed_jobs : ~0 rows (environ)

-- Listage de la structure de procédure paelo. fillable
DROP PROCEDURE IF EXISTS `fillable`;
	
END//
DELIMITER ;

-- Listage de la structure de table paelo. forms
CREATE TABLE IF NOT EXISTS `forms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `category_id` int(11) NOT NULL,
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `presentiel` tinyint(4) NOT NULL DEFAULT 0,
  `training_id` int(11) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `forms_employers_fk` (`company_id`),
  KEY `category_id` (`category_id`),
  KEY `training_id` (`training_id`),
  CONSTRAINT `forms_employers_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `forms_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.forms : ~5 rows (environ)
REPLACE INTO `forms` (`id`, `name`, `category_id`, `image`, `company_id`, `presentiel`, `training_id`, `created_at`, `updated_at`) VALUES
	(1, 'Création de formulaire relié à une formation présentielle', 7, NULL, 1, 0, 0, '2024-07-14 03:16:44', '2024-09-10 16:54:59'),
	(2, 'Test 2', 7, NULL, 1, 1, 2, '2024-07-14 03:16:44', '2024-08-25 04:31:47'),
	(3, 'Test 3', 9, NULL, 1, 0, 0, '2024-07-14 03:16:44', '2024-07-14 03:16:44'),
	(6, 'Test Form all Field', 7, NULL, 1, 1, 4, '2024-08-25 09:51:55', '2024-08-25 09:51:55'),
	(7, 'Test Work', 9, NULL, 1, 1, 2, '2024-08-25 14:59:42', '2024-08-25 14:59:42');

-- Listage de la structure de table paelo. form_fields
CREATE TABLE IF NOT EXISTS `form_fields` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `form_id` int(11) NOT NULL,
  `field` varchar(255) NOT NULL,
  `type` int(11) NOT NULL,
  `content` varchar(2048) DEFAULT NULL,
  `order` int(11) NOT NULL,
  `required` tinyint(4) DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `forms_form_id_fk` (`form_id`),
  CONSTRAINT `form_fields_ibfk_1` FOREIGN KEY (`form_id`) REFERENCES `forms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.form_fields : ~27 rows (environ)
REPLACE INTO `form_fields` (`id`, `form_id`, `field`, `type`, `content`, `order`, `required`, `created_at`, `updated_at`) VALUES
	(2, 2, 'Test Field', 3, NULL, 1, 1, '2024-08-24 19:16:39', '2024-08-24 19:16:39'),
	(5, 2, 'Test Fiel 2d', 13, 'Blue 2', 3, 0, '2024-08-25 04:59:31', '2024-08-25 05:13:12'),
	(6, 2, 'Test Field 454', 2, NULL, 5, 0, '2024-08-25 06:00:57', '2024-08-25 06:07:13'),
	(7, 6, 'Section Title', 1, 'Contenu Section Title', 1, 0, '2024-08-25 09:55:58', '2024-08-25 11:27:38'),
	(8, 6, 'Separator', 2, 'Contenu Separator', 2, 0, '2024-08-25 09:55:58', '2024-08-25 11:27:38'),
	(9, 6, 'Text', 3, 'Contenu Text', 3, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(10, 6, 'Number', 4, 'Contenu Number', 4, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(11, 6, 'Choice', 5, 'Number of Childer|One|Two|Three', 5, 0, '2024-08-25 09:55:58', '2024-08-25 12:26:15'),
	(12, 6, 'Phone', 6, 'Contenu Phone', 6, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(13, 6, 'E-mail', 7, 'Contenu E-mail', 7, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(14, 6, 'Checkbox', 8, 'Contenu Checkbox', 8, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(15, 6, 'Date', 9, 'Contenu Date', 9, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(16, 6, 'Social Security Number', 10, 'Contenu Social Security Number', 10, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(17, 6, 'Sub-section Title', 11, 'Contenu Sub-section Title', 11, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(18, 6, 'Text (Plain)', 12, 'Contenu Text (Plain)', 12, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(19, 6, 'Text (Blue)', 13, 'Contenu Text (Blue)', 13, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(20, 6, 'Text (Yellow)', 14, 'Contenu Text (Yellow)', 14, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(21, 6, 'Text (Red)', 15, 'Contenu Text (Red)', 15, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(22, 6, 'Trainee Signature', 16, 'Contenu Trainee Signature', 16, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(23, 6, 'Instructor Signature', 17, 'Contenu Instructor Signature', 17, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(24, 6, 'Supervisor Signature', 18, 'Contenu Supervisor Signature', 18, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(25, 6, 'Assign to User', 19, 'Contenu Assign to User', 19, 0, '2024-08-25 09:55:58', '2024-08-25 09:55:58'),
	(38, 7, 'Test Field Work', 1, 'Test Field Work', 1, 0, '2024-08-25 15:03:13', '2024-08-25 15:03:13'),
	(39, 7, 'Test Field Work 2', 19, NULL, 2, 1, '2024-08-25 15:04:02', '2024-08-25 15:04:02'),
	(40, 1, 'Nom & prénom', 3, 'Test', 2, 0, '2024-09-10 16:36:32', '2024-09-10 17:10:56'),
	(41, 1, 'Nombre d\'enfants', 5, 'Nombre d\'enfants|Un|Deux|Trois', 3, 0, '2024-09-10 16:38:03', '2024-09-10 16:38:03'),
	(42, 1, 'User Signature', 16, NULL, 5, 0, '2024-09-13 18:10:04', '2024-09-13 18:10:55');

-- Listage de la structure de table paelo. form_field_types
CREATE TABLE IF NOT EXISTS `form_field_types` (
  `id` int(11) NOT NULL DEFAULT 0,
  `name` varchar(50) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.form_field_types : ~19 rows (environ)
REPLACE INTO `form_field_types` (`id`, `name`, `created_at`, `updated_at`) VALUES
	(1, 'Section Title', '2024-08-24 19:29:49', '2024-08-24 19:29:49'),
	(2, 'Separator', '2024-08-24 19:29:49', '2024-08-24 19:29:49'),
	(3, 'Text', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(4, 'Number', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(5, 'Choice', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(6, 'Phone', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(7, 'E-mail', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(8, 'Checkbox', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(9, 'Date', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(10, 'Social Security Number', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(11, 'Sub-section Title', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(12, 'Text (Plain)', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(13, 'Text (Blue)', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(14, 'Text (Yellow)', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(15, 'Text (Red)', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(16, 'Trainee Signature', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(17, 'Instructor Signature', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(18, 'Supervisor Signature', '2024-08-24 19:38:04', '2024-08-24 19:38:04'),
	(19, 'Assign to User', '2024-08-24 19:38:04', '2024-08-24 19:38:04');

-- Listage de la structure de table paelo. groups
CREATE TABLE IF NOT EXISTS `groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` text DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `groups` (`name`,`company_id`),
  KEY `groups_companies_fk` (`company_id`),
  CONSTRAINT `groups_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.groups : ~0 rows (environ)

-- Listage de la structure de table paelo. group_company
CREATE TABLE IF NOT EXISTS `group_company` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.group_company : ~8 rows (environ)
REPLACE INTO `group_company` (`id`, `name`, `created_at`, `updated_at`) VALUES
	(1, 'Groupe test', '2024-06-24 21:51:34', '2024-07-10 21:24:40'),
	(2, 'QMM Rio Tinto', '2024-06-24 22:01:04', '2024-07-10 21:24:53'),
	(3, 'Agnico Eagle', '2024-06-26 20:21:05', '2024-07-10 21:25:05'),
	(4, 'Eldorado Gold Québec', '2024-07-10 21:25:21', '2024-07-10 21:25:21'),
	(6, 'Groupe Lebel', '2024-07-10 21:25:41', '2024-07-10 21:25:41'),
	(7, 'Groupe Mecanitec', '2024-07-10 21:25:51', '2024-07-10 21:25:51'),
	(8, 'Equinox Gold', '2024-07-10 21:25:59', '2024-07-10 21:25:59'),
	(9, 'Groupe Bellemare', '2024-07-10 21:26:08', '2024-07-10 21:26:08');

-- Listage de la structure de table paelo. jobs
CREATE TABLE IF NOT EXISTS `jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(255) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) unsigned NOT NULL,
  `reserved_at` int(10) unsigned DEFAULT NULL,
  `available_at` int(10) unsigned NOT NULL,
  `created_at` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.jobs : ~0 rows (environ)

-- Listage de la structure de table paelo. job_batches
CREATE TABLE IF NOT EXISTS `job_batches` (
  `id` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `total_jobs` int(11) NOT NULL,
  `pending_jobs` int(11) NOT NULL,
  `failed_jobs` int(11) NOT NULL,
  `failed_job_ids` longtext NOT NULL,
  `options` mediumtext DEFAULT NULL,
  `cancelled_at` int(11) DEFAULT NULL,
  `created_at` int(11) NOT NULL,
  `finished_at` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.job_batches : ~0 rows (environ)

-- Listage de la structure de table paelo. job_training_group
CREATE TABLE IF NOT EXISTS `job_training_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `description` text DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `prefix` varchar(255) DEFAULT NULL,
  `under_revision` tinyint(4) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `job_training_group` (`name`,`company_id`),
  KEY `job_group_name` (`name`),
  KEY `job_training_group_companies_fk` (`company_id`),
  CONSTRAINT `job_training_group_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=976 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.job_training_group : ~537 rows (environ)
REPLACE INTO `job_training_group` (`id`, `name`, `description`, `company_id`, `prefix`, `under_revision`, `created_at`, `updated_at`) VALUES
	(1, 'JB 1', 'DESC JB1', 1, 'JB1 PRE', 0, '2024-07-27 08:02:47', '2024-07-27 08:02:47'),
	(2, 'JB 2', 'DESC JB2', 1, 'JB2 PRE', 1, '2024-07-27 08:02:47', '2024-07-27 08:02:47'),
	(6, 'Opérateur de cam.prod PBO', '', 18, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(8, 'Opérateur Usine', 'Liste des pré-requis pour occuper un poste d\'opérateur à l\'usine', 15, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(211, 'ADM-001-Paie maître', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(212, 'ADM-002-Commis aux comptes payables', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(213, 'ADM-003-Accountant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(214, 'ADM-004-Comptable senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(215, 'ADM-006-Technicien comptable', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(216, 'ADM-007-Technicien paie et comptabilité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(217, 'ADM-008-Contrôleur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(218, 'ADM-009-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(219, 'ADM-011-Comptable junior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(220, 'ADM-014-Comptable junior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(221, 'ADM-015-Coordonnateur de la paie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(222, 'APP-001-Acheteur junior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(223, 'APP-003-Opérateur d\'équipement lourd classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(224, 'APP-004-Commis à l\'entrepôt', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(225, 'APP-005-Coordonnateur en approvisionnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(226, 'APP-006-Surintendant approvisionnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(227, 'APP-007-Acheteur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(228, 'APP-008-Opérateur d\'équipement lourd classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(229, 'APP-009-Opérateur d\'équipement lourd classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(230, 'APP-010-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(231, 'APP-011-Coordonnateur senior en approvisionnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(232, 'APP-013-Coordonnateur senior achats et entrepôts', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(233, 'APP-014-Coordonnateur en approvisionnement stratégique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(234, 'CAP-001-Coordonnateur senior  Rampe de transport', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(235, 'CON-001-Construction project superintendent', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(236, 'CON-002-Ingénieur sr géotechnique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(237, 'DIR-001-Adjoint à la direction', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(238, 'DIR-002-Adjoint administratif', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(239, 'DIR-003-Directeur de l\'exploration Est du Canada', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(240, 'DIR-006-Directeur finances et administration', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(241, 'DIR-010-Conseiller en communication', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(242, 'DIR-011-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(243, 'DIR-014-Directeur santé et sécurité mondial', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(244, 'DIR-015-Adjoint exécutif au VPDG', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(245, 'DIR-016-Directeur projets construction', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(246, 'DIR-018-Directeur principal opérations et SST', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(247, 'DIR-019-Directeur operations et entretien Mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(248, 'DIR-021-Directeur usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(249, 'DIR-022-Directeur RH', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(250, 'DIR-024-Surintendant com stratégiques relations communauté', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(251, 'ELD-001-Employé Eldoradogold', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(252, 'ELE-001-Coordonnateur en automatisation', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(253, 'ELE-002-Électricien classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(254, 'ELE-003-Électricien classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(255, 'ELE-004-Électricien classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(256, 'ELE-005-Planificateur électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(257, 'ELE-006-Superviseur entretien électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(258, 'ELE-007-General electrical supervisor', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(259, 'ELE-008-Surintendant électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(260, 'ELE-009-Instrumentation and control technician class 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(261, 'ELE-010-Technicien en instrumentation et contrôle classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(262, 'ELE-011-Technicien en instrumentation et contrôle classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(263, 'ELE-012-Technicien en instrumentation et contrôle classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(264, 'ELE-013-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(265, 'ELE-014-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(266, 'ELE-015-Surintendant électrique et services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(267, 'ELE-016-Coordonnateur senior électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(268, 'ELE-017-Superviseur général électrique et services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(269, 'ELE-099-chef d\'équipe instrumentation et contrôle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(270, 'ELE-100-Entrepreneur Électrique surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(271, 'ELE-101-Entrepreneur Électrique surface et sous terre', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(272, 'ENV-001-Coordonnateur en environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(273, 'ENV-002-Sustainable development superintendent', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(274, 'ENV-003-Environment operation superintendant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(275, 'ENV-004-Technicien en environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(276, 'ENV-005-Conseiller en environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(277, 'ENV-006-Coordonnateur senior en environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(278, 'ENV-007-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(279, 'ENV-008-Surintendant Principal Environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(280, 'ENV-010-Expert-conseil  projets et permis', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(281, 'ENV-011-Gestionnaire de système en environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(282, 'ENV-012-Surintendant Environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(283, 'ETU-001-Étudiant Cégep 2 - Usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(284, 'ETU-002-Étudiant Universitaire 1 - Adm.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(285, 'ETU-003-Étudiant Universitaire 1 - Approv.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(286, 'ETU-004-Étudiant Universitaire 2 - Surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(287, 'EXP-001-Assistant technique à l\'exploration', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(288, 'EXP-002-Géologue', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(289, 'EXP-003-Géologue d\'exploration Intermédiaire - Explo', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(290, 'EXP-004-Géologue modélisation et ressources - Explo', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(291, 'EXP-005-Géologue senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(292, 'EXP-006-Préposé à la carothèque classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(293, 'EXP-007-Coreshack attendant class 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(294, 'EXP-008-Superviseur technique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(295, 'EXP-010-Chef géologue', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(296, 'EXP-011-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(297, 'EXP-012-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(298, 'EXP-013-Technicien en gestion de données', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(299, 'EXP-014-Géologue junior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(300, 'EXP-015-Préposé à la carothèque classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(301, 'EXP-016-Préposé à la carothèque classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(302, 'EXP-017-Préposé à la carothèque classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(303, 'EXP-018-Surintendante exploration', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(304, 'EXP-100-Entrepreneur Exploration', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(305, 'EXP-102-Forage Orbit Garant Surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(306, 'EXP-103-Étudiant CFPVD Forage Surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(307, 'GEO-001-Chef géologue', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(308, 'GEO-002-Géologue', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(309, 'GEO-003-Geologue junior de production', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(310, 'GEO-004-Géologue junior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(311, 'GEO-005-Géologue senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(312, 'GEO-006-Coreshack attendant class 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(313, 'GEO-007-Technicien en géologie base de données et dessin', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(314, 'GEO-010-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(315, 'GEO-011-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(316, 'GEO-012-Technicien en géologie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(317, 'GEO-013-Préposé à la carothèque classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(318, 'GEO-021-Géologue exploration', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(319, 'INF_005-Surintendant TI', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(320, 'INF-001-IT chief', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(321, 'INF-002-Technicien en informatique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(322, 'INF-003-Administrateur systèmes', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(323, 'INF-004-Senior system administrator IT technician', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(324, 'INF-006-Coordonnateur TI', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(325, 'INF-007-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(326, 'INF-008-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(327, 'ING-001-Chef ingénieur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(328, 'ING-002-Ingenieur en mecanique des roches', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(329, 'ING-003-Ingenieur en planification', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(330, 'ING-004-Ingénieur minier', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(331, 'ING-005-Ingénieur minier junior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(332, 'ING-006-Ingénieur minier senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(333, 'ING-007-Adjoint administratif', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(334, 'ING-008-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(335, 'ING-009-Technicien minier', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(336, 'ING-010-Technicien minier senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(337, 'ING-011-Technicien minier senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(338, 'ING-012-Administrative assistant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(339, 'ING-013-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(340, 'ING-014-Junior mining technician', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(341, 'ING-015-Ingénieur construction', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(342, 'ING-016-Ingénieur minier planification', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(343, 'ING-017-Surintendant ingénierie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(344, 'ING-018-Surintendant  services technique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(345, 'ING-019-Technicien contrôle de terrain', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(346, 'ING-021-Adjoint à la direction principal', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(347, 'ING-022-Coordonnateur senior  Rampe de transport', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(348, 'ING-100-Géoposition', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(349, 'MEC-001-Planificateur mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(350, 'MEC-002-Planificateur mécanique senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(351, 'MEC-003-Superviseur entretien mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(352, 'MEC-005-Mecanicien fixe classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(353, 'MEC-006-Mécanicien fixe classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(354, 'MEC-007-Mécanicien fixe classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(355, 'MEC-008-Mécanicien foreuse classe 1 - Ent. méc', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(356, 'MEC-009-Mécanicien mobile classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(357, 'MEC-010-Mécanicien mobile classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(358, 'MEC-011-Superviseur général mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(359, 'MEC-012-Journalier entretien', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(360, 'MEC-013-Surintendant mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(361, 'MEC-014-Mécanicien mobile classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(362, 'MEC-015-Continuous improvement specialist', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(363, 'MEC-016-Mécanicien fixe classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(364, 'MEC-017-Fiabiliste', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(365, 'MEC-019-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(366, 'MEC-020-Coordonnateur senior entretien', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(367, 'MEC-023-Spécialiste senior en amélioration continue', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(368, 'MEC-100-Entrepreneur Mécanique Surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(369, 'MEC-101-Entrepreneur mécanique surface et sous-terre', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(370, 'MIN-001-Capitaine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(371, 'MIN-002-Dynamiteur chargement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(372, 'MIN-003-Dynamiteur long trou', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(373, 'MIN-004-Ingénieur de production - Mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(374, 'MIN-005-Foreur long trou', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(375, 'MIN-006-Mineur de construction', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(376, 'MIN-007-Mineur de développement boulonneuse', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(377, 'MIN-008-Mineur de développement jumbo', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(378, 'MIN-009-Mineur de service général', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(379, 'MIN-010-Mineur de service au développement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(380, 'MIN-011-Opérateur camion production', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(381, 'MIN-012-Opérateur chargeuse navette', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(382, 'MIN-013-Opérateur de niveleuse', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(383, 'MIN-014-Superviseur mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(384, 'MIN-015-Surintendant mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(385, 'MIN-016-Technicien salle de contrôle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(386, 'MIN-017-Assistant surintendant mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(387, 'MIN-018-Mineur de préparation de chantier', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(388, 'MIN-019-Apprenti mineur de service général', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(389, 'MIN-020-Capitaine senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(390, 'MIN-021-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(391, 'MIN-022-Senior technician control room', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(392, 'MIN-023-Superviseur mine - Forage dynamitage', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(393, 'MIN-024-Commis', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(394, 'MIN-025-Superviseur salle de contrôle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(395, 'MIN-026-Ingénieur logistique opérationnelle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(396, 'MIN-099-Apte au temps suplémentaire de mineur de service', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(397, 'MIN-100-Entrepreneur mine surface et sous terre', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(398, 'MIN-101-Machine Roger International Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(399, 'MIN-103-Etudiants CFPVD Mine extraction', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(400, 'MIN-104-Forage Orbit Garant Sous-Terre', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(401, 'MIN-108-Groupe minier CMAC Thyssen Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(402, 'MIN-109-Procon est du canada', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(403, 'MIN-110-L. Fournier & Fils inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(404, 'MIN-113-Métal Plus Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(405, 'MIN-114-Moreau Industries', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(406, 'MIN-115-Orica Canada Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(407, 'MIN-116-PL Industries Inc', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(408, 'MIN-117-Procon Est du Canada Ltée', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(409, 'MIN-120-Soudure DuFer', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(410, 'MIN-123-Méga Centre Kubota', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(411, 'MIN-126-Meglab', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(412, 'RHU-001-Agente aux ressources humaines', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(413, 'RHU-002-Concierge', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(414, 'RHU-003-Conseiller aux ressources humaines', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(415, 'RHU-004-Coordonnatrice en developpement organisationnel', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(416, 'RHU-005-Coordonnateur senior aux ressources humaines', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(417, 'RHU-006-Housekeeping attendant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(418, 'RHU-007-Formateur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(419, 'RHU-008-Superviseur formateur formation opérationnelle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(420, 'RHU-009-Surintendant aux ressources humaines', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(421, 'RHU-010-Commis administratif à la formation', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(422, 'RHU-011-Human resources coordinator', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(423, 'RHU-012-Réceptionniste/Commis administratif', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(424, 'RHU-013-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(425, 'RHU-014-Coordonnateur senior développement organisationnel', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(426, 'RHU-016-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(427, 'RHU-018-Préposé à l\'entretien ménager', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(428, 'SST-001-Agent d\'accueil et santé sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(429, 'SST-002-Coordonnateur en santé sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(430, 'SST-003-Surintendant santé sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(431, 'SST-004-Infirmier', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(432, 'SST-005-Coordonnateur senior santé et sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(433, 'SST-006-Expert conseil stratégique et projets spéciaux', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(434, 'SST-007-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(435, 'SST-008-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(436, 'SST-099-Membre du CSS', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(437, 'SST-100-Membre équipe Sauvatage Minier', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(438, 'SST-101-Secouriste en milieu de travail', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(439, 'SST-111-Industrial scientific', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(440, 'STA-001-Stagiaire Cégep 1 - Entretien électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(441, 'STA-002-Stagiaire Cégep 2 - Ingénierie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(442, 'STA-003-Stag. Universitaire 1 - Mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(443, 'STA-004-Stag. Universitaire 1 - Environnement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(444, 'STA-005-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(445, 'STA-006-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(446, 'STA-007-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(447, 'STA-008-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(448, 'STA-009-Stag. Universitaire 3 - SST', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(449, 'STA-010-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(450, 'STA-011-Stag. Universitaire 4 - Entretien', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(451, 'STA-012-Stag. Universitaire 4 - Mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(452, 'SUR-001-Menuisier classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(453, 'SUR-002-Opérateur d\'équipement lourd classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(454, 'SUR-003-Opérateur d\'équipement lourd classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(455, 'SUR-004-Opérateur d\'équipement lourd classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(456, 'SUR-005-Superviseur de chantier', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(457, 'SUR-006-Menuisier et services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(458, 'SUR-007-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(459, 'SUR-008-Etudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(460, 'SUR-009-Superviseur services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(461, 'SUR-010-Services surface supervisor', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(462, 'SUR-011-Préposé à la sècherie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(463, 'SUR-012-Journalier surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(464, 'SUR-100-Agent de sureté Garda', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(465, 'SUR-101-Construction Sayeur Électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(466, 'SUR-102-CB Prévention', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(467, 'SUR-103-Groupe Canam', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(468, 'SUR-104-Structures MFV', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(469, 'SUR-105-Construction T.S.L inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(470, 'SUR-106-Distribution Mécalex', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(471, 'SUR-107-Inno Hyg', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(472, 'SUR-108-Toitures Moses', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(473, 'SUR-109-Chapiteaux Abitibi', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(474, 'SUR-110-SBD Consultant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(475, 'SUR-111-Immeuble Dion', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(476, 'SUR-112-Technicom Nord-Ouest', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(477, 'SUR-113-Ciment PG Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(478, 'SUR-114-Le groupe Renocontrol', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(479, 'SUR-115-SPI Santé Sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(480, 'SUR-116-Alarme La-Sar', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(481, 'SUR-117-Trimline', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(482, 'SUR-118-Ébénisterie AMB', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(483, 'SUR-119-Nettoyage C-Pro', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(484, 'SUR-120-Adama Productions', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(485, 'SUR-122-Béton surface A-T', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(486, 'SUR-123-ALS minerals', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(487, 'USI-Mecanicien fixe classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(488, 'USI-001-Journalier opération', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(489, 'USI-002-Mécanicien fixe classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(490, 'USI-003-Mécanicien fixe classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(491, 'USI-004-Métallurgiste', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(492, 'USI-005-Opérateur d\'utilité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(493, 'USI-006-Superviseur opérations', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(494, 'USI-007-Mill superintendant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(495, 'USI-008-Technicien senior en metallurgie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(496, 'USI-009-Opérateur concasseur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(497, 'USI-010-Opérateur broyage', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(498, 'USI-011-Opérateur solution', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(499, 'USI-012-Planificateur mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(500, 'USI-013-Raffineur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(501, 'USI-014-Superviseur entretien électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(502, 'USI-015-Superviseur entretien électrique/ services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(503, 'USI-016-', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(504, 'USI-017-Superviseur entretien mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(505, 'USI-018-Concierge - Journalier surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(506, 'USI-019-Mécanicien fixe classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(507, 'USI-020-Électricien classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(508, 'USI-021-Électricien classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(509, 'USI-022-Électricien classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(510, 'USI-023-Technicien en instrumentation et contrôle classe 3', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(511, 'USI-024-Technicien en instrumentation et contrôle classe 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(512, 'USI-025-Technicien en instrumentation et contrôle classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(513, 'USI-026-Senior metallurgist', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(514, 'USI-027-Apprenti journalier opérations', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(515, 'USI-028-Apprenti mécanicien fixe', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(516, 'USI-029-Opérateur d\'équipement lourd classe 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(517, 'USI-030-Heavy equipment operator class 2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(518, 'USI-031-Opérateur d\'équipement lourd classe 3 - surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(519, 'USI-032-Stagaire entretien mécanique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(520, 'USI-033-Etudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(521, 'USI-0331-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(522, 'USI-034-Acheteur senior', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(523, 'USI-035-Commis à l\'entrepôt', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(524, 'USI-036-Mécanicien de bâtiment', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(525, 'USI-037-Menuisier et services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(526, 'USI-038-Chef équipe services surface', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(527, 'USI-039-Apprenti électricien', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(528, 'USI-040-Coordonnateur senior santé et sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(529, 'USI-041-Adjoint administratif', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(530, 'USI-042-Coordonnateur en automatisation', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(531, 'USI-043-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(532, 'USI-044-Stagiaire', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(533, 'USI-045-Superviseur général entretien usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(534, 'USI-046-Heavy equipment operator class 1', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(535, 'USI-047-Opérateur d\'équipement  lourd classe 2 - usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(536, 'USI-048-Opérateur d\'équipement lourd classe 3 - usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(537, 'USI-049-Trainee', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(538, 'USI-050-Étudiant', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(539, 'USI-051-Superviseur général opérations', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(540, 'USI-052-Surintendant usine en développement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(541, 'USI-053-Conseiller en santé sécurité', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(542, 'USI-054-Acheteur stratégique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(543, 'USI-055-Coordonnateur senior approvisionnement stratégique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(544, 'USI-056-Acheteur', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(545, 'USI-058-Commis à l\'entrepôt', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(546, 'USI-059-Spécialiste  Instrumentation et contrôle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(547, 'USI-060-Technicien métallurgie', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(548, 'USI-061-Surintendant  Entretien et projets', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(549, 'USI-062-Adjoint à la direction', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(550, 'USI-100-Entrepreneurs Usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(551, 'USI-101-Entrepreneur électrique Usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(552, 'USI-102-Entrepreneur mécanique Usine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(553, 'USI-103-Etudiant CFPVD Traitement', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(554, 'USI-104-A.B.F. Mines Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(555, 'USI-105-ASDR Solution', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(556, 'USI-106-Blais Industries', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(557, 'USI-107-Construction Sayeur Électrique', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(558, 'USI-108-Construction Tech inc', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(559, 'USI-109-L. Fournier & Fils Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(560, 'USI-110-GP Construction de Val-D\'Or', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(561, 'USI-111-Guay Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(562, 'USI-112-Moreau Industries', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(563, 'USI-113-Groupe Promec Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(564, 'USI-114-Service SC Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(565, 'USI-115-Soudure DuFer', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(566, 'USI-116-Construction Talbon', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(567, 'USI-117-Corriveau J.L.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(568, 'USI-118-Métal Plus Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(569, 'USI-119-PDG Industries', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(570, 'USI-120-MP Solution', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(571, 'USI-121-Lanexco', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(572, 'USI-123-Immeuble DION', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(573, 'USI-124-Aspirateur du Nord', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(574, 'USI-125-MEGLAB', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(575, 'USI-126-Qualipro', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(576, 'USI-128-DUMCO', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(577, 'USI-129-BBA', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(578, 'USI-130-WSP', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(579, 'USI-131-Techno lignes', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(580, 'USI-132-L. Boutin et associés', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(581, 'USI-133-Gestion PB', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(582, 'USI-134-Hamel Arpentage', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(583, 'USI-135-Dynamitage Castonguay', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(584, 'USI-136-AAC Solution Inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(585, 'USI-137-Tycin', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(586, 'USI-138-Intervention Swat Crete', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(587, 'USI-139-Les puits RH inc.', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(588, 'USI-140-Location JL', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(589, 'USI-141-Rematech Bremo', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(590, 'USI-142-Construction Audet & Knight', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(591, 'USI-143-Ciment Gobeil', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(592, 'USI-144-Poly Dalle', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(593, 'USI-145-Installation D', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(594, 'USI-150-Acier AGF', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(595, 'USI-151-Construction Socomec', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(596, 'USI-152-Construction Pro-Mine', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(597, 'USI-153-Gicleur du Nord', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(598, 'USI-154-Excavation DG', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(599, 'USI-155-Construction KG2', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(600, 'USI-156-Excavation René St-Pierre', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(601, 'USI-157-Logitech', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(602, 'USI-158-Technosub', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(603, 'USI-159-Propane Nord Ouest', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(604, 'USI-161-Armature nationale', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(605, 'USI-163-Services TGL', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(606, 'USI-164-Forage Giroux', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(607, 'USI-165-Wood', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(608, 'USI-166-AmNor', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(609, 'USI-167-Conetec', '', 21, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(610, 'test', '', 19, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(611, 'contre maitre mine production', 'formation et procedre', 19, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(612, 'test01', 'fq', 19, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(614, 'Test pour mes apprentis', 'Va aider à comprendre comment marche mes apprentis', 19, 'PA555', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(616, 'Manoeuvre BPO', '', 18, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(618, 'Itinéraire par poste test MAJ', '', 19, 'IP MAJ', 1, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(835, 'Electromécanicien', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(836, 'Emballeur', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(837, 'Monteur / Régleur / Échantillonneur', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(838, 'Machiniste / Outilleur', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(840, 'Contrôleur qualité', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(841, 'Cariste', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(842, 'Opérateur opérations secondaires', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(843, 'Opérateur composé', '', 36, NULL, 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(845, 'Poste Empaquetage', 'Formations nécessaires en lien avec le poste d\'empaquetage.', 20, 'PACK-001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(849, 'test concasseur', 'sfgjhsjsh', 19, 'test concasseur', 1, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(850, 'Assistant technique', '', 36, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(851, 'Nettoyeur', '', 36, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(852, 'Opérateur granulation', '', 36, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(853, 'Opérateur laminé', '', 36, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(854, 'test itinéraire 27 mars malala', 'test itinéraire 27 mars malala', 19, 'ti27m', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(855, 'Alimentation', 'package de formation', 38, 'alim', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(863, 'Mine Operations - Mine Manager', '', 24, '11001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(864, 'Mine Operations - Mine Superintendent', '', 24, '11002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(865, 'Mine Operations - Mine Ops. General Foreman', '', 24, '11003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(866, 'Mine Operations - Supervisor', '', 24, '11004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(867, 'Mine Operations - Mine D&B  Supervisor', '', 24, '11005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(868, 'Mine Operations - Clerk', '', 24, '11006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(869, 'Mine Operations - Trainer', '', 24, '11007', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(870, 'Mine Operations - Shovel/Excavator Operator', '', 24, '11008', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(871, 'Mine Operations - Loader Operator', '', 24, '11009', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(872, 'Mine Operations - Haul Truck Operator', '', 24, '11010', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(873, 'Mine Operations - Drill & Blast Operator', '', 24, '11011', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(874, 'Mine Operations - Dozer Operator', '', 24, '11012', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(875, 'Mine Operations - Grade Operator', '', 24, '11013', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(876, 'Mine Operations - Ancillary Equipement Operator', '', 24, '11014', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(877, 'Mine Maintenance - Superintendent', '', 24, '12001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(878, 'Mine Maintenance - General Foreman', '', 24, '12002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(879, 'Mine Maintenance - Supervisor', '', 24, '12003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(880, 'Mine Maintenance - Planner', '', 24, '12004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(881, 'Mine Maintenance - Clerk', '', 24, '12005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(882, 'Mine Maintenance - Mechanic', '', 24, '12006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(883, 'Mine Maintenance - Electrician', '', 24, '12007', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(884, 'Mine Maintenance - Welder/Machinist', '', 24, '12008', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(885, 'Mine Maintenance - Fuel & Lube Technician', '', 24, '12009', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(886, 'Mine Maintenance - Toolcrib attendant', '', 24, '12010', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(887, 'Mine Maintenance - Maint. Helper', '', 24, '12011', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(888, 'Geology - Chief Geologist', '', 24, '13001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(889, 'Geology - Geologist', '', 24, '13002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(890, 'Geology - Geology Technician', '', 24, '13003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(891, 'Geology - Grade Control Laborers / Samplers', '', 24, '13004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(892, 'Engineering - Chief Mine Engineer', '', 24, '14001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(893, 'Engineering - Short-Term Planning Engineer', '', 24, '14002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(894, 'Engineering - Junior Mine Engineer', '', 24, '14003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(895, 'Engineering - Technician', '', 24, '14004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(896, 'Engineering - Clerk', '', 24, '14005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(897, 'Mill Administration - Mill Superintendent', '', 24, '15001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(898, 'Mill Administration - Assistant Mill Superintendent', '', 24, '15002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(899, 'Mill Operations - Supervisor', '', 24, '16001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(900, 'Mill Operations - Processing Milling Operator IV', '', 24, '16002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(901, 'Mill Operations - Processing Milling Operator III', '', 24, '16003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(902, 'Mill Operations - Processing Milling Operator II', '', 24, '16004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(903, 'Mill Operations - Processing Milling Operator I', '', 24, '16005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(904, 'Mill Operations - Processing Mobile Equipment Operator', '', 24, '16006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(905, 'Mill Maintenance - Maint. Mechanical Foreman', '', 24, '17001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(906, 'Mill Maintenance - Mechanical Planner', '', 24, '17002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(907, 'Mill Maintenance - Mechanic', '', 24, '17003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(908, 'Mill Maintenance - Pipefitter', '', 24, '17004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(909, 'Mill Maintenance - Welder', '', 24, '17005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(910, 'Mill Maintenance - Electrical Planner', '', 24, '17006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(911, 'Mill Maintenance - Electrician', '', 24, '17007', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(912, 'Mill Maintenance - Technician', '', 24, '17008', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(913, 'Mill Metallurgy - Chief Metallurgist', '', 24, '18001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(914, 'Mill Metallurgy - Metallurgist', '', 24, '18002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(915, 'Mill Metallurgy - Junior Metallurgist', '', 24, '18003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(916, 'Mill Metallurgy - Metallurgical Technician', '', 24, '18004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(917, 'Mill Assay Laboratory - Chief Chemist', '', 24, '19001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(918, 'Mill Assay Laboratory - Chemist', '', 24, '19002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(919, 'Mill Assay Laboratory - Sample Preparation', '', 24, '19003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(920, 'Mill Assay Laboratory - Fusion Technician', '', 24, '19004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(921, 'Mill Assay Laboratory - Wet Laboratory Technician', '', 24, '19005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(922, 'General Manager', '', 24, '20001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(923, 'Receptionist/Executive assistant', '', 24, '20002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(924, 'Supply Chain / Warehouse Manager', '', 24, '21001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(925, 'Supply Chain - Senior Buyer / Contracts Specialist', '', 24, '21002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(926, 'Supply Chain - Purchasing agent', '', 24, '21003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(927, 'Supply Chain Supervisor', '', 24, '21004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(928, 'Supply Chain - Purchasing / Inventory agent', '', 24, '21005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(929, 'Supply Chain - Warehouse Technician', '', 24, '21006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(930, 'HR Superintendent', '', 24, '22001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(931, 'HR Advisor', '', 24, '22002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(932, 'HR First Nations/Community Liaison', '', 24, '22003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(933, 'HR Training Coordinator', '', 24, '22004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(934, 'HR Mine Ops. Trainer', '', 24, '22005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(935, 'HR Mine Maint. Trainer', '', 24, '22006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(936, 'HR H&S Trainer/Inductions', '', 24, '22007', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(937, 'Security Supervisor', '', 24, '23001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(938, 'Security Agent', '', 24, '23002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(939, 'IT Technicians', '', 24, '24001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(940, ' Accounting Chief Accountant', '', 24, '25001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(941, ' Accounting Accountant', '', 24, '25002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(942, ' Accounting Payables clerk', '', 24, '25003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(943, ' Accounting Payroll clerk', '', 24, '25004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(944, ' Accounting Project Control Specialist', '', 24, '25005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(945, 'Surface Support Supervisor', '', 24, '26001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(946, 'Surface Support Water treatment plant operator', '', 24, '26002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(947, 'Surface Support Electrican', '', 24, '26003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(948, 'Surface Support Carpenter', '', 24, '26004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(949, 'Surface Support Plumber', '', 24, '26005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(950, 'Surface Support Heavy Equipment operator', '', 24, '26006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(951, 'Environmental Superintendant', '', 24, '27001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(952, 'Environmental Coordinator', '', 24, '27002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(953, 'Environment Laborer', '', 24, '27003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(954, 'Environmental Technician', '', 24, '27004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(955, 'HSE Manager', '', 24, '28001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(956, 'H&S Coordinator & Emergency Response', '', 24, '28002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(957, 'H&S Site Medical / Paramedic / ERT Specialist', '', 24, '28003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(959, 'ODY - Mineur de service', '', 15, 'ODY_MIN_POSTE_001', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(960, 'ODY - Opérateur camion', '', 15, 'ODY_MIN_POSTE_002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(961, 'ODY - Opérateur de chargeuse navette', '', 15, 'ODY_MIN_POSTE_003', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(962, 'ODY - Mineur support aux opérations', '', 15, 'ODY_MIN_POSTE_004', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(963, 'ODY - Mineur chargement d\'explosifs', '', 15, 'ODY_MIN_POSTE_005', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(964, 'ODY - Opérateur de boulonneuse', '', 15, 'ODY_MIN_POSTE_006', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(965, 'ODY - Spécialiste forage', '', 15, 'ODY_MIN_POSTE_007', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(966, 'Itinéraire mai', 'desc mai', 19, 'itm', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(967, 'im', 'desc', 19, 'Itinéraire mai', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(968, 'Opérateur de chargeuse sur roues, PBO', '', 18, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(969, 'MCM_Accueil_Usine_de_remblais', '', 15, 'MCM_IND_USI_002', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(970, 'MCM_Usine : Remblais abrégé', 'Formation pour les travailleurs de l\'usine qui doivent avoir accès à l\'usine de remblais.', 15, 'MCM_USI_REM1', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(971, 'Créer une itinéraire par poste formateur', '', 19, 'Form0135', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(972, 'Acceuil', 'Formation d\'accueil des nouveaux arrivants st-joseph', 38, '', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(973, 'Préposé Lattes Emballage', 'Carnet de tâches', 38, 'P. LE', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(974, 'Opérateur Empileuse', 'Carnet de tâches et procédures', 38, 'OE', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56'),
	(975, 'Opérateur Classement Ébouteur', 'Carnet de tâche et procédures', 38, 'OCE', 0, '2024-10-05 06:35:56', '2024-10-05 06:35:56');

-- Listage de la structure de table paelo. job_training_selection
CREATE TABLE IF NOT EXISTS `job_training_selection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `job_training_group_id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `job_training_group_id` (`job_training_group_id`),
  KEY `job_training_selection_training_id` (`training_id`),
  CONSTRAINT `job_training_selection_ibfk_1` FOREIGN KEY (`job_training_group_id`) REFERENCES `job_training_group` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `job_training_selection_training_id` FOREIGN KEY (`training_id`) REFERENCES `training` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.job_training_selection : ~5 rows (environ)
REPLACE INTO `job_training_selection` (`id`, `job_training_group_id`, `training_id`, `created_at`, `updated_at`) VALUES
	(3, 2, 3, '2024-07-27 12:10:21', '2024-07-27 12:10:21'),
	(10, 1, 7, '2024-07-28 09:41:21', '2024-07-28 09:41:21'),
	(12, 1, 5, '2024-07-28 09:44:22', '2024-07-28 09:44:22'),
	(13, 1, 1, '2024-08-16 04:53:07', '2024-08-16 04:53:07'),
	(14, 972, 6, '2024-10-05 06:38:22', '2024-10-05 06:38:22');

-- Listage de la structure de table paelo. langs
CREATE TABLE IF NOT EXISTS `langs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(2) NOT NULL,
  `name` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.langs : ~4 rows (environ)
REPLACE INTO `langs` (`id`, `code`, `name`) VALUES
	(1, 'en', 'English'),
	(2, 'es', 'Español'),
	(3, 'fr', 'Français'),
	(4, 'pt', 'Portugais');

-- Listage de la structure de table paelo. locations
CREATE TABLE IF NOT EXISTS `locations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `code` varchar(32) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `locations` (`name`,`company_id`),
  KEY `locations_companies_fk` (`company_id`),
  CONSTRAINT `locations_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- Listage des données de la table paelo.locations : ~9 rows (environ)
REPLACE INTO `locations` (`id`, `name`, `company_id`, `code`, `created_at`, `updated_at`) VALUES
	(1, 'Mine Éléonore', 1, NULL, '2024-07-05 03:41:31', '2024-07-15 16:41:20'),
	(2, 'Madagascar', 1, NULL, '2024-07-05 20:17:09', '2024-07-15 16:41:24'),
	(3, 'Maurice', NULL, NULL, '2024-07-05 20:17:28', '2024-07-05 20:17:28'),
	(4, 'France', NULL, NULL, '2024-07-05 20:17:41', '2024-07-05 20:17:41'),
	(5, 'Montréal', NULL, NULL, '2024-07-05 20:17:56', '2024-07-05 21:43:02'),
	(6, 'Baie-James', NULL, NULL, '2024-07-05 20:18:16', '2024-07-05 20:18:16'),
	(7, 'Usine Ste-Claire', NULL, NULL, '2024-07-05 20:18:31', '2024-07-05 20:18:31'),
	(8, 'Saint-Joseph-de-Kamouraska (usine de sciage)', NULL, NULL, '2024-07-05 20:18:52', '2024-07-05 20:18:52'),
	(9, 'Madagascar Sud', NULL, NULL, '2024-07-05 20:20:12', '2024-07-05 20:25:39');

-- Listage de la structure de table paelo. menus
CREATE TABLE IF NOT EXISTS `menus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `menu_level1` varchar(50) DEFAULT NULL,
  `menu_level2` varchar(50) DEFAULT NULL,
  `menu_level3` varchar(50) DEFAULT NULL,
  `position` enum('LEFT','TOP') NOT NULL DEFAULT 'LEFT',
  `number` tinyint(4) NOT NULL DEFAULT 0,
  `icon` varchar(50) DEFAULT NULL,
  `link` varchar(255) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.menus : ~93 rows (environ)
REPLACE INTO `menus` (`id`, `menu_level1`, `menu_level2`, `menu_level3`, `position`, `number`, `icon`, `link`, `status`, `created_at`, `updated_at`) VALUES
	(1, 'home', '', '', 'LEFT', 1, 'solar:home-line-duotone', '/{locale}/admin/home', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(2, 'meeting', '', '', 'LEFT', 2, 'fluent:meet-now-16-regular', '/{locale}/meeting', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(3, 'tm', '', '', 'LEFT', 3, 'solar:database-line-duotone', '/{locale}/tm', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(4, 'trainings', 'training_catalogue', '', 'LEFT', 5, 'solar:book-line-duotone', '/{locale}/trainings/training_catalogue', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(5, 'trainings', 'live_reading', '', 'LEFT', 5, 'ri:book-read-line', '/{locale}/trainings/live_reading', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(6, 'trainings', 'assign_trainings', 'assign_presentiel_training_to_one_or_more_users', 'LEFT', 6, 'fluent:book-compass-20-regular', '/{locale}/presentiel', 1, '2024-07-11 03:44:00', '2024-08-28 17:00:33'),
	(7, 'trainings', 'assign_trainings', 'lms_training_to_one_user', 'LEFT', 7, 'fluent:book-compass-20-regular', '/{locale}/assign-users', 1, '2024-07-11 03:44:00', '2024-09-24 18:50:56'),
	(8, 'trainings', 'assign_trainings', 'lms_training_to_a_batch_of_users', 'LEFT', 8, 'fluent:book-compass-20-regular', '/{locale}/assign-groups', 1, '2024-07-11 03:44:00', '2024-09-24 18:51:04'),
	(9, 'trainings', 'assign_trainings', 'expired_trainings', 'LEFT', 9, 'fluent:book-compass-20-regular', '/{locale}/trainings/assign_trainings/expired_trainings', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(10, 'trainings', 'training_management', 'list_of_trainers', 'LEFT', 10, 'solar:book-bookmark-minimalistic-outline', '/{locale}/trainer', 1, '2024-07-11 03:44:00', '2024-07-25 15:43:45'),
	(11, 'trainings', 'training_management', 'categorie_of_training', 'LEFT', 11, 'solar:book-bookmark-minimalistic-outline', '/{locale}/training-category', 1, '2024-07-11 03:44:00', '2024-07-26 17:46:30'),
	(12, 'trainings', 'training_management', 'training_cost_types', 'LEFT', 12, 'solar:book-bookmark-minimalistic-outline', '/{locale}/training-cost-type', 1, '2024-07-11 03:44:00', '2024-07-26 18:18:45'),
	(13, 'trainings', 'training_management', 'training_levels', 'LEFT', 13, 'solar:book-bookmark-minimalistic-outline', '/{locale}/training-level', 1, '2024-07-11 03:44:00', '2024-07-27 05:20:01'),
	(14, 'trainings', 'training_management', 'job_itinerary', 'LEFT', 14, 'solar:book-bookmark-minimalistic-outline', '/{locale}/job-training', 1, '2024-07-11 03:44:00', '2024-07-27 12:19:40'),
	(15, 'trainings', 'training_management', 'view_edit_training', 'LEFT', 15, 'solar:book-bookmark-minimalistic-outline', '/{locale}/training', 1, '2024-07-11 03:44:00', '2024-07-13 05:42:45'),
	(16, 'trainings', 'training_management', 'training_requests', 'LEFT', 16, 'solar:book-bookmark-minimalistic-outline', '/{locale}/training-demand', 1, '2024-07-11 03:44:00', '2024-08-27 17:23:13'),
	(17, 'trainings', 'training_management', 'list_of_modules', 'LEFT', 17, 'solar:book-bookmark-minimalistic-outline', '/{locale}/trainings/training_management/list_of_modules', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(18, 'trainings', 'training_management', 'group_trainings', 'LEFT', 18, 'solar:book-bookmark-minimalistic-outline', '/{locale}/trainings/training_management/group_trainings', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(19, 'trainings', 'training_management', 'equipment', 'LEFT', 19, 'solar:book-bookmark-minimalistic-outline', '/{locale}/trainings/training_management/equipment', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(20, 'trainings', 'training_management', 'user_groups', 'LEFT', 20, 'solar:book-bookmark-minimalistic-outline', '/{locale}/trainings/training_management/user_groups', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(21, 'trainings', 'training_management', 'dashboard', 'LEFT', 21, 'solar:book-bookmark-minimalistic-outline', '/{locale}/trainings/training_management/dashboard', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(22, 'trainings', 'result_and_training_follow_up', '', 'LEFT', 22, 'basil:book-check-outline', '/{locale}/trainings/result_and_training_follow_up', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(23, 'trainings', 'training_purchase', '', 'LEFT', 23, 'vaadin:book-dollar', '/{locale}/trainings/training_purchase', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(24, 'calendar', '', '', 'LEFT', 24, 'solar:calendar-line-duotone', '/{locale}/calendar', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(25, 'management', 'clasify_and_organise', 'employers', 'LEFT', 25, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/employers', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(26, 'management', 'clasify_and_organise', 'location_division', 'LEFT', 26, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/location_division', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(27, 'management', 'clasify_and_organise', 'training_locations', 'LEFT', 27, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/training_locations', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(28, 'management', 'clasify_and_organise', 'departments', 'LEFT', 28, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/departments', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(29, 'management', 'clasify_and_organise', 'sub_departments', 'LEFT', 29, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/sub_departments', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(30, 'management', 'clasify_and_organise', 'sub_postes', 'LEFT', 30, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/sub_postes', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(31, 'management', 'clasify_and_organise', 'jobs', 'LEFT', 31, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/jobs', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(32, 'management', 'clasify_and_organise', 'sections', 'LEFT', 32, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/sections', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(33, 'management', 'clasify_and_organise', 'teams', 'LEFT', 33, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/teams', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(34, 'management', 'clasify_and_organise', 'employee_categories', 'LEFT', 34, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/employee_categories', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(35, 'management', 'clasify_and_organise', 'place_of_birth', 'LEFT', 35, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/place_of_birth', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(36, 'management', 'clasify_and_organise', 'port_of_registry', 'LEFT', 36, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/port_of_registry', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(37, 'management', 'clasify_and_organise', 'information', 'LEFT', 37, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/information', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(38, 'management', 'clasify_and_organise', 'paelo_upd', 'LEFT', 38, 'eos-icons:cluster-management-outlined', '/{locale}/management/clasify_and_organise/paelo_upd', 1, '2024-07-11 03:44:00', '2024-07-12 03:26:55'),
	(39, 'management', 'users', 'user_profiles', 'LEFT', 39, 'majesticons:users-line', '/{locale}/management/users/list/0', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(40, 'management', 'users', 'temporary_user_profiles', 'LEFT', 40, 'majesticons:users-line', '/{locale}/management/users/list/1', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(41, 'management', 'my_trainees', '', 'LEFT', 41, 'healthicons:i-training-class-outline', '/{locale}/management/my_trainees', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(42, 'management', 'competency_cards', 'competency_cards', 'LEFT', 42, 'solar:card-line-duotone', '/{locale}/management/competency_cards/competency_cards', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(43, 'management', 'competency_cards', 'competency_card_requests', 'LEFT', 43, 'solar:card-line-duotone', '/{locale}/management/competency_cards/competency_card_requests', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(44, 'management', 'competency_cards', 'contractor_inventory_consultation', 'LEFT', 44, 'solar:card-line-duotone', '/{locale}/management/competency_cards/contractor_inventory_consultation', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(45, 'management', 'requisitions', 'requisition_of_employee_with_competency', 'LEFT', 45, 'pajamas:issue-type-requirements', '/{locale}/management/requisitions/requisition_of_employee_with_competency', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(46, 'management', 'non_conform_h_s_inspection_report', '', 'LEFT', 46, 'mdi:user-badge-outline', '/{locale}/management/non_conform_h_s_inspection_report', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(47, 'management', 'job_statements', '', 'LEFT', 47, 'hugeicons:new-job', '/{locale}/management/job_statements', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(48, 'management', 'statistics_and_training_reports', '', 'LEFT', 48, 'akar-icons:statistic-up', '/{locale}/management/statistics_and_training_reports', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(49, 'management', 'preferences', '', 'LEFT', 49, 'healthicons:ui-preferences-outline', '/{locale}/management/preferences', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(50, 'management', 'notifications', '', 'LEFT', 50, 'solar:notification-unread-line-duotone', '/{locale}/management/notifications', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(51, 'management', 'proof_of_success', '', 'LEFT', 51, 'icon-park-outline:doc-success', '/{locale}/management/proof_of_success', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(52, 'management', 'logs', '', 'LEFT', 52, 'hugeicons:identification', '/{locale}/management/logs', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(53, 'management', 'evaluation_forms', '', 'LEFT', 53, 'hugeicons:chart-evaluation', '/{locale}/management/evaluation_forms', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(54, 'management', 'purchase_history', '', 'LEFT', 54, 'carbon:purchase', '/{locale}/management/purchase_history', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(55, 'management', 'import_users_from_excel', '', 'LEFT', 55, 'hugeicons:database-import', '/{locale}/management/import_users_from_excel', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(56, 'management', 'procedure_management', '', 'LEFT', 56, 'eos-icons:content-lifecycle-management', '/{locale}/management/procedure_management', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(57, 'logout', '', '', 'TOP', 57, 'solar:logout-2-line-duotone', '/{locale}/logout', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(58, 'change_password', '', '', 'TOP', 58, 'solar:lock-line-duotone', '/{locale}/change_password', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(59, 'change_security_question', '', '', 'TOP', 59, 'icon-park-outline:message-security', '/{locale}/change_security_question', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(60, 'my_qr_code', '', '', 'TOP', 60, 'ic:baseline-qrcode', '/{locale}/my_qr_code', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(61, 'info', '', '', 'TOP', 61, 'solar:info-circle-line-duotone', '/{locale}/info', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(62, 'paelo_upd', '', '', 'TOP', 62, 'clarity:update-line', '/{locale}/update', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(63, 'companies', '', '', 'LEFT', 3, 'mdi:company', '/{locale}/admin/companies', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(64, 'groups', '', '', 'LEFT', 3, 'clarity:group-line', '/{locale}/groups', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(65, 'categories', '', '', 'LEFT', 3, 'material-symbols-light:category-outline', '/{locale}/categories', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(66, 'statistiques', 'users_statistiques', '', 'LEFT', 3, 'solar:pie-chart-line-duotone', '/{locale}/statistiques/users_statistiques', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(67, 'statistiques', 'trainings_statistics', '', 'LEFT', 3, 'solar:pie-chart-line-duotone', '/{locale}/statistiques/trainings_statistics', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(68, 'management', 'users', '', 'LEFT', 56, 'majesticons:users-line', '/{locale}/management/users/list', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(69, 'management', 'view_edit_training', '', 'LEFT', 56, 'eos-icons:cluster-management-outlined', '/{locale}/training', 1, '2024-07-11 03:44:00', '2024-07-13 05:43:37'),
	(70, 'management', 'list_of_modules', '', 'LEFT', 56, 'mdi-light:view-module', '/{locale}/management/list_of_modules', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(71, 'management', 'statistics_and_training_reports', '', 'LEFT', 56, 'akar-icons:statistic-up', '/{locale}/management/statistics_and_training_reports', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(72, 'management', 'change_password', '', 'LEFT', 56, 'teenyicons:password-outline', '/{locale}/management/change_password', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(73, 'management', 'structure', '', 'LEFT', 56, 'eos-icons:cluster-management-outlined', '/{locale}/management/structure', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(74, 'settings', 'preferences', '', 'LEFT', 56, 'hugeicons:preference-vertical', '/{locale}/settings/preferences', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(75, 'settings', 'roles', '', 'LEFT', 56, 'mdi:user-access-control', '/{locale}/settings/roles', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(76, 'settings', 'permissions', '', 'LEFT', 56, 'carbon:user-access-locked', '/{locale}/settings/permissions', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(77, 'settings', 'assignment', '', 'LEFT', 56, 'clarity:assign-user-line', '/{locale}/settings/assignment', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(78, 'settings', 'routes', '', 'LEFT', 56, 'lucide:list-end', '/{locale}/settings/routes', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(79, 'settings', 'white_list_ips', '', 'LEFT', 56, 'jam:task-list', '/{locale}/settings/white_list_ips', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(80, 'settings', 'logo', '', 'LEFT', 56, 'material-symbols:image-outline', '/{locale}/settings/logo', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(81, 'settings', 'import_users_from_excel', '', 'LEFT', 56, 'hugeicons:database-import', '/{locale}/settings/import_users_from_excel', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(83, 'trainings', 'trainings', 'online_training_and_evaluation', 'LEFT', 4, 'healthicons:i-training-class-outline', '/{locale}/trainings/trainings/category_1', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(84, 'trainings', 'trainings', 'online_reading_procedures', 'LEFT', 4, 'ant-design:delivered-procedure-outlined', '/{locale}/trainings/trainings/category_2', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(85, 'trainings', 'trainings', 'interactive_apprentice_booklet', 'LEFT', 4, 'lucide:notebook', '/{locale}/trainings/trainings/category_3', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(86, 'trainings', 'trainings', 'inspection_of_equipment_in_3d', 'LEFT', 4, 'tdesign:map-3d', '/{locale}/trainings/trainings/category_4', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(87, 'trainings', 'trainings', 'video_library', 'LEFT', 4, 'icon-park-outline:video', '/{locale}/trainings/trainings/category_5', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(88, 'trainings', 'trainings', 'lockout_sheets', 'LEFT', 4, 'clarity:form-line', '/{locale}/trainings/trainings/category_6', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(89, 'trainings', 'trainings', 'form', 'LEFT', 4, 'fluent:notepad-edit-16-regular', '/{locale}/trainings/trainings/category_7', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(90, 'trainings', 'trainings', 'reports', 'LEFT', 4, 'mdi:report-multiple', '/{locale}/trainings/trainings/category_8', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(91, 'trainings', 'trainings', 'work_card', 'LEFT', 4, 'entypo:v-card', '/{locale}/trainings/trainings/category_9', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(92, 'trainings', 'trainings', 'daily_goals', 'LEFT', 4, 'octicon:goal-16', '/{locale}/trainings/trainings/category_10', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(93, 'trainings', 'trainings', 'interactive_survey', 'LEFT', 4, 'fluent-mdl2:survey-questions', '/{locale}/trainings/trainings/category_11', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00'),
	(94, 'trainings', 'trainings', 'personal_survey', 'LEFT', 4, 'wpf:survey', '/{locale}/trainings/trainings/category_12', 1, '2024-07-11 03:44:00', '2024-07-11 03:44:00');

-- Listage de la structure de table paelo. menus_access
CREATE TABLE IF NOT EXISTS `menus_access` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `super_trainer` varchar(10) DEFAULT NULL,
  `trainer` varchar(10) DEFAULT NULL,
  `supervisor` varchar(10) DEFAULT NULL,
  `contractor_responsible` varchar(10) DEFAULT NULL,
  `instructor` varchar(10) DEFAULT NULL,
  `trainee` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.menus_access : ~62 rows (environ)
REPLACE INTO `menus_access` (`id`, `super_trainer`, `trainer`, `supervisor`, `contractor_responsible`, `instructor`, `trainee`) VALUES
	(1, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(2, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(3, 'OUI', 'OUI', '', 'OUI', 'OUI', ''),
	(4, 'OUI', 'OUI', 'OUI', '', 'OUI', 'OUI'),
	(5, 'OUI', 'OUI', 'OUI', '', 'OUI', ''),
	(6, 'OUI', 'OUI', '', '', '', ''),
	(7, 'OUI', 'OUI', '', '', '', ''),
	(8, 'OUI', 'OUI', '', '', '', ''),
	(9, 'OUI', '', '', '', '', ''),
	(10, 'OUI', 'OUI', '', '', '', ''),
	(11, 'OUI', 'OUI', '', '', '', ''),
	(12, 'OUI', '', '', '', '', ''),
	(13, 'OUI', '', '', '', '', ''),
	(14, 'OUI', 'OUI', '', '', '', ''),
	(15, 'OUI', 'OUI', '', '', '', ''),
	(16, 'OUI', 'OUI', '', '', '', ''),
	(17, 'OUI', '', '', '', '', ''),
	(18, 'OUI', 'OUI', '', '', '', ''),
	(19, 'OUI', '', '', '', '', ''),
	(20, 'OUI', 'OUI', '', '', '', ''),
	(21, 'OUI', 'OUI', 'OUI', 'OUI', '', ''),
	(22, 'OUI', 'OUI', 'OUI', 'OUI', '', ''),
	(23, 'OUI', 'OUI', 'OUI', '', '', ''),
	(24, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(25, 'OUI', '', '', '', '', ''),
	(26, 'OUI', '', '', '', '', ''),
	(27, 'OUI', '', '', '', '', ''),
	(28, 'OUI', '', '', '', '', ''),
	(29, 'OUI', '', '', '', '', ''),
	(30, 'OUI', '', '', '', '', ''),
	(31, 'OUI', '', '', '', '', ''),
	(32, 'OUI', '', '', '', '', ''),
	(33, 'OUI', '', '', '', '', ''),
	(34, 'OUI', '', '', '', '', ''),
	(35, 'OUI', '', '', '', '', ''),
	(36, 'OUI', '', '', '', '', ''),
	(37, 'OUI', '', '', '', '', ''),
	(38, 'OUI', '', '', '', '', ''),
	(39, 'OUI', 'OUI', 'OUI', '', '', ''),
	(40, 'OUI', 'OUI', '', '', '', ''),
	(41, 'OUI', 'OUI', 'OUI', '', 'OUI', ''),
	(42, 'OUI', 'OUI', 'OUI', 'OUI', '', ''),
	(43, 'OUI', 'OUI', 'OUI', 'OUI', '', ''),
	(44, 'OUI', '', '', 'OUI', '', ''),
	(45, 'OUI', 'OUI', 'OUI', 'OUI', '', ''),
	(46, 'OUI', 'OUI', 'OUI', '', '', ''),
	(47, 'OUI', '', '', '', '', ''),
	(48, 'OUI', 'OUI', 'OUI', '', '', ''),
	(49, 'OUI', '', '', '', '', ''),
	(50, 'OUI', '', '', '', '', ''),
	(51, 'OUI', '', '', '', '', ''),
	(52, 'OUI', '', '', '', '', ''),
	(53, 'OUI', 'OUI', '', '', '', ''),
	(54, 'OUI', '', '', '', '', ''),
	(55, 'OUI', '', '', '', '', ''),
	(56, 'OUI', '', '', '', '', ''),
	(57, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(58, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(59, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(60, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(61, 'OUI', 'OUI', 'OUI', 'OUI', 'OUI', 'OUI'),
	(62, 'OUI', '', '', 'OUI', '', '');

-- Listage de la structure de table paelo. migrations
CREATE TABLE IF NOT EXISTS `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.migrations : ~3 rows (environ)
REPLACE INTO `migrations` (`id`, `migration`, `batch`) VALUES
	(1, '0001_01_01_000000_create_users_table', 1),
	(2, '0001_01_01_000001_create_cache_table', 1),
	(3, '0001_01_01_000002_create_jobs_table', 1);

-- Listage de la structure de table paelo. modules
CREATE TABLE IF NOT EXISTS `modules` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(180) NOT NULL,
  `type` varchar(100) DEFAULT NULL,
  `category_id` int(11) NOT NULL,
  `prefix` varchar(50) DEFAULT NULL,
  `rev` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `paid` tinyint(4) NOT NULL DEFAULT 0,
  `is_immutable` tinyint(1) NOT NULL DEFAULT 0,
  `scorm_quiz` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `module_id` (`id`),
  KEY `category_id` (`category_id`),
  KEY `modules_companies_fk` (`company_id`),
  CONSTRAINT `modules_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE SET NULL ON UPDATE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.modules : ~11 rows (environ)
REPLACE INTO `modules` (`id`, `name`, `type`, `category_id`, `prefix`, `rev`, `company_id`, `paid`, `is_immutable`, `scorm_quiz`, `created_at`, `updated_at`) VALUES
	(1, 'Test Module', 'Theory / Exercises', 1, 'Test', 1, 1, 0, 0, 0, '2024-07-18 15:21:43', '2024-07-22 17:10:25'),
	(5, 'Module 4', 'Theory / Exercises', 1, NULL, NULL, 1, 0, 0, 0, '2024-07-18 20:02:01', '2024-07-18 20:02:01'),
	(6, 'Dev', 'Exam', 1, NULL, NULL, 1, 0, 0, 1, '2024-07-18 20:36:31', '2024-07-18 20:36:31'),
	(8, 'Module 5', 'Exam', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:37'),
	(9, 'Module 6', 'Exam', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:31'),
	(10, 'Module 7', 'Exam', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:23'),
	(11, 'Module 6', 'Theory / Exercises', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:18'),
	(12, 'Module 7', 'Exam', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:26'),
	(13, 'Module 8', 'Theory / Exercises', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:16'),
	(14, 'Module 9', 'Theory / Exercises', 1, 'Test', 1, 1, 0, 0, 1, '2024-07-19 17:14:15', '2024-07-20 06:10:14'),
	(17, 'Test PRocedure 2', 'Field does not apply', 2, NULL, NULL, 1, 0, 0, 0, '2024-08-21 17:15:39', '2024-08-21 17:15:39');

-- Listage des données de la table paelo.password_reset_tokens : ~0 rows (environ)

-- Listage de la structure de table paelo. place_of_birth
CREATE TABLE IF NOT EXISTS `place_of_birth` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.place_of_birth : ~11 rows (environ)
REPLACE INTO `place_of_birth` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Madagascar - Antananarivo', 19, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(2, 'Canada - Quebec', 19, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(3, 'Local - Eastmain', 24, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(4, 'Provincial', 24, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(5, 'Canada', 24, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(6, 'International', 24, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(7, 'Local - Autres communautés Cries', 24, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(8, 'Local - Communautés Eeyou Itchee', 24, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(9, 'lieu de naissance test 27 mars malala', 19, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(10, 'Québec', 20, '2024-07-05 03:42:12', '2024-07-05 03:42:12'),
	(11, 'naissance aout', 19, '2024-07-05 03:42:12', '2024-07-05 03:42:12');

-- Listage de la structure de table paelo. platforms
CREATE TABLE IF NOT EXISTS `platforms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.platforms : ~4 rows (environ)
REPLACE INTO `platforms` (`id`, `type`, `created_at`, `updated_at`) VALUES
	(1, 'LMS', '2024-07-13 09:50:53', '2024-07-13 09:50:53'),
	(2, 'External / Presentiel', '2024-07-13 09:50:53', '2024-07-13 09:50:53'),
	(3, 'Virtual Online Classroom', '2024-07-13 09:50:53', '2024-07-13 09:50:53'),
	(4, 'LMS and TH/PR trainer', '2024-07-13 09:50:53', '2024-07-13 09:50:53');

-- Listage de la structure de table paelo. port_attach
CREATE TABLE IF NOT EXISTS `port_attach` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `port_name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- Listage des données de la table paelo.port_attach : ~1 rows (environ)
REPLACE INTO `port_attach` (`id`, `port_name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Port d\'attache démo Paélo1', 1, '2024-07-06 15:33:10', '2024-07-06 15:34:12');

-- Listage de la structure de table paelo. presentiel
CREATE TABLE IF NOT EXISTS `presentiel` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `cost` decimal(10,2) NOT NULL DEFAULT 0.00,
  `duration` int(11) NOT NULL DEFAULT 0,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `trainees` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `trainer_id` int(11) NOT NULL DEFAULT 0,
  `documents` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'a:0:{}',
  `training_demand_id` int(11) NOT NULL DEFAULT 0,
  `reccuring_calendar` tinyint(1) NOT NULL DEFAULT 0,
  `training_location_id` int(11) DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `time_stop` time DEFAULT NULL,
  `completed` tinyint(4) NOT NULL DEFAULT 0,
  `followup` tinyint(1) NOT NULL DEFAULT 1,
  `comments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '\'\'',
  `is_grantable` tinyint(1) NOT NULL DEFAULT 0,
  `cost_redistribution` tinyint(1) NOT NULL DEFAULT 0,
  `training_category_id` int(11) NOT NULL DEFAULT 0,
  `migration_id` int(11) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `fk_presentiel_company_company_id` (`company_id`),
  KEY `fk_presentiel_trainings_training_id` (`training_id`),
  CONSTRAINT `fk_presentiel_company_company_id` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_presentiel_trainings_training_id` FOREIGN KEY (`training_id`) REFERENCES `training` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.presentiel : ~4 rows (environ)
REPLACE INTO `presentiel` (`id`, `company_id`, `training_id`, `cost`, `duration`, `start_date`, `end_date`, `trainees`, `trainer_id`, `documents`, `training_demand_id`, `reccuring_calendar`, `training_location_id`, `time_start`, `time_stop`, `completed`, `followup`, `comments`, `is_grantable`, `cost_redistribution`, `training_category_id`, `migration_id`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, 10.00, 10, '2024-08-15', '2024-08-22', 'a:1:{i:0;i:1;}', 5, 'a:1:{s:11:"laravel.png";s:94:"public/documents/09847cc5a062c4439983b5494a02371a/0ZscD41hmBoGCgAOR5aJmLTUEHKM7wcyHIEZuRem.png";}', 1, 1, 1, '22:27:48', '18:32:48', 0, 1, '\'\'', 0, 0, 0, 0, '2024-08-27 15:29:17', '2024-09-22 06:15:37'),
	(2, 1, 2, 10.00, 10, '2024-08-15', '2024-08-22', 'a:2:{i:0;i:1;i:1;i:2;}', 5, 'a:0:{}', 1, 1, 2, '22:27:48', '18:32:48', 0, 1, '\'\'', 0, 0, 0, 0, '2024-08-27 15:29:17', '2024-08-29 16:39:57'),
	(3, 1, 3, 10.00, 100, '2024-08-15', '2024-08-22', 'a:0:{}', 2, 'a:0:{}', 1, 1, 3, '22:27:48', '18:32:48', 0, 1, '\'\'', 0, 0, 0, 0, '2024-08-27 15:29:17', '2024-08-29 16:30:02'),
	(5, 1, 2, 0.00, 15544, '2024-08-21', '2024-08-14', 'a:0:{}', 2, 'a:0:{}', 0, 1, 2, '21:02:00', '00:04:00', 0, 1, '\'\'', 1, 1, 0, 0, '2024-08-30 18:10:48', '2024-08-31 14:48:45');

-- Listage de la structure de table paelo. purchase_history
CREATE TABLE IF NOT EXISTS `purchase_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `trainees` text NOT NULL,
  `date` date NOT NULL,
  `invoice_id` varchar(64) DEFAULT NULL,
  `paid` tinyint(4) NOT NULL DEFAULT 0,
  `invoice_url` varchar(255) DEFAULT NULL,
  `payment_url` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `fk_purchasehistory_companies_company_id` (`company_id`),
  KEY `fk_purchasehistory_users_user_id` (`user_id`),
  KEY `fk_purchasehistory_trainings_training_id` (`training_id`),
  CONSTRAINT `fk_purchasehistory_companies_company_id` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_purchasehistory_trainings_training_id` FOREIGN KEY (`training_id`) REFERENCES `training` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_purchasehistory_users_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.purchase_history : ~0 rows (environ)

-- Listage de la structure de table paelo. reports
CREATE TABLE IF NOT EXISTS `reports` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  CONSTRAINT `reports_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE SET NULL ON UPDATE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.reports : ~3 rows (environ)
REPLACE INTO `reports` (`id`, `name`, `image`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Test 1', NULL, 1, '2024-07-14 03:49:48', '2024-07-14 03:49:48'),
	(2, 'Qualité assurance 2022-05-05', NULL, 1, '2024-07-14 03:52:44', '2024-07-14 04:31:29'),
	(3, 'Test report 2', NULL, 1, '2024-07-14 03:52:44', '2024-07-14 04:31:29');

-- Listage de la structure de table paelo. report_entries
CREATE TABLE IF NOT EXISTS `report_entries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `module` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `module_note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `task` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `task_order` int(11) NOT NULL,
  `reference` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `report_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `report_id` (`report_id`),
  CONSTRAINT `report_entries_ibfk_1` FOREIGN KEY (`report_id`) REFERENCES `reports` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.report_entries : ~10 rows (environ)
REPLACE INTO `report_entries` (`id`, `module`, `module_note`, `task`, `task_order`, `reference`, `report_id`, `created_at`, `updated_at`) VALUES
	(1, 'Test module 1', 'Test module note 1', 'Test task 1', 1, 'Test ref 1', 1, '2024-07-14 04:21:11', '2024-07-14 04:22:43'),
	(2, 'Test module 2', 'Test module note 2', 'Test task 2', 1, 'Test ref 2', 1, '2024-07-14 04:21:11', '2024-07-14 04:21:11'),
	(3, 'Test module 3', 'Test module note 3', 'Test task 3', 1, 'Test ref 3', 1, '2024-07-14 04:21:11', '2024-07-14 04:21:11'),
	(4, 'Partie 1', 'AVANT', 'Section 1', 1, '000', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09'),
	(5, 'Partie 1', 'AVANT', 'Section 2', 2, '000', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09'),
	(6, 'Partie 2', 'APRES', 'Section I', 3, '111', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09'),
	(7, 'Partie 2', 'APRES', 'Section IIi', 6, '111', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09'),
	(8, 'Partie 2', 'APRES', 'Section II', 5, '111', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09'),
	(9, 'Partie 3', 'ENTRE', 'Section A', 7, '222', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09'),
	(10, 'Partie 3', 'ENTRE', 'Section B', 8, '202', 2, '2024-07-14 04:33:09', '2024-07-14 04:33:09');

-- Listage de la structure de table paelo. roles
CREATE TABLE IF NOT EXISTS `roles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.roles : ~7 rows (environ)
REPLACE INTO `roles` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
	(1, 'Super Trainer', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15'),
	(2, 'Supervisor', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15'),
	(3, 'Instructor', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15'),
	(4, 'Trainee', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15'),
	(5, 'Trainer', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15'),
	(6, 'Contractor responsible', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15'),
	(7, 'Administrator', 1, '2024-07-11 03:43:15', '2024-07-11 03:43:15');

-- Listage de la structure de table paelo. roles_menus
CREATE TABLE IF NOT EXISTS `roles_menus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `menu_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `role_id_2` (`role_id`,`menu_id`),
  KEY `menu_id` (`menu_id`),
  KEY `role_id` (`role_id`),
  CONSTRAINT `roles_menus_ibfk_1` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`),
  CONSTRAINT `roles_menus_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=264 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.roles_menus : ~202 rows (environ)
REPLACE INTO `roles_menus` (`id`, `role_id`, `menu_id`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(2, 1, 2, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(3, 1, 3, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(4, 1, 4, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(5, 1, 5, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(6, 1, 6, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(7, 1, 7, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(8, 1, 8, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(9, 1, 9, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(10, 1, 10, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(11, 1, 11, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(12, 1, 12, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(13, 1, 13, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(14, 1, 14, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(15, 1, 15, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(16, 1, 16, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(17, 1, 17, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(18, 1, 18, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(19, 1, 19, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(20, 1, 20, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(21, 1, 21, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(22, 1, 22, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(23, 1, 23, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(24, 1, 24, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(25, 1, 25, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(26, 1, 26, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(27, 1, 27, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(28, 1, 28, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(29, 1, 29, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(30, 1, 30, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(31, 1, 31, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(32, 1, 32, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(33, 1, 33, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(34, 1, 34, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(35, 1, 35, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(36, 1, 36, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(37, 1, 37, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(38, 1, 38, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(39, 1, 39, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(40, 1, 40, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(41, 1, 41, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(42, 1, 42, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(43, 1, 43, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(44, 1, 44, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(45, 1, 45, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(46, 1, 46, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(47, 1, 47, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(48, 1, 48, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(49, 1, 49, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(50, 1, 50, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(51, 1, 51, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(52, 1, 52, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(53, 1, 53, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(54, 1, 54, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(55, 1, 55, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(56, 1, 56, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(57, 1, 57, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(58, 1, 58, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(59, 1, 59, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(60, 1, 60, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(61, 1, 61, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(62, 1, 62, '2024-06-11 16:44:03', '2024-06-11 16:44:03'),
	(64, 5, 1, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(65, 5, 2, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(66, 5, 3, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(67, 5, 4, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(68, 5, 5, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(69, 5, 6, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(70, 5, 7, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(71, 5, 8, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(72, 5, 10, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(73, 5, 11, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(74, 5, 14, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(75, 5, 15, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(76, 5, 16, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(77, 5, 18, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(78, 5, 20, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(79, 5, 21, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(80, 5, 22, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(81, 5, 23, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(82, 5, 24, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(83, 5, 39, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(84, 5, 40, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(85, 5, 41, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(86, 5, 42, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(87, 5, 43, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(88, 5, 45, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(89, 5, 46, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(90, 5, 48, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(91, 5, 53, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(92, 5, 57, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(93, 5, 58, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(94, 5, 59, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(95, 5, 60, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(96, 5, 61, '2024-06-11 16:49:10', '2024-06-11 16:49:10'),
	(127, 2, 1, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(128, 2, 2, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(129, 2, 4, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(130, 2, 5, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(131, 2, 21, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(132, 2, 22, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(133, 2, 23, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(134, 2, 24, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(135, 2, 39, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(136, 2, 41, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(137, 2, 42, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(138, 2, 43, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(139, 2, 45, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(140, 2, 46, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(141, 2, 48, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(142, 2, 57, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(143, 2, 58, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(144, 2, 59, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(145, 2, 60, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(146, 2, 61, '2024-06-11 16:51:26', '2024-06-11 16:51:26'),
	(158, 6, 1, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(159, 6, 2, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(160, 6, 3, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(161, 6, 21, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(162, 6, 22, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(163, 6, 24, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(164, 6, 42, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(165, 6, 43, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(166, 6, 44, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(167, 6, 45, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(168, 6, 57, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(169, 6, 58, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(170, 6, 59, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(171, 6, 60, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(172, 6, 61, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(173, 6, 62, '2024-06-11 16:52:16', '2024-06-11 16:52:16'),
	(189, 3, 1, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(190, 3, 2, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(191, 3, 3, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(192, 3, 4, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(193, 3, 5, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(194, 3, 24, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(195, 3, 41, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(196, 3, 57, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(197, 3, 58, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(198, 3, 59, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(199, 3, 60, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(200, 3, 61, '2024-06-11 16:53:15', '2024-06-11 16:53:15'),
	(204, 4, 1, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(205, 4, 2, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(206, 4, 4, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(207, 4, 24, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(208, 4, 57, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(209, 4, 58, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(210, 4, 59, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(211, 4, 60, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(212, 4, 61, '2024-06-11 16:54:40', '2024-06-11 16:54:40'),
	(213, 7, 1, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(214, 7, 3, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(215, 7, 63, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(216, 7, 64, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(217, 7, 65, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(218, 7, 66, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(219, 7, 67, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(220, 7, 68, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(221, 7, 69, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(222, 7, 70, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(223, 7, 71, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(224, 7, 72, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(225, 7, 73, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(226, 7, 74, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(227, 7, 75, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(228, 7, 76, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(229, 7, 77, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(230, 7, 78, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(231, 7, 79, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(232, 7, 80, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(233, 7, 81, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(234, 7, 57, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(235, 7, 58, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(236, 7, 60, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(237, 7, 61, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(238, 7, 62, '2024-06-12 18:30:51', '2024-06-12 18:30:51'),
	(240, 1, 83, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(241, 1, 84, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(242, 1, 85, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(243, 1, 86, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(244, 1, 87, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(245, 1, 88, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(246, 1, 89, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(247, 1, 90, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(248, 1, 91, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(249, 1, 92, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(250, 1, 93, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(251, 1, 94, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(252, 7, 83, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(253, 7, 84, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(254, 7, 85, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(255, 7, 86, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(256, 7, 87, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(257, 7, 88, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(258, 7, 89, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(259, 7, 90, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(260, 7, 91, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(261, 7, 92, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(262, 7, 93, '2024-07-08 19:01:18', '2024-07-08 19:01:18'),
	(263, 7, 94, '2024-07-08 19:01:18', '2024-07-08 19:01:18');

-- Listage de la structure de table paelo. roles_routes
CREATE TABLE IF NOT EXISTS `roles_routes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) DEFAULT NULL,
  `route_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `role_id` (`role_id`),
  KEY `route_id` (`route_id`),
  CONSTRAINT `roles_routes_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
  CONSTRAINT `roles_routes_ibfk_2` FOREIGN KEY (`route_id`) REFERENCES `routes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.roles_routes : ~46 rows (environ)
REPLACE INTO `roles_routes` (`id`, `role_id`, `route_id`, `created_at`, `updated_at`) VALUES
	(3, 7, 27, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(4, 7, 8, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(5, 7, 9, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(6, 7, 7, '2024-06-15 15:05:17', '2024-06-15 15:07:02'),
	(7, 7, 5, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(8, 7, 6, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(9, 7, 11, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(10, 7, 12, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(11, 7, 1, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(12, 7, 2, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(13, 7, 3, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(14, 7, 4, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(15, 7, 16, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(16, 7, 17, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(17, 7, 18, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(18, 7, 10, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(19, 7, 15, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(20, 7, 14, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(21, 7, 26, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(22, 7, 25, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(23, 7, 19, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(24, 7, 22, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(25, 7, 20, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(26, 7, 21, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(27, 7, 23, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(28, 7, 24, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(29, 7, 28, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(30, 7, 13, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(31, 7, 29, '2024-06-15 15:05:17', '2024-06-15 15:05:17'),
	(32, 1, 8, '2024-06-16 03:45:32', '2024-06-16 03:45:32'),
	(33, 1, 30, '2024-06-16 06:13:59', '2024-06-16 06:13:59'),
	(34, 1, 31, '2024-06-16 06:14:12', '2024-06-16 06:14:12'),
	(35, 1, 18, '2024-06-16 12:44:46', '2024-06-16 12:44:46'),
	(36, 1, 32, '2024-06-17 17:49:08', '2024-06-17 17:49:08'),
	(37, 1, 33, '2024-06-17 18:37:10', '2024-06-17 18:37:10'),
	(38, 1, 10, '2024-06-22 11:50:40', '2024-06-22 11:50:40'),
	(39, 7, 34, '2024-06-24 21:28:16', '2024-06-24 21:28:16'),
	(40, 7, 35, '2024-06-24 21:28:16', '2024-06-24 21:28:16'),
	(41, 7, 43, '2024-06-25 18:57:13', '2024-06-25 18:57:13'),
	(42, 7, 44, '2024-06-25 19:00:19', '2024-06-25 19:00:19'),
	(43, 1, 48, '2024-07-04 21:55:32', '2024-07-04 21:55:32'),
	(44, 1, 49, '2024-07-04 21:55:32', '2024-07-04 21:55:32'),
	(45, 1, 50, '2024-07-04 21:55:32', '2024-07-04 21:55:32'),
	(46, 1, 51, '2024-07-04 21:55:32', '2024-07-04 21:55:32'),
	(47, 1, 52, '2024-07-04 21:55:32', '2024-07-04 21:55:32'),
	(48, 1, 53, '2024-07-04 21:55:32', '2024-07-04 21:55:32');

-- Listage de la structure de table paelo. routes
CREATE TABLE IF NOT EXISTS `routes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT NULL,
  `method` varchar(10) DEFAULT NULL,
  `uri` varchar(255) DEFAULT NULL,
  `action` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=120 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;



-- Listage de la structure de table paelo. r_lists
CREATE TABLE IF NOT EXISTS `r_lists` (
  `id` varchar(50) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  UNIQUE KEY `id` (`id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.r_lists : ~2 rows (environ)
REPLACE INTO `r_lists` (`id`, `name`, `type`, `created_at`, `updated_at`) VALUES
	('0', 'No', 'yes_or_no', '2024-07-14 16:58:18', '2024-07-14 16:58:18'),
	('1', 'Yes', 'yes_or_no', '2024-07-14 16:58:32', '2024-07-14 16:58:32');

-- Listage de la structure de table paelo. sections
CREATE TABLE IF NOT EXISTS `sections` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `functions` (`name`,`company_id`),
  KEY `jobs_companies_fk` (`company_id`),
  CONSTRAINT `fk_sections_company_company_id` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.sections : ~4 rows (environ)
REPLACE INTO `sections` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'section test 27 mars malala', NULL, '2024-07-06 13:23:59', '2024-07-06 13:23:59'),
	(2, 'section aout', NULL, '2024-07-06 13:24:14', '2024-07-06 13:24:58'),
	(3, 'Gauche', NULL, '2024-07-06 13:24:25', '2024-07-06 13:24:25'),
	(4, 'Droite', NULL, '2024-07-06 13:24:37', '2024-07-06 13:24:37');

-- Listage de la structure de table paelo. sessions
CREATE TABLE IF NOT EXISTS `sessions` (
  `id` varchar(255) NOT NULL,
  `user_id` bigint(20) unsigned DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `payload` longtext NOT NULL,
  `last_activity` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sessions_user_id_index` (`user_id`),
  KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.sessions : ~1 rows (environ)
REPLACE INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES
	('CYEpksqIf2Y14T1v7ZYWh3WgoEo9IH1YESFfZq3z', 1, '172.18.0.1', 'Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0', 'YTo1OntzOjY6Il90b2tlbiI7czo0MDoiMEc2Nnpad2hibjNUSXgzSmdPbFhoeXR5WWJRd2FjNk55ZTVyY1lHVSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDA6Imh0dHA6Ly9sb2NhbGhvc3QvZW4vdHJhY2stcmVjb3JkL3ZpZXcvNDAiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aToxO3M6OToiZG93bmxvYWRzIjthOjA6e319', 1728919711);

-- Listage de la structure de table paelo. settings
CREATE TABLE IF NOT EXISTS `settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT NULL,
  `paginate` int(11) NOT NULL DEFAULT 15,
  `table_div_class` varchar(50) DEFAULT NULL,
  `table_class` varchar(50) DEFAULT NULL,
  `table_thead_class` varchar(50) DEFAULT NULL,
  `table_tbody_class` varchar(50) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.settings : ~1 rows (environ)
REPLACE INTO `settings` (`id`, `name`, `paginate`, `table_div_class`, `table_class`, `table_thead_class`, `table_tbody_class`, `status`) VALUES
	(1, 'Setting 1', 5, 'table-responsive border rounded-1', 'table mb-0 table-hover display text-nowrap', 'table-info', '', 1);

-- Listage de la structure de table paelo. signers
CREATE TABLE IF NOT EXISTS `signers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `attestation` varchar(64) DEFAULT NULL,
  `certification` varchar(64) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `signers_companies_fk` (`company_id`),
  CONSTRAINT `signers_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.signers : ~2 rows (environ)
REPLACE INTO `signers` (`id`, `attestation`, `certification`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, '2', '3', 1, '2024-07-14 13:12:24', '2024-07-15 17:51:05'),
	(2, 'Test 2', 'Test 2', 1, '2024-07-14 13:12:24', '2024-07-14 13:12:24');

-- Listage de la structure de table paelo. subdepartments
CREATE TABLE IF NOT EXISTS `subdepartments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `subdepartments` (`name`,`company_id`),
  KEY `subdepartments_companies_fk` (`company_id`),
  CONSTRAINT `subdepartments_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- Listage des données de la table paelo.subdepartments : ~13 rows (environ)
REPLACE INTO `subdepartments` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Maintenance garage', 1, '2024-07-05 03:43:34', '2024-07-15 16:40:52'),
	(2, 'Maintenance usine', 1, '2024-07-06 12:29:38', '2024-07-15 16:40:56'),
	(3, 'Maintenance mécanique', NULL, '2024-07-06 12:29:50', '2024-07-06 12:29:50'),
	(4, 'Mine development', NULL, '2024-07-06 12:30:02', '2024-07-06 12:30:02'),
	(5, 'Mine production', NULL, '2024-07-06 12:30:12', '2024-07-06 12:30:12'),
	(6, 'sous departementt test 27 mars malala', NULL, '2024-07-06 12:30:24', '2024-07-06 12:30:24'),
	(7, 'Préposé à la production', NULL, '2024-07-06 12:30:34', '2024-07-06 12:30:34'),
	(8, 'Opérateur', NULL, '2024-07-06 12:30:44', '2024-07-06 12:30:44'),
	(9, 'administration', NULL, '2024-07-06 12:30:57', '2024-07-06 12:30:57'),
	(10, 'aide-mécanicien', NULL, '2024-07-06 12:31:10', '2024-07-06 12:31:10'),
	(11, 'Électromécanicien', NULL, '2024-07-06 12:31:20', '2024-07-06 12:31:20'),
	(12, 'TANA', NULL, '2024-07-06 12:31:34', '2024-07-06 12:31:34'),
	(13, 'FANA', NULL, '2024-07-06 12:31:49', '2024-07-06 12:31:49');

-- Listage de la structure de table paelo. tasks
CREATE TABLE IF NOT EXISTS `tasks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order` int(11) NOT NULL,
  `title` varchar(180) NOT NULL,
  `data_path` varchar(512) DEFAULT NULL,
  `data_type` varchar(5) NOT NULL,
  `module_id` int(11) NOT NULL,
  `question` text DEFAULT NULL,
  `answer_type` tinyint(4) NOT NULL,
  `prefix` varchar(50) DEFAULT NULL,
  `rev` int(11) DEFAULT NULL,
  `duration` int(11) NOT NULL DEFAULT 0,
  `extra_link` varchar(1024) DEFAULT NULL,
  `timer` int(11) NOT NULL DEFAULT 0,
  `documents` text NOT NULL DEFAULT 'a:0:{}',
  `serial` longtext NOT NULL DEFAULT '\'[]\'',
  `scorm_version` int(11) NOT NULL DEFAULT 0,
  `scorm_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`scorm_data`)),
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `task_id` (`id`),
  KEY `module_id` (`module_id`),
  CONSTRAINT `tasks_ibfk_1` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.tasks : ~8 rows (environ)
REPLACE INTO `tasks` (`id`, `order`, `title`, `data_path`, `data_type`, `module_id`, `question`, `answer_type`, `prefix`, `rev`, `duration`, `extra_link`, `timer`, `documents`, `serial`, `scorm_version`, `scorm_data`, `created_at`, `updated_at`) VALUES
	(1, 1, 'Question 1', NULL, 'image', 1, 'ABC', 1, NULL, NULL, 0, NULL, 0, 'a:0:{}', '\'[]\'', 0, NULL, '2024-07-22 03:34:24', '2024-08-16 17:40:13'),
	(2, 2, 'Question 2', NULL, 'video', 1, NULL, 1, NULL, NULL, 0, NULL, 0, 'a:0:{}', '\'[]\'', 0, NULL, '2024-07-22 03:34:41', '2024-08-16 17:40:13'),
	(3, 3, 'Question 3', NULL, 'image', 1, 'AB', 1, NULL, NULL, 0, NULL, 0, 'a:0:{}', '\'[]\'', 0, NULL, '2024-07-22 19:49:34', '2024-08-16 17:37:49'),
	(7, 4, 'Test IMAGE', 'a:1:{s:14:"logo_paelo.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/zwcRaOW5AgkRjH0W34PL8VLKApYQnkGWoMcjJi0a.png";}', 'image', 1, 'Vous ete qui ?\r\nOK\r\n<br> OUI', 1, NULL, NULL, 0, 'test', 0, 'a:1:{s:19:"breeze_register.png";s:94:"public/documents/09847cc5a062c4439983b5494a02371a/wrCYH20GM33lNbfQCicoKtQyKHcApKcXEAKZHMoy.png";}', '\'[]\'', 0, NULL, '2024-07-31 18:54:41', '2024-08-16 17:31:53'),
	(12, 5, 'Test URL', 'https://integrationrh.nsc-fd.com/index.php/en/tasks/create?tr=1431&mid=6312', 'url', 1, NULL, 1, NULL, NULL, 0, 'https://integrationrh.nsc-fd.com/index.php/en/tasks/create?tr=1431&mid=6312', 0, 'a:1:{s:16:"breeze_login.png";s:94:"public/documents/09847cc5a062c4439983b5494a02371a/NWNVFnf5gwrvk3kUbzrEtqJCpRmcajB4X4eCAdgC.png";}', '\'[]\'', 0, NULL, '2024-08-11 13:23:10', '2024-08-16 17:31:53'),
	(21, 6, 'Test SCORM', 'a:1:{s:14:"logo_paelo.png";s:91:"public/scorms/09847cc5a062c4439983b5494a02371a/kXHXtxmcywsbP1waAL1qV8YHO6D94mPFpOZOXWnI.png";}', 'scorm', 1, NULL, 1, NULL, NULL, 0, NULL, 0, 'a:0:{}', '\'[]\'', 1, NULL, '2024-08-15 09:34:02', '2024-08-16 17:31:53'),
	(23, 7, 'Test  IMG 2', 'a:1:{s:11:"laravel.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/iyQRL0pn7ly4NHLcpe5iDchUCmO4b9oyQEjDpObm.png";}', 'image', 1, 'yes', 1, NULL, NULL, 0, NULL, 0, 'a:0:{}', '\'[]\'', 0, NULL, '2024-08-16 16:58:15', '2024-08-16 17:31:53'),
	(24, 1, 'Test 02', 'a:1:{s:16:"breeze_login.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/XFdD7PF8q5mTkFyxIU8klCcvyr8axekpU9YOnuj4.png";}', 'image', 17, 'yes', 1, NULL, NULL, 0, NULL, 0, 'a:0:{}', '\'[]\'', 0, NULL, '2024-09-29 17:28:11', '2024-09-29 17:28:11');

-- Listage de la structure de table paelo. teams
CREATE TABLE IF NOT EXISTS `teams` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.teams : ~9 rows (environ)
REPLACE INTO `teams` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Equipe 1', NULL, '2024-07-06 13:46:02', '2024-07-06 13:46:02'),
	(2, 'Equipe 2', NULL, '2024-07-06 13:46:24', '2024-07-06 13:46:24'),
	(3, 'Equipe 3', NULL, '2024-07-06 13:46:35', '2024-07-06 13:46:35'),
	(4, 'Equipe 5', NULL, '2024-07-06 13:46:52', '2024-07-06 13:46:52'),
	(5, 'Team Paelo', NULL, '2024-07-06 13:47:21', '2024-07-06 13:47:21'),
	(6, 'Team C', NULL, '2024-07-06 13:47:36', '2024-07-06 13:50:08'),
	(7, 'Equipe test 27 mars malala', NULL, '2024-07-06 13:47:50', '2024-07-06 13:47:50'),
	(8, 'Équipe B', NULL, '2024-07-06 13:48:02', '2024-07-06 13:48:02'),
	(9, 'Équipe A', NULL, '2024-07-06 13:48:15', '2024-07-06 13:48:15');

-- Listage de la structure de table paelo. track_record
CREATE TABLE IF NOT EXISTS `track_record` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_training_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `module_order` int(11) NOT NULL,
  `module_name` varchar(180) NOT NULL,
  `task_id` int(11) NOT NULL,
  `task_order` int(11) NOT NULL,
  `task_title` varchar(180) NOT NULL,
  `task_data_path` varchar(512) DEFAULT NULL,
  `data_type` varchar(5) NOT NULL,
  `trainee` tinyint(1) NOT NULL,
  `instructor` tinyint(1) NOT NULL,
  `instructor_id` int(11) DEFAULT NULL,
  `supervisor` tinyint(1) NOT NULL,
  `supervisor_id` int(11) DEFAULT NULL,
  `question` text DEFAULT NULL,
  `answer_type` tinyint(4) NOT NULL DEFAULT 1,
  `answer_points` int(11) DEFAULT NULL,
  `last_start` int(11) NOT NULL DEFAULT 0,
  `last_stop` int(11) NOT NULL DEFAULT 0,
  `duration` int(11) NOT NULL DEFAULT 0,
  `trainee_date` date DEFAULT NULL,
  `instructor_date` date DEFAULT NULL,
  `supervisor_date` date DEFAULT NULL,
  `playback_position` int(11) NOT NULL DEFAULT 0,
  `task_duration` int(11) NOT NULL DEFAULT 0,
  `comments` varchar(1024) DEFAULT NULL,
  `comments2` varchar(1024) DEFAULT NULL,
  `comments3` varchar(1024) DEFAULT NULL,
  `scorm_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`scorm_data`)),
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `track_record_id_2` (`id`),
  KEY `track_record_id` (`id`),
  KEY `task_id` (`module_order`),
  KEY `track_record_id_3` (`id`),
  KEY `task_id_2` (`task_order`),
  KEY `user_training_id` (`user_training_id`),
  KEY `module_id` (`module_order`),
  CONSTRAINT `track_record_ibfk_1` FOREIGN KEY (`user_training_id`) REFERENCES `user_training` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.track_record : ~0 rows (environ)
REPLACE INTO `track_record` (`id`, `user_training_id`, `module_id`, `module_order`, `module_name`, `task_id`, `task_order`, `task_title`, `task_data_path`, `data_type`, `trainee`, `instructor`, `instructor_id`, `supervisor`, `supervisor_id`, `question`, `answer_type`, `answer_points`, `last_start`, `last_stop`, `duration`, `trainee_date`, `instructor_date`, `supervisor_date`, `playback_position`, `task_duration`, `comments`, `comments2`, `comments3`, `scorm_data`, `created_at`, `updated_at`) VALUES
	(1, 32, 1, 1, 'Test Module', 1, 1, 'Question 1', NULL, 'image', 0, 0, NULL, 0, NULL, 'ABC', 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(2, 32, 1, 1, 'Test Module', 2, 2, 'Question 2', NULL, 'video', 0, 0, NULL, 0, NULL, NULL, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(3, 32, 1, 1, 'Test Module', 3, 3, 'Question 3', NULL, 'image', 0, 0, NULL, 0, NULL, 'AB', 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(4, 32, 1, 1, 'Test Module', 7, 4, 'Test IMAGE', 'a:1:{s:14:"logo_paelo.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/zwcRaOW5AgkRjH0W34PL8VLKApYQnkGWoMcjJi0a.png";}', 'image', 0, 0, NULL, 0, NULL, 'Vous ete qui ?\r\nOK\r\n<br> OUI', 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(5, 32, 1, 1, 'Test Module', 12, 5, 'Test URL', 'https://integrationrh.nsc-fd.com/index.php/en/tasks/create?tr=1431&mid=6312', 'url', 0, 0, NULL, 0, NULL, NULL, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(6, 32, 1, 1, 'Test Module', 21, 6, 'Test SCORM', 'a:1:{s:14:"logo_paelo.png";s:91:"public/scorms/09847cc5a062c4439983b5494a02371a/kXHXtxmcywsbP1waAL1qV8YHO6D94mPFpOZOXWnI.png";}', 'scorm', 0, 0, NULL, 0, NULL, NULL, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(7, 32, 1, 1, 'Test Module', 23, 7, 'Test  IMG 2', 'a:1:{s:11:"laravel.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/iyQRL0pn7ly4NHLcpe5iDchUCmO4b9oyQEjDpObm.png";}', 'image', 0, 0, NULL, 0, NULL, 'yes', 1, NULL, 0, 0, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48');

-- Listage de la structure de table paelo. track_record_answer
CREATE TABLE IF NOT EXISTS `track_record_answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `track_record_id` int(11) NOT NULL,
  `answer` text NOT NULL,
  `correct` tinyint(1) NOT NULL,
  `feedback` text DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `filepath` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `track_record_questions_id` (`id`),
  KEY `track_record_questions_id_2` (`id`),
  KEY `track_record_id` (`track_record_id`),
  CONSTRAINT `track_recordanswer_ibfk_1` FOREIGN KEY (`track_record_id`) REFERENCES `track_record` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.track_record_answer : ~0 rows (environ)
REPLACE INTO `track_record_answer` (`id`, `track_record_id`, `answer`, `correct`, `feedback`, `filename`, `filepath`, `created_at`, `updated_at`) VALUES
	(1, 1, 'A', 1, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(2, 1, 'B', 0, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(3, 1, 'C', 0, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(4, 2, 'Test1', 0, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(5, 2, 'Test 2', 0, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(6, 4, 'Test', 1, NULL, NULL, NULL, '2024-10-14 15:26:48', '2024-10-14 15:26:48'),
	(7, 4, 'Test d', 0, NULL, 'Capture d’écran du 2021-11-03 17-16-51.png', 'public/documents/09847cc5a062c4439983b5494a02371a/TsgscLHlrHhENFDrXIGKfxPZn6OzmjoKBI4KYOY4.png', '2024-10-14 15:26:48', '2024-10-14 15:26:48');

-- Listage de la structure de table paelo. trainers
CREATE TABLE IF NOT EXISTS `trainers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `lname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `fname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `training_institution` varchar(255) NOT NULL DEFAULT '',
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `trainers_users_fk` (`user_id`),
  KEY `trainers_companies_fk` (`company_id`),
  CONSTRAINT `trainers_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.trainers : ~4 rows (environ)
REPLACE INTO `trainers` (`id`, `user_id`, `lname`, `fname`, `username`, `company_id`, `training_institution`, `created_at`, `updated_at`) VALUES
	(1, 1, 'TestLNAME', 'TestFNAME', 'test.test1', 1, 'test', '2024-07-25 03:41:42', '2024-07-25 03:41:42'),
	(2, 2, 'TestLNAME 2', 'TestFNAME 2', 'test.test2', 1, 'test', '2024-07-25 03:42:03', '2024-07-25 03:42:03'),
	(3, 3, 'LNAME 3', 'Fname 3', 'test.test3', 1, 'test hjh', '2024-07-25 03:42:19', '2024-07-25 18:17:09'),
	(4, 0, 'Demo', 'DEMO', NULL, 1, 'Test', '2024-07-26 16:19:23', '2024-07-26 16:19:23');

-- Listage de la structure de table paelo. training
CREATE TABLE IF NOT EXISTS `training` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(180) NOT NULL,
  `category_id` int(11) NOT NULL,
  `prefix` varchar(50) DEFAULT NULL,
  `rev` varchar(16) DEFAULT NULL,
  `course_id` int(11) DEFAULT NULL,
  `department_id` int(11) NOT NULL DEFAULT 0,
  `subdepartment_id` int(11) DEFAULT NULL,
  `location_id` int(11) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `details` text DEFAULT NULL,
  `documents` text NOT NULL DEFAULT 'a:0:{}',
  `company_id` int(11) DEFAULT NULL,
  `requires_theory` tinyint(1) NOT NULL DEFAULT 0,
  `requires_practice` tinyint(1) NOT NULL DEFAULT 0,
  `duration_th` int(11) NOT NULL DEFAULT 0,
  `duration_pr` int(11) NOT NULL DEFAULT 0,
  `cost` decimal(10,2) NOT NULL DEFAULT 0.00,
  `refresh` int(11) DEFAULT 0,
  `training_type` int(11) DEFAULT NULL,
  `platform_id` int(11) NOT NULL DEFAULT 1,
  `needs_exam_th` tinyint(1) NOT NULL DEFAULT 0,
  `needs_exam_pr` tinyint(1) NOT NULL DEFAULT 0,
  `training_category_id` int(11) NOT NULL DEFAULT 0,
  `result` int(11) NOT NULL DEFAULT 1,
  `threshold` int(11) NOT NULL DEFAULT 80,
  `randomize` tinyint(1) NOT NULL DEFAULT 0,
  `disable` tinyint(1) NOT NULL DEFAULT 0,
  `interforce_training_id` int(11) NOT NULL DEFAULT 0,
  `interforce_procedure_id` varchar(64) DEFAULT NULL,
  `max_attendancy` int(11) NOT NULL DEFAULT 0,
  `paid` tinyint(1) NOT NULL DEFAULT 0,
  `self_assign` tinyint(1) NOT NULL DEFAULT 0,
  `contractor_assign` tinyint(1) NOT NULL DEFAULT 0,
  `stripe_prod_id` varchar(64) DEFAULT NULL,
  `stripe_price_id` varchar(64) DEFAULT NULL,
  `under_revision` tinyint(4) NOT NULL DEFAULT 0,
  `under_revision_by` varchar(1536) NOT NULL DEFAULT 'a:0:{}',
  `form_id` int(11) NOT NULL DEFAULT 0,
  `training_level_id` int(11) NOT NULL DEFAULT 0,
  `task_video_restrict_fstforward` tinyint(1) NOT NULL DEFAULT 0,
  `is_immutable` tinyint(1) NOT NULL DEFAULT 0,
  `equipement_id` int(11) NOT NULL DEFAULT 0,
  `is_grantable` tinyint(1) NOT NULL DEFAULT 0,
  `cost_redistribution` tinyint(1) NOT NULL DEFAULT 0,
  `survey_id` int(11) NOT NULL DEFAULT 0,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `signer_id` int(11) NOT NULL DEFAULT 0,
  `creator_id` int(11) NOT NULL,
  `major_update` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `training` (`name`,`company_id`,`platform_id`) USING BTREE,
  KEY `training_subject_id` (`id`),
  KEY `caegory_id` (`category_id`),
  KEY `trainings_companies_fk` (`company_id`),
  KEY `trainings_platform_fk` (`platform_id`),
  KEY `equipement_id` (`equipement_id`) USING BTREE,
  KEY `signer_id` (`signer_id`),
  KEY `department_id` (`department_id`),
  KEY `subdepartment_id` (`subdepartment_id`),
  KEY `location_id` (`location_id`),
  KEY `training_category_id` (`training_category_id`),
  KEY `form_id` (`form_id`),
  KEY `training_level_id` (`training_level_id`),
  KEY `creator_id` (`creator_id`),
  CONSTRAINT `training_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `trainings_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE SET NULL ON UPDATE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.training : ~12 rows (environ)
REPLACE INTO `training` (`id`, `name`, `category_id`, `prefix`, `rev`, `course_id`, `department_id`, `subdepartment_id`, `location_id`, `image`, `details`, `documents`, `company_id`, `requires_theory`, `requires_practice`, `duration_th`, `duration_pr`, `cost`, `refresh`, `training_type`, `platform_id`, `needs_exam_th`, `needs_exam_pr`, `training_category_id`, `result`, `threshold`, `randomize`, `disable`, `interforce_training_id`, `interforce_procedure_id`, `max_attendancy`, `paid`, `self_assign`, `contractor_assign`, `stripe_prod_id`, `stripe_price_id`, `under_revision`, `under_revision_by`, `form_id`, `training_level_id`, `task_video_restrict_fstforward`, `is_immutable`, `equipement_id`, `is_grantable`, `cost_redistribution`, `survey_id`, `active`, `signer_id`, `creator_id`, `major_update`, `created_at`, `updated_at`) VALUES
	(1, 'Test 1', 1, 'pref', '1', 1, 1, 1, 1, 'a:1:{s:11:"laravel.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/JMamHJ2zGA15IESRmZm6BR0oMHBsr2ktE8C3KFvm.png";}', 'Test', 'a:2:{s:16:"breeze_login.png";s:94:"public/documents/09847cc5a062c4439983b5494a02371a/NWNVFnf5gwrvk3kUbzrEtqJCpRmcajB4X4eCAdgC.png";s:19:"breeze_register.png";s:94:"public/documents/09847cc5a062c4439983b5494a02371a/wrCYH20GM33lNbfQCicoKtQyKHcApKcXEAKZHMoy.png";}', 1, 1, 1, 3600, 1800, 10.00, 1, 1, 1, 1, 1, 1, 1, 80, 1, 1, 0, NULL, 1, 1, 1, 1, NULL, NULL, 0, 'a:0:{}', 1, 8, 1, 1, 26, 1, 1, 1, 1, 1, 1, 0, '2024-07-13 07:30:11', '2024-10-06 18:39:48'),
	(2, 'Test 2', 2, 'pref2', '1', NULL, 2, 1, 1, NULL, 'Test', 'a:0:{}', 1, 0, 0, 3600, 1800, 0.00, 0, NULL, 1, 0, 0, 1, 1, 80, 0, 0, 0, NULL, 0, 1, 0, 0, NULL, NULL, 0, 'a:0:{}', 2, 6, 0, 0, 26, 0, 0, 0, 1, 2, 1, 0, '2024-07-13 07:30:44', '2024-08-18 05:16:11'),
	(3, 'Test 3', 3, 'pref3', '1', NULL, 3, 5, 8, NULL, 'Test', 'a:0:{}', 1, 0, 0, 3600, 1800, 0.00, 0, NULL, 1, 0, 0, 1, 1, 80, 0, 1, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 6, 2, 0, 0, 1, 0, 0, 0, 1, 2, 1, 0, '2024-07-13 07:30:58', '2024-07-27 17:29:51'),
	(4, 'Test 4', 4, 'pref4', '1', NULL, 1, 1, 1, NULL, 'Test', 'a:0:{}', 1, 0, 0, 3600, 1800, 0.00, 0, NULL, 2, 0, 0, 1, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 1, 1, 0, 0, 2, 0, 0, 0, 1, 1, 1, 0, '2024-07-13 07:30:58', '2024-07-27 17:29:54'),
	(5, 'Test 5', 5, 'pref5', '1', NULL, 1, 4, 1, NULL, 'Test', 'a:0:{}', 1, 0, 0, 3600, 1800, 0.00, 0, NULL, 2, 0, 0, 1, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 5, 3, 0, 0, 1, 0, 0, 0, 1, 3, 1, 0, '2024-07-13 07:30:58', '2024-09-02 03:10:27'),
	(6, 'Test 6', 6, 'pref6', '1', NULL, 6, 1, 3, NULL, 'Test', 'a:0:{}', 1, 0, 0, 3600, 1800, 0.00, 0, NULL, 1, 0, 0, 1, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 1, 1, 0, 0, 3, 0, 0, 0, 1, 1, 1, 0, '2024-07-13 07:30:58', '2024-07-27 17:30:00'),
	(7, 'Test 7', 1, 'Test7', '1', NULL, 1, 1, 1, NULL, 'Test', 'a:0:{}', 1, 0, 0, 3600, 1800, 0.00, 0, NULL, 1, 0, 0, 1, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, '2024-07-13 07:30:11', '2024-07-27 17:30:03'),
	(8, 'Dev', 1, 'Dev', '12', NULL, 1, 1, 1, NULL, 'Test', 'a:0:{}', 12, 0, 0, 0, 0, 0.00, 0, NULL, 1, 0, 0, 0, 1, 80, 0, 0, 0, NULL, 0, 1, 1, 0, NULL, NULL, 0, 'a:0:{}', 2, 0, 0, 0, 26, 0, 0, 0, 1, 1, 1, 0, '2024-07-17 03:57:44', '2024-07-27 17:39:03'),
	(11, 'Test PRocedure', 2, 'PRO', NULL, NULL, 1, 2, NULL, NULL, 'Test', 'a:0:{}', 1, 0, 0, 0, 0, 0.00, 1, NULL, 1, 0, 0, 0, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, '2024-08-18 15:44:14', '2024-08-18 15:44:14'),
	(12, 'Test Booklet', 3, 'BOOKLET', NULL, NULL, 2, 1, NULL, 'a:1:{s:11:"laravel.png";s:91:"public/images/09847cc5a062c4439983b5494a02371a/JMamHJ2zGA15IESRmZm6BR0oMHBsr2ktE8C3KFvm.png";}', 'est dsdfff', 'a:0:{}', 1, 0, 0, 0, 0, 0.00, 544, NULL, 1, 0, 0, 0, 2, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 0, 0, 0, 0, 26, 0, 0, 0, 1, 0, 1, 0, '2024-08-18 17:12:30', '2024-08-18 17:12:30'),
	(13, 'Test PS', 5, 'PS', NULL, NULL, 2, 2, NULL, NULL, 'Test', 'a:0:{}', 1, 0, 0, 0, 0, 0.00, 54545, NULL, 3, 0, 0, 0, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 0, 0, 0, 0, 27, 0, 0, 0, 1, 0, 1, 0, '2024-08-18 17:28:45', '2024-08-18 17:28:45'),
	(14, 'Test PRocedure 2', 2, 'PRO2', NULL, NULL, 0, NULL, NULL, NULL, NULL, 'a:0:{}', 1, 0, 0, 0, 0, 0.00, 4545, NULL, 1, 0, 0, 0, 1, 80, 0, 0, 0, NULL, 0, 0, 0, 0, NULL, NULL, 0, 'a:0:{}', 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, '2024-08-21 17:15:38', '2024-08-21 17:15:38');

-- Listage de la structure de table paelo. training_categories
CREATE TABLE IF NOT EXISTS `training_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `training_categories_companies_fk` (`company_id`),
  CONSTRAINT `training_categories_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_categories : ~3 rows (environ)
REPLACE INTO `training_categories` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Test 1', 1, '2024-07-26 16:52:13', '2024-07-26 16:52:13'),
	(2, 'Test 2 d', 1, '2024-07-26 16:52:31', '2024-07-26 18:37:17'),
	(3, 'Test 3', 1, '2024-07-26 18:07:37', '2024-07-26 18:07:37');

-- Listage de la structure de table paelo. training_costs
CREATE TABLE IF NOT EXISTS `training_costs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `presentiel_id` int(11) NOT NULL,
  `cost` decimal(10,2) NOT NULL DEFAULT 0.00,
  `type` int(11) NOT NULL,
  `date` date DEFAULT NULL,
  `notes` text NOT NULL DEFAULT '',
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `presentiel_id` (`presentiel_id`),
  KEY `type` (`type`),
  CONSTRAINT `training_costs_ibfk_1` FOREIGN KEY (`presentiel_id`) REFERENCES `presentiel` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `training_costs_ibfk_2` FOREIGN KEY (`type`) REFERENCES `training_cost_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_costs : ~0 rows (environ)

-- Listage de la structure de table paelo. training_cost_types
CREATE TABLE IF NOT EXISTS `training_cost_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  CONSTRAINT `training_cost_types_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_cost_types : ~9 rows (environ)
REPLACE INTO `training_cost_types` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Indemnité de formation', 1, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(2, 'Panier repas', 1, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(3, 'type malala', 1, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(4, 'Test Henri', 15, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(6, 'Hébergement', 15, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(7, 'Repas', 15, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(8, 'Formateur', 15, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(9, 'Formation', 15, '2024-08-31 14:14:29', '2024-08-31 14:14:29'),
	(10, 'Base', 15, '2024-08-31 14:14:29', '2024-08-31 14:14:29');

-- Listage de la structure de table paelo. training_demand
CREATE TABLE IF NOT EXISTS `training_demand` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `applicant_id` int(11) DEFAULT NULL COMMENT 'users',
  `demand_date` date NOT NULL DEFAULT current_timestamp(),
  `user_id` int(11) DEFAULT NULL,
  `training_id` int(11) DEFAULT NULL,
  `status` varchar(255) DEFAULT 'pending',
  `decision_date` date DEFAULT NULL,
  `decision_made` varchar(255) DEFAULT NULL,
  `completed_date` date DEFAULT NULL,
  `not_completed_date` date DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `start_date` date DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `level2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `level3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `refusal_raison_level2` text DEFAULT NULL,
  `refusal_raison_level3` text DEFAULT NULL,
  `is_closed` tinyint(4) DEFAULT NULL,
  `team_id` int(11) DEFAULT NULL,
  `description` varchar(2048) DEFAULT NULL,
  `presentiel_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `training_id` (`training_id`),
  KEY `user_id` (`user_id`),
  CONSTRAINT `training_demand_ibfk_1` FOREIGN KEY (`training_id`) REFERENCES `training` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `training_demand_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_demand : ~2 rows (environ)
REPLACE INTO `training_demand` (`id`, `applicant_id`, `demand_date`, `user_id`, `training_id`, `status`, `decision_date`, `decision_made`, `completed_date`, `not_completed_date`, `company_id`, `start_date`, `location`, `level2`, `level3`, `refusal_raison_level2`, `refusal_raison_level3`, `is_closed`, `team_id`, `description`, `presentiel_id`, `created_at`, `updated_at`) VALUES
	(1, 5, '2024-08-27', 1, 1, 'pending', '2024-08-28', 'ddd', '2024-08-28', '2024-08-28', 1, '2024-08-25', 'jjj', '1', '3', 'test', 'test', NULL, NULL, NULL, 1, '2024-08-27 16:41:55', '2024-08-27 16:41:55'),
	(2, 5, '2024-08-14', 1, 2, 'approved', '2024-08-28', 'dsdf', '2024-08-01', '2024-08-28', 1, '2024-08-25', 'jjj', '1', '3', 'test', 'test', NULL, NULL, NULL, 1, '2024-08-27 16:42:27', '2024-08-27 16:43:31');

-- Listage de la structure de table paelo. training_demand_levels
CREATE TABLE IF NOT EXISTS `training_demand_levels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `linked_above` text DEFAULT NULL,
  `req_step1_notification` tinyint(1) NOT NULL DEFAULT 1,
  `req_step2_notification` tinyint(1) NOT NULL DEFAULT 1,
  `req_step3_notification` tinyint(1) NOT NULL DEFAULT 1,
  `req_step4_notification` tinyint(1) NOT NULL DEFAULT 1,
  `trdem_step1_notification` tinyint(1) NOT NULL DEFAULT 1,
  `trdem_step2_notification` tinyint(1) NOT NULL DEFAULT 1,
  `trdem_step3_notification` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `training_demandlevels_users_fk` (`user_id`),
  KEY `training_demandlevels_company_fk` (`company_id`),
  CONSTRAINT `training_demandlevels_company_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `training_demandlevels_users_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_demand_levels : ~0 rows (environ)

-- Listage de la structure de table paelo. training_demand_users
CREATE TABLE IF NOT EXISTS `training_demand_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `training_demand_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `jobGroup_id` (`training_demand_id`),
  KEY `job_training_selection_training_id` (`user_id`),
  CONSTRAINT `training_demandusers_demand_fk` FOREIGN KEY (`training_demand_id`) REFERENCES `training_demand` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `training_demandusers_users_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.training_demand_users : ~0 rows (environ)

-- Listage de la structure de table paelo. training_group
CREATE TABLE IF NOT EXISTS `training_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `type` int(11) NOT NULL DEFAULT 0,
  `prefix` varchar(64) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `interforce_profile_id` int(11) NOT NULL DEFAULT 0,
  `under_revision` tinyint(4) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `training_group` (`name`,`company_id`),
  KEY `name` (`name`),
  KEY `training_group_companies_fk` (`company_id`),
  CONSTRAINT `training_group_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=165 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.training_group : ~126 rows (environ)
REPLACE INTO `training_group` (`id`, `name`, `description`, `type`, `prefix`, `company_id`, `interforce_profile_id`, `under_revision`, `created_at`, `updated_at`) VALUES
	(1, 'Test 01', NULL, 0, NULL, 1, 0, 0, '2024-10-05 07:29:24', '2024-10-05 07:29:24'),
	(2, 'Test 02', NULL, 0, NULL, 1, 0, 0, '2024-10-05 07:29:24', '2024-10-05 07:29:24'),
	(3, 'Test 03', NULL, 0, NULL, 1, 0, 0, '2024-10-05 07:29:24', '2024-10-05 07:30:30'),
	(11, 'IUC_ Cameroun ', 'Département des Sciences infirmières ', 0, NULL, 14, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(12, 'Nouvel employé', '', 0, NULL, 18, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(14, 'MCM_Tour d\'éclairage', '', 0, 'MCM_FOR_001', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(15, 'Groupe formation mécanique ', 'test description', 0, 'gfm', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(16, 'hgdhgdh', 'gfdhgd', 0, NULL, 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(18, 'test', '', 0, NULL, 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(20, 'Groupe formation paélo', '', 0, NULL, 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(21, 'pour les opeateur usine ', '', 0, NULL, 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(24, 'MCM_Accueil_Opérations minières', 'Accueil en ligne | Opérations minières et parc à résidus. |\r\n\r\nAccueil nécessaire pour le travail et la circulation dans le secteur des opérations minières.', 0, 'MCM_IND_OPM_001', 15, 73, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(25, 'Groupe formation test 01', 'description gft', 0, 'gft', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(26, 'Mineur de service général', 'Formations et Procédures pour le poste de mineur de service', 0, '', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(28, 'ODY_Accueil_Construction', 'Parcours de formation spécifique au site d\'intervention Odyssey - Construction.', 0, 'ODY_IND_CON_001', 15, 66, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(29, 'ODY_Accueil_Surface', 'Parcours de formation spécifique aux employés qui œuvrent sur le site de la mine Odyssey à la surface', 0, 'ODY_IND_MIN_002', 15, 115, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(30, 'ODY_Accueil_Souterrain', 'Parcours de formation des employés qui œuvrent sous-terre.', 0, 'ODY_IND_MIN_001', 15, 114, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(31, 'ODY_Accueil_Administration', 'Groupe de formation d\'accueil spécifique aux employés qui œuvrent dans les bureaux.', 0, 'ODY_IND_BUR_001', 15, 111, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(32, 'No More test', '', 0, 'test001', 19, 0, 1, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(33, 'Formation Tracteur L6060 et M5', 'Formation tracteur théorique en ligne', 0, 'MIN-3038 et MIN-3035', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(35, 'Accueil SST Sous terre', 'Accueil SST Eldorado Gold Québec Sous terre', 0, 'FOR-INT-STR', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(36, 'Accueil SST Usine', 'Accueil SST Eldorado Gold Québec Usine Sigma', 0, 'FOR-INT-USI', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(37, 'Accueil SST Surface', 'Accueil SST Eldorado Gold Quebec Surface', 0, 'FOR-INT-SUR', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(38, 'Formation Poste de Boulonneur', 'Formation théorique requise au poste de boulonneur', 0, 'MIN-POS-09', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(41, 'Poste chargeuse-navette', 'Formation Poste opérateur de chargeuse navette', 0, 'MIN-POS-05', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(42, 'Poste opérateur de camion', 'Formation poste opérateur de camion', 0, 'MIN-POS-02', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(43, 'Remote chargeuse navette', 'Formation remote pour les opérateurs de chargeuses. \r\nCompétences manquantes', 0, 'MIN-3081-3018', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(44, 'Loader WA500', 'Donne la formation à tout les loaders sur le site', 0, 'MIN-3057', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(45, 'Chargeuse sur roue CAT 910M', '', 0, 'MIN-3019', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(46, 'Formation Générale téléhandler', 'Formation générale Téléhandler', 0, 'MIN-3005 ', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(47, 'Groupe de formation test MAJ', '', 0, 'GF MAJ', 19, 0, 1, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(48, 'Accueil court terme', 'Accueil SST court terme', 0, 'ELD-1023', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(49, 'Formation pour mécanicien mobile', 'Formation d\'équipement pour mécanicien mobile', 0, 'MEC-1000', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(50, 'Mineur de Construction', 'Formation pour le poste de mineur de construction', 0, 'MIN-POS-04', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(51, 'Groupe de formation PAELO', 'Ensemble de formations créées par PAELO ', 0, 'PAELO-FORM', 20, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(54, 'Opérateur d\'équipement lourd ', 'Opérateur d\'équipement lourd Usine Classe 1', 0, 'USI-POS-046', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(56, 'Formation NXBurst', '', 0, 'MIN-5002', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(57, 'Formation Block holer BH3', '', 0, 'MIN-3047', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(58, 'MCM_Accueil_Usine', 'Formation en ligne | Secteur de l\'usine | Nécessaire pour aller travailler dans le secteur de l\'usine et circuler à l\'intérieur de l\'usine.', 0, 'MCM_IND_USI_001', 15, 79, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(59, 'Préparation de chantier généra', 'Procédures seulement pour entrepreneur en location\r\n', 0, 'MIN-POS-12', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(60, 'ACM_Accueil_Explo', 'Accueil en ligne | Département de l\'exploration | Le personnel travaillant pour le département de l\'exploration doit suivre cet accueil.', 0, 'MCM_IND_EXP_001', 15, 74, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(61, 'Test groupe de formation Mario', 'NOn', 0, 'Mario21058', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(62, 'MCM_Accueil_Admin', 'Formation d\'accueil en ligne | La formation est donnée à tout le personnel administratif.', 0, 'MCM_IND_BUR_001', 15, 84, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(63, 'MCM_Accueil_Construction', 'Formation d\'Accueil en ligne | Le groupe de formation est nécessaire pour tout le personnel travaillant dans le domaine de la construction sur le site de Mine Canadian Malartic.', 0, 'MCM_IND_CONS_001', 15, 81, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(64, 'MCM_Accueil_Entretien mobile', 'Formations d\'accueil en ligne | Formation d\'accueil en ligne du département des Opérations minières, secteur maintenance.', 0, 'MCM_IND_OPM_002', 15, 113, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(65, 'ACM_Accueil_Montréal', 'Formation d\'accueil en ligne | Formation nécessaire pour le personnel des bureaux de Montréal.', 0, 'ACM_IND_MTL_001', 15, 116, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(66, 'ACM_Accueil_Camflo Usine', 'Formation d\'accueil en ligne | Formation nécessaire pour le personnel travaillant sur le site de l\'usine Camflo.', 0, 'ACM_IND_CAM_001', 15, 117, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(67, 'MCM_Accueil_Camflo Parc', 'Formation d\'accueil en ligne | Le personnel ayant à travailler dans le secteur du parc à résidus sur le site de Camflo doivent suivre cette formation.', 0, 'MCM_IND_CAM_002', 15, 118, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(68, 'MCM_Accueil_Parc à résidus', 'Formation d\'accueil en ligne | Les travailleurs ayant à effectuer des travaux dans le secteur du parc à résidus doivent suivre cette formation.', 0, 'MCM_IND_PAR_001', 15, 75, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(69, 'Shutdown 12 avril 2023', 'Travaux sur réservoir 310-TK-0001', 0, 'PKG-001', 20, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(70, 'MCM_Accueil_Représentant', 'Formations d\'accueil en ligne | Les formations sont à compléter pour un travailleur ayant à accéder au site pour une courte durée. Le travailleur sera accompagné en tout temps.', 0, 'MCM_IND_BUR_003', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(71, 'Nouveau superviseur', 'procédures opération Eldoradogold Québec à lire', 0, 'SUP-001', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(72, 'Mineur de service développement', 'Poste de ciseau', 0, 'MIN-POS-010', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(73, 'Poste dynamiteur de chargement', 'Chargement de volées', 0, 'MIN-POS-07', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(74, 'Poste dynamiteur long trou', '', 0, 'MIN-POS-06', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(75, 'Poste opérateur Jumbo', 'Poste opérateur Jumbo', 0, 'MIN-POS-11', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(76, 'Poste préparation de chantier', 'Poste préparation de chantier', 0, 'MIN-POS-12', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(77, 'MCM_Induction_Mine Operation', 'Accueil général en ligne de langue anglaise | General online induction, in English.', 0, 'MCM_IND_OPM_002', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(78, 'MCM_Induction_Mine Plant', 'Accueil général en ligne du secteur de l\'usine en anglais. | General online induction for the Plant sector in English.', 0, 'MCM_IND_USI_002', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(80, 'Poste électricien classe 1', 'Formations et procédures électriciens', 0, 'ELE-004', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(81, 'Groupe de formation NSC', '', 0, 'NSC-JANV-2023', 12, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(84, 'MCM_Induction_general', 'General welcome training for all workers.\r\nDuring this training, you will learn  about the company, is relations with the community and the risks and measures to prevent incidents.\r\n\r\nMCM being concerned to offer a safe working environment for all employees and partners requires that this training be completed to access its facilities.', 0, 'MCM_IND_BUR_004', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(85, 'Groupe de janvier Paelo 2023', 'NANANANA', 0, '2023PAELO', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(86, 'Adjointe Admin', '', 0, 'AVP', 31, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(87, 'Adjointes Administratives ', '', 0, 'AVP', 31, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(88, 'MCM_Accueil_old.Parc à résidus', 'Accueil nécessaire pour le travail et la circulation dans le secteur des opérations minières et du parc à résidus.', 0, 'MCM_IND_PAR_002', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(89, 'Opé. Équipements lourd usine', 'Équipements lourd usine et surface Sigma', 0, 'USI-POS-029', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(90, 'Accueil SST Explo', 'Département exploration sur le site Explo', 0, 'FOR-INT-EXP', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(91, 'concierge-journalier usine', '', 0, 'USI-POS-018', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(92, 'menuisier-services usine-surfa', 'menuiserie et entretien surface', 0, 'USI-POS-037', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(93, 'mécanicien bâtiment-surface', '', 0, 'USI-SUR-013', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(94, 'Exemples pour les clients', 'Différents exemples de projets que l\'on retrouve dans différentes catégories', 0, 'DEMO', 41, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(95, 'Formation télé-opération', '', 0, 'SDC-800', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(96, 'MCM_Accueil_Usine de remblai', 'Formation d\'Accueil en ligne préalable à l\'accès au site pour les employés travaillant sur le site de l\'usine de remblai de Mine Canadian Malartic sur le site de Mine Odyssey.', 0, 'MCM_IND_USI_002', 15, 134, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(97, 'ODY- MCM pour remblai', 'Formation minimale pour employé et entrepreneur MCM remblai', 0, 'MCM_IND_USI_002', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(98, 'groupe de formation 27 mars', 'groupe de formation test 27 mars malala', 0, 'gf27', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(99, 'Exemples pour des clients', 'Exemples de formations pour un potentiel client', 0, 'DEMO', 45, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(100, 'Exemples_pour les clients', 'Exemples de formations dans PAÉLO pour des clients potentiels', 0, 'DEMO', 47, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(101, 'Exemples_pour_les clients', 'Groupe de formation démo pour un potentiel client', 0, 'DEMO', 48, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(102, 'Formation Poste foreur long trou', '', 0, 'MIN-POS-10', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(103, 'Test groupe de formation', '', 0, 'Test groupe de formation', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(104, 'Copie de groupe de formation 0125', '', 0, 'ezaefergtgtr', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(106, 'Poste Journalier Usine - Phase 1 ', 'Phase 1 du poste de journalier usine', 0, 'USI-POS-001-1', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(107, 'Formation électricien', '', 0, 'POS-ELE-001', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(108, 'Poste Journalier Usine - Phase 2', 'Phase 2 du poste de journalier usine\r\n', 0, 'USI-POS-001-2', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(109, 'Poste Journalier Usine - Phase 3', 'Phase 3 du poste de journalier usine', 0, 'USI-POS-001-3', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(110, 'Poste opérateur de concasseur', '', 0, 'USI-POS-002', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(111, 'Poste d\'opérateur d\'utilités - Phase 1', 'Phase 1 du poste d\'opérateur d\'utilités', 0, 'USI-POS-005-1', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(112, 'Test maintenance', 'démo', 0, 'Test maintenance', 37, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(113, 'Poste d\'opérateur d\'utilités - Phase 2', 'Phase 2 du poste d\'opérateur d\'utilités', 0, 'USI-POS-005-2', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(115, 'Poste d\'opérateur de broyage - Phase 1', 'Phase 1 du poste d\'opérateur de broyage', 0, 'USI-POS-010-1', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(116, 'Poste d\'opérateur de broyage - Phase 2', 'Phase 2 du poste d\'opérateur de broyage', 0, 'USI-POS-010-2', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(117, 'MCM_Accueil_Entretien bureaux', 'Formations d\'accueil en ligne préalable à l\'accès au site pour le personnel d\'entretien de bureau sous la supervision du département d\'infrastructures.', 0, 'MCM_IND_INFRA_001', 15, 135, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(118, 'Procédures d\'opération à la coulée', '', 0, 'PRO', 37, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(119, 'télé-opération Cat et automine', '', 0, 'TELEOP-01', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(120, 'Opérateur de solutions - Phase 1 ', 'Phase 1 de la formation au poste d\'opérateur de solutions (Initiation aux solutions)', 0, 'USI-POS-0011-1', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(122, 'Opérateur de solutions - Phase 2', 'Phase 2 de poste d\'opérateur de solutions', 0, 'USI-POS-0011-2', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(123, 'Opérateur de solutions - Phase 3 ', 'Phase 3 du poste d\'opérateur de solutions (Toutes tâches reliées au poste de solutions)', 0, 'USI-POS-0011-3', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(124, 'Groupe de formation MAJ Mai', '', 0, 'PAELO-MAI-MAJ', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(126, 'groupe de formation mai', 'desc', 0, 'gfm', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(127, 'Formations Test Connexion', 'Groupe de formation pour tester la connexion internet chez un client', 0, 'DEMO-001', 20, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(129, 'Juin Groupe MAJ', '', 0, 'MAJuin004', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(130, 'groupe gg', 'ggh', 0, 'gg', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(131, 'Poste Concassage', '', 0, 'Poste Concassage', 54, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(132, 'Poste Supervision', '', 0, 'Poste Supervision', 54, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(133, 'Programme circulation', '', 0, 'Programme', 15, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(134, 'Groupe de formation pour SHUTDOWN', 'Ensemble des formations à attribuer pour le SHUTDOWN', 0, 'GROUPE-001', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(137, 'Chariot élévateur et cariste', '', 0, 'MIN-3017', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(138, 'Rappel de la formation générale sur le Cyanure en usine', 'Rappel annuel de la formation sur le cyanure de sodium. À suivre par tout les employés d\'Eldorado Gold.', 0, 'USI-RAP-001', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(139, 'Groupe comprenant tout les employés d\'Eldorado Gold', 'Ce groupe contient tout les employés d\'Eldorado Gold en vue d\'attribuer des formations ayant à être suivies par tous.', 0, 'GEN-RAP-001', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(141, 'Group training for SHUTDOWN', 'TRAINING COURSES TO ASSIGNED FOR SHUTDOWN', 0, 'GROUP-001', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(142, 'Cohorte 2_IUC', 'Formation - certification Santé Sécurité au Travail SST', 0, '2ème Cohorte IUC', 14, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(143, 'Test doublon par assignation groupe', '', 0, 'doub01245', 19, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(144, 'Test octobre de Mario', '', 0, 'TESTpaelo', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(145, 'Poste Mécanicien fixe-mine', 'mécanique fixe mine', 0, 'MEC-007', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(146, 'PH Tech demo', 'Training group for a free trial period', 0, 'DEMO', 62, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(148, 'Accueil SST - 7 jours', 'Accueil destiner pour les travailleurs qui seront sur nos sites moins de 7 jours', 0, 'FOR-INT-TEST', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(149, 'Journalier surface', 'Journalier surface', 0, 'POS-SUR-01', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(152, 'Nouvel arrivant', 'Formations pour un nouvel employé', 0, 'NOUV-001', 38, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(154, 'Formations pour CFP', 'formation et procédure pour étudiant CFP', 0, 'CFP-0001', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(156, 'Mini-grue IC-35-2F', '', 0, 'MIN-3065', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(157, 'Pont roulant, levage et gréage', '', 0, 'MIN-3062', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(158, 'Toutes les procédures Eldorado', '', 0, 'ELD-01', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(160, 'Exemples_pour_les_clients', 'Exemples de formations, procédures, carnets et 3D', 0, 'DEMO', 50, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(161, 'Readiness troncon commun', '', 0, '001', 24, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10'),
	(163, 'Mécanicien fixe usine', 'Regroupe toutes les formations à suivre et les procédures à lire par les membres du département d\'entretien mécanique de l\'usine.', 0, 'USI-POS-019', 21, 0, 0, '2024-10-05 06:35:10', '2024-10-05 06:35:10');

-- Listage de la structure de table paelo. training_group_types
CREATE TABLE IF NOT EXISTS `training_group_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- Listage des données de la table paelo.training_group_types : ~0 rows (environ)

-- Listage de la structure de table paelo. training_levels
CREATE TABLE IF NOT EXISTS `training_levels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`),
  CONSTRAINT `training_levels_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_levels : ~8 rows (environ)
REPLACE INTO `training_levels` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Niveau 1', 19, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(2, 'Niveau 2', 19, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(3, 'niveau de formation', 19, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(4, 'Cursus ', 24, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(5, 'Adhoc', 24, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(6, 'Niveau 1', 1, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(7, 'Niveau 2', 1, '2024-07-14 12:41:09', '2024-07-14 12:41:09'),
	(8, 'Niveau de formation', 1, '2024-07-14 12:41:09', '2024-07-27 05:37:56');

-- Listage de la structure de table paelo. training_locations
CREATE TABLE IF NOT EXISTS `training_locations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `company_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_locations : ~2 rows (environ)
REPLACE INTO `training_locations` (`id`, `name`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Web NSC', 0, '2024-07-05 22:31:56', '2024-07-05 23:07:50'),
	(2, 'Salle démo PAELO', 0, '2024-07-05 22:33:01', '2024-07-05 23:08:08');

-- Listage de la structure de table paelo. training_modules
CREATE TABLE IF NOT EXISTS `training_modules` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `training_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `order` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `training_modules_id` (`id`),
  KEY `training_id` (`training_id`),
  KEY `module_id` (`module_id`),
  CONSTRAINT `training_modules_ibfk_1` FOREIGN KEY (`training_id`) REFERENCES `training` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `training_modules_ibfk_2` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.training_modules : ~8 rows (environ)
REPLACE INTO `training_modules` (`id`, `training_id`, `module_id`, `order`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, 1, '2024-07-18 15:24:16', '2024-08-16 17:39:52'),
	(4, 1, 5, 2, '2024-07-18 20:02:01', '2024-08-16 17:39:52'),
	(6, 1, 6, 3, '2024-07-20 06:06:56', '2024-07-20 13:19:24'),
	(10, 1, 13, 4, '2024-07-20 13:21:08', '2024-07-20 13:21:08'),
	(11, 1, 9, 5, '2024-08-14 16:02:21', '2024-08-14 16:02:21'),
	(12, 14, 17, 1, '2024-08-21 17:15:39', '2024-08-21 17:15:39'),
	(13, 7, 1, 1, '2024-10-08 19:15:02', '2024-10-08 19:15:02'),
	(14, 7, 17, 2, '2024-10-08 19:15:02', '2024-10-08 19:15:02');

-- Listage de la structure de table paelo. training_result
CREATE TABLE IF NOT EXISTS `training_result` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_result : ~2 rows (environ)
REPLACE INTO `training_result` (`id`, `name`, `created_at`, `updated_at`) VALUES
	(1, 'Attestation', '2024-07-14 12:32:19', '2024-07-14 12:32:19'),
	(2, 'Certification', '2024-07-14 12:32:19', '2024-07-14 12:32:19');

-- Listage de la structure de table paelo. training_selection
CREATE TABLE IF NOT EXISTS `training_selection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `training_group_id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `training_group_id` (`id`),
  KEY `training_selection_training_id` (`training_id`),
  KEY `training_selection_ibfk_1` (`training_group_id`),
  CONSTRAINT `training_selection_ibfk_1` FOREIGN KEY (`training_group_id`) REFERENCES `training_group` (`id`),
  CONSTRAINT `training_selection_training_id` FOREIGN KEY (`training_id`) REFERENCES `training` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.training_selection : ~6 rows (environ)
REPLACE INTO `training_selection` (`id`, `training_group_id`, `training_id`, `category_id`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, 1, '2024-10-05 06:36:52', '2024-10-05 16:05:02'),
	(2, 1, 2, 2, '2024-10-05 06:37:04', '2024-10-05 16:05:04'),
	(3, 90, 3, 3, '2024-10-05 06:37:22', '2024-10-05 06:37:22'),
	(4, 66, 4, 4, '2024-10-05 06:37:37', '2024-10-05 06:37:37'),
	(5, 45, 5, 5, '2024-10-05 06:37:52', '2024-10-05 06:37:52'),
	(6, 137, 6, 6, '2024-10-05 06:38:06', '2024-10-05 06:38:06');

-- Listage de la structure de table paelo. training_services
CREATE TABLE IF NOT EXISTS `training_services` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `competency_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `curriculum` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `services_companies_fk` (`company_id`),
  CONSTRAINT `services_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.training_services : ~0 rows (environ)

-- Listage de la structure de table paelo. updates
CREATE TABLE IF NOT EXISTS `updates` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `number` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(20) NOT NULL,
  `date` date DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `filepath` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `number` (`number`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.updates : ~2 rows (environ)
REPLACE INTO `updates` (`id`, `number`, `description`, `status`, `date`, `filename`, `filepath`, `created_at`, `updated_at`) VALUES
	(1, 'PAELO-001', 'Mise en place de l\'environnement', 'Installed', '2024-06-10', NULL, NULL, '2024-07-05 03:46:42', '2024-07-05 03:46:42'),
	(2, 'PAELO-002', 'Migration de IIS vers Laravel 11', 'Comming', '2024-06-17', NULL, NULL, '2024-07-05 03:46:42', '2024-07-05 03:46:42');

-- Listage de la structure de table paelo. updates_roles
CREATE TABLE IF NOT EXISTS `updates_roles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `update_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `role_id` (`role_id`),
  KEY `update_id` (`update_id`),
  CONSTRAINT `updates_roles_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
  CONSTRAINT `updates_roles_ibfk_2` FOREIGN KEY (`update_id`) REFERENCES `updates` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.updates_roles : ~3 rows (environ)
REPLACE INTO `updates_roles` (`id`, `update_id`, `role_id`, `created_at`, `updated_at`) VALUES
	(1, 1, 7, '2024-06-23 13:29:58', '2024-06-23 13:29:58'),
	(2, 1, 1, '2024-06-23 13:29:58', '2024-06-23 13:29:58'),
	(3, 2, 1, '2024-06-23 13:29:58', '2024-06-23 13:29:58');

-- Listage de la structure de table paelo. users_roles
CREATE TABLE IF NOT EXISTS `users_roles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `role_id` (`role_id`),
  KEY `user_id` (`user_id`),
  CONSTRAINT `users_roles_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
  CONSTRAINT `users_roles_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.users_roles : ~8 rows (environ)
REPLACE INTO `users_roles` (`id`, `user_id`, `role_id`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, '2024-06-15 14:38:57', '2024-06-15 14:39:13'),
	(2, 2, 2, '2024-06-15 14:40:30', '2024-06-15 14:40:30'),
	(3, 3, 3, '2024-06-15 14:40:30', '2024-06-15 14:40:30'),
	(4, 4, 4, '2024-06-15 14:40:30', '2024-06-15 14:40:30'),
	(5, 5, 5, '2024-06-15 14:40:30', '2024-06-15 14:40:30'),
	(6, 6, 6, '2024-06-15 14:40:30', '2024-06-15 14:40:30'),
	(7, 7, 7, '2024-06-15 14:40:30', '2024-06-15 14:40:30'),
	(9, 9, 4, '2024-06-15 14:40:30', '2024-06-15 14:40:30');

-- Listage de la structure de table paelo. users_settings
CREATE TABLE IF NOT EXISTS `users_settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `theme` enum('light','dark') NOT NULL DEFAULT 'light',
  `direction` enum('ltr','rtl') NOT NULL DEFAULT 'ltr',
  `color_theme` enum('Blue_Theme','Aqua_Theme','Purple_Theme','Green_Theme','Cyan_Theme','Orange_Theme') NOT NULL DEFAULT 'Blue_Theme',
  `layout` enum('vertical','horizontal') NOT NULL DEFAULT 'vertical',
  `boxed_layout` enum('false','true') NOT NULL DEFAULT 'true',
  `sidebar_type` enum('full','mini-sidebar') NOT NULL DEFAULT 'full',
  `card_border` enum('false','true') NOT NULL DEFAULT 'false',
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.users_settings : ~6 rows (environ)
REPLACE INTO `users_settings` (`id`, `user_id`, `theme`, `direction`, `color_theme`, `layout`, `boxed_layout`, `sidebar_type`, `card_border`, `created_at`, `updated_at`) VALUES
	(0, 0, 'light', 'ltr', 'Blue_Theme', 'vertical', 'true', 'full', 'true', '2024-07-03 17:36:17', '2024-07-04 03:44:38'),
	(1, 1, 'light', 'ltr', 'Blue_Theme', 'vertical', 'false', 'full', 'true', '2024-07-03 17:37:14', '2024-10-14 14:13:14'),
	(3, 3, 'light', 'ltr', 'Blue_Theme', 'vertical', 'true', 'full', 'false', '2024-07-06 16:48:27', '2024-07-06 16:48:27'),
	(4, 4, 'light', 'ltr', 'Blue_Theme', 'vertical', 'true', 'full', 'false', '2024-07-06 16:48:59', '2024-07-06 16:48:59'),
	(5, 5, 'light', 'ltr', 'Blue_Theme', 'vertical', 'true', 'full', 'false', '2024-07-06 16:49:29', '2024-07-06 16:49:29'),
	(7, 7, 'light', 'ltr', 'Blue_Theme', 'vertical', 'false', 'full', 'false', '2024-07-09 03:08:31', '2024-10-14 14:17:51');

-- Listage de la structure de table paelo. user_competencies
CREATE TABLE IF NOT EXISTS `user_competencies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `competency_id` int(11) NOT NULL,
  `service_id` int(11) NOT NULL,
  `date` date NOT NULL,
  `certification` varchar(255) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `validity` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `competency` (`user_id`,`competency_id`,`service_id`),
  KEY `usercompetencies_services_fk` (`service_id`),
  CONSTRAINT `usercompetencies_services_fk` FOREIGN KEY (`service_id`) REFERENCES `training_services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `usercompetencies_users_user_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.user_competencies : ~0 rows (environ)

-- Listage de la structure de table paelo. user_forms
CREATE TABLE IF NOT EXISTS `user_forms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `form_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `completed` tinyint(4) DEFAULT 0,
  `completed_date` date DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `notification` tinyint(4) DEFAULT 0,
  `answers` mediumtext DEFAULT NULL,
  `modified` tinyint(11) NOT NULL DEFAULT 0,
  `images` mediumtext DEFAULT NULL,
  `assigned_training_id` int(11) NOT NULL DEFAULT 0,
  `signature` text DEFAULT NULL,
  `signature_i` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `signature_s` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `form_id` (`form_id`),
  CONSTRAINT `form_id_forms_fk` FOREIGN KEY (`form_id`) REFERENCES `forms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `user_id_users_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.user_forms : ~5 rows (environ)
REPLACE INTO `user_forms` (`id`, `user_id`, `form_id`, `category_id`, `completed`, `completed_date`, `active`, `notification`, `answers`, `modified`, `images`, `assigned_training_id`, `signature`, `signature_i`, `signature_s`, `created_at`, `updated_at`) VALUES
	(2, 4, 6, 8, 0, '2024-09-18', 1, 0, 'a:2:{s:13:"Nom & prénom";s:4:"test";s:16:"Nombre d\'enfants";s:2:"Un";}', 0, NULL, 0, NULL, NULL, NULL, '2024-09-02 03:42:40', '2024-10-01 02:08:02'),
	(3, 4, 7, 9, 0, '2024-09-18', 1, 0, 'a:2:{s:13:"Nom & prénom";s:4:"test";s:16:"Nombre d\'enfants";s:2:"Un";}', 0, NULL, 0, NULL, NULL, NULL, '2024-09-02 03:42:40', '2024-10-01 02:35:09'),
	(7, 4, 1, 1, 0, NULL, 1, 0, 'a:2:{s:13:"Nom & prénom";s:5:"test2";s:16:"Nombre d\'enfants";s:4:"Deux";}', 0, NULL, 13, 'data:image/png;base64,[encoded data, 20416 characters]', NULL, NULL, '2024-09-22 09:47:30', '2024-09-22 09:47:30'),
	(8, 4, 2, 7, 0, NULL, 1, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, '2024-10-03 18:23:02', '2024-10-03 18:23:02'),
	(9, 4, 3, 9, 0, NULL, 1, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, '2024-10-03 18:23:33', '2024-10-03 18:23:33');

-- Listage de la structure de table paelo. user_groups
CREATE TABLE IF NOT EXISTS `user_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_groups_users_user_idFK` (`user_id`),
  KEY `user_groups_groups_group_id_FK` (`group_id`),
  CONSTRAINT `user_groups_groups_group_id_FK` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `user_groups_users_user_idFK` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.user_groups : ~0 rows (environ)

-- Listage de la structure de table paelo. user_reports
CREATE TABLE IF NOT EXISTS `user_reports` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `report_id` int(11) NOT NULL,
  `completed` tinyint(4) DEFAULT 0,
  `completed_date` date DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `notification` tinyint(4) DEFAULT 0,
  `modified` tinyint(11) NOT NULL DEFAULT 0,
  `localisation` varchar(255) DEFAULT NULL,
  `responsible` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date DEFAULT NULL,
  `hour` time DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `form_id` (`report_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.user_reports : ~4 rows (environ)
REPLACE INTO `user_reports` (`id`, `user_id`, `report_id`, `completed`, `completed_date`, `active`, `notification`, `modified`, `localisation`, `responsible`, `date`, `hour`, `created_at`, `updated_at`) VALUES
	(1, 4, 1, 0, '2024-09-03', 1, 0, 0, NULL, '', NULL, NULL, '2024-09-02 03:49:08', '2024-10-01 02:07:40'),
	(2, 4, 2, 0, '2024-09-03', 1, 0, 0, NULL, '', NULL, NULL, '2024-09-02 03:49:08', '2024-10-01 02:07:43'),
	(3, 4, 3, 0, NULL, 1, 0, 0, NULL, '4', NULL, NULL, '2024-10-03 18:50:22', '2024-10-03 18:50:22'),
	(4, 9, 1, 0, NULL, 1, 0, 0, NULL, '9', NULL, NULL, '2024-10-05 17:27:29', '2024-10-05 17:27:29');

-- Listage de la structure de table paelo. user_report_tasks
CREATE TABLE IF NOT EXISTS `user_report_tasks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `report_id` int(11) NOT NULL,
  `task_id` int(11) NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `reference` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `order` int(11) NOT NULL,
  `module` varchar(255) NOT NULL,
  `module_note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_report_id` int(11) NOT NULL,
  `conform` tinyint(1) NOT NULL DEFAULT 1,
  `non_conform` tinyint(1) NOT NULL DEFAULT 0,
  `na` tinyint(1) NOT NULL DEFAULT 0,
  `priority` int(11) NOT NULL DEFAULT 0,
  `reason` text DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `comments` text DEFAULT NULL,
  `riskcomments` text DEFAULT NULL,
  `risk` int(11) NOT NULL DEFAULT 0,
  `risktype` int(11) NOT NULL DEFAULT 0,
  `observation_date` date DEFAULT NULL,
  `deadline_date` date DEFAULT NULL,
  `preventionist` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `foreman` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `resolved` tinyint(1) NOT NULL DEFAULT 0,
  `foreman_resolved` tinyint(1) NOT NULL DEFAULT 0,
  `foreman_date` date DEFAULT NULL,
  `resolved_comments` text DEFAULT NULL,
  `resolved_images` tinyint(4) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_report_tasks_user_reports_id_fk` (`user_report_id`),
  CONSTRAINT `user_report_tasks_user_reports_id_fk` FOREIGN KEY (`user_report_id`) REFERENCES `user_reports` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.user_report_tasks : ~2 rows (environ)
REPLACE INTO `user_report_tasks` (`id`, `report_id`, `task_id`, `name`, `reference`, `order`, `module`, `module_note`, `user_report_id`, `conform`, `non_conform`, `na`, `priority`, `reason`, `photo`, `comments`, `riskcomments`, `risk`, `risktype`, `observation_date`, `deadline_date`, `preventionist`, `foreman`, `resolved`, `foreman_resolved`, `foreman_date`, `resolved_comments`, `resolved_images`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, 'Test', 'Tetst', 1, 'Test', 'Test', 1, 1, 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 0, '2024-09-02 03:53:03', '2024-09-02 03:53:03'),
	(2, 2, 1, 'Test', 'Tetst', 1, 'Test', 'Test', 2, 1, 0, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 0, '2024-09-02 03:53:03', '2024-09-02 03:53:03');

-- Listage de la structure de table paelo. user_training
CREATE TABLE IF NOT EXISTS `user_training` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_name` varchar(60) DEFAULT NULL,
  `cat_num` varchar(6) DEFAULT NULL,
  `category_id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `name` varchar(180) NOT NULL,
  `user_id` int(11) NOT NULL,
  `attestation` tinyint(1) NOT NULL DEFAULT 0,
  `attest_assigner` varchar(64) DEFAULT NULL,
  `attest_date` date DEFAULT NULL,
  `certification` tinyint(4) NOT NULL DEFAULT 0,
  `cert_assigner` varchar(64) DEFAULT NULL,
  `cert_date` date DEFAULT NULL,
  `assigned_date` date DEFAULT NULL,
  `progress` tinyint(4) NOT NULL DEFAULT 0,
  `fname` varchar(60) NOT NULL,
  `lname` varchar(60) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  `counter` int(11) NOT NULL DEFAULT 1,
  `notification` tinyint(4) NOT NULL DEFAULT 0,
  `notification30` tinyint(1) NOT NULL DEFAULT 0,
  `notification0` tinyint(1) NOT NULL DEFAULT 0,
  `prev_attestations` varchar(512) DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `refresh_date` date DEFAULT NULL,
  `platform_id` int(11) NOT NULL DEFAULT 1,
  `training_group_id` int(11) DEFAULT NULL,
  `job_training_group_id` int(11) DEFAULT NULL,
  `last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `activate_on` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `th_duration_taken` int(11) NOT NULL DEFAULT 0,
  `pr_duration_taken` int(11) NOT NULL DEFAULT 0,
  `company_id` int(11) DEFAULT NULL,
  `survey_id` int(11) NOT NULL DEFAULT 0,
  `form_id` int(11) NOT NULL DEFAULT 0,
  `reassigned` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id_2` (`user_id`),
  KEY `training_id_4` (`training_id`),
  KEY `training_platform_fk` (`platform_id`),
  CONSTRAINT `user_training_users_user_id_fk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.user_training : ~25 rows (environ)
REPLACE INTO `user_training` (`id`, `cat_name`, `cat_num`, `category_id`, `training_id`, `name`, `user_id`, `attestation`, `attest_assigner`, `attest_date`, `certification`, `cert_assigner`, `cert_date`, `assigned_date`, `progress`, `fname`, `lname`, `active`, `counter`, `notification`, `notification30`, `notification0`, `prev_attestations`, `documents`, `refresh_date`, `platform_id`, `training_group_id`, `job_training_group_id`, `last_update`, `activate_on`, `due_date`, `th_duration_taken`, `pr_duration_taken`, `company_id`, `survey_id`, `form_id`, `reassigned`, `created_at`, `updated_at`) VALUES
	(1, 'Test', 'Test', 1, 1, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(2, 'Test', 'Test', 2, 14, 'Test', 4, 0, NULL, NULL, 1, NULL, '2024-09-25', NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 17:44:25', NULL, NULL, 2552, 551, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 17:44:25'),
	(3, 'Test', 'Test', 2, 2, 'Test', 4, 0, NULL, NULL, 1, NULL, '2024-09-25', NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 17:44:25', NULL, NULL, 2552, 551, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 17:44:25'),
	(4, 'Test', 'Test', 2, 3, 'Test', 4, 0, NULL, NULL, 1, NULL, '2024-09-25', NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 17:44:25', NULL, NULL, 2552, 551, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 17:44:25'),
	(5, 'Test', 'Test', 2, 5, 'Test', 4, 0, NULL, NULL, 1, NULL, '2024-09-25', NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 17:44:25', NULL, NULL, 2552, 551, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 17:44:25'),
	(6, 'Test', 'Test', 1, 4, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(7, 'Test', 'Test', 1, 6, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(8, 'Test', 'Test', 1, 7, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(9, 'Test', 'Test', 1, 8, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(10, 'Test', 'Test', 1, 9, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(11, 'Test', 'Test', 1, 10, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(12, 'Test', 'Test', 1, 11, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(13, 'Test', 'Test', 1, 12, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(14, 'Test', 'Test', 1, 13, 'Test', 4, 1, NULL, '2024-09-29', 0, NULL, NULL, NULL, 0, 'dd', 'd', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-09-29 15:21:20', NULL, NULL, 100, 515, NULL, 0, 0, 0, '2024-09-03 16:47:47', '2024-09-29 15:21:20'),
	(28, 'Interactive Survey', '21', 4, 4, 'Test 4', 9, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Trainee2', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 2, NULL, NULL, '2024-10-05 16:44:01', '2024-10-05', '2024-10-06', 0, 0, 1, 0, 0, 0, '2024-10-05 16:44:01', '2024-10-05 16:44:01'),
	(29, 'Personal Survey', '30', 5, 5, 'Test 5', 9, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Trainee2', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 2, NULL, NULL, '2024-10-05 16:44:01', '2024-10-05', '2024-10-06', 0, 0, 1, 0, 0, 0, '2024-10-05 16:44:01', '2024-10-05 16:44:01'),
	(32, 'General', '01', 1, 1, 'Test 1', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, 1, NULL, '2024-10-06 18:07:06', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:06', '2024-10-06 18:07:06'),
	(33, 'Procedures', '06', 2, 2, 'Test 2', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, 1, NULL, '2024-10-06 18:07:06', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:06', '2024-10-06 18:07:06'),
	(34, 'Professional', '13', 3, 3, 'Test 3', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, 2, '2024-10-06 18:07:15', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:15', '2024-10-06 18:07:15'),
	(35, 'General', '01', 1, 8, 'Dev', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-10-06 18:07:23', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:23', '2024-10-06 18:07:23'),
	(36, 'General', '01', 1, 1, 'Test 1', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-10-06 18:07:23', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:23', '2024-10-06 18:07:23'),
	(37, 'Interactive Survey', '21', 4, 4, 'Test 4', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 2, NULL, NULL, '2024-10-06 18:07:23', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:23', '2024-10-06 18:07:23'),
	(38, 'Personal Survey', '30', 5, 5, 'Test 5', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 2, NULL, NULL, '2024-10-06 18:07:23', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:23', '2024-10-06 18:07:23'),
	(39, 'General', '01', 1, 7, 'Test 7', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-10-06 18:07:23', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:23', '2024-10-06 18:07:23'),
	(40, 'Procedures', '06', 2, 11, 'Test PRocedure', 1, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 'Super trainer', 'TEST', 1, 1, 0, 0, 0, NULL, NULL, NULL, 1, NULL, NULL, '2024-10-06 18:07:23', '2024-10-06', NULL, 0, 0, 1, 0, 0, 0, '2024-10-06 18:07:23', '2024-10-06 18:07:23');

-- Listage de la structure de table paelo. user_training_group
CREATE TABLE IF NOT EXISTS `user_training_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `training_group_id` int(11) NOT NULL,
  `date` date NOT NULL,
  `completed` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `training_group_id` (`training_group_id`),
  CONSTRAINT `user_training_group_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `user_training_group_ibfk_2` FOREIGN KEY (`training_group_id`) REFERENCES `training_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- Listage des données de la table paelo.user_training_group : ~0 rows (environ)

-- Listage de la structure de table paelo. user_training_modules
CREATE TABLE IF NOT EXISTS `user_training_modules` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_training_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `type` varchar(100) DEFAULT NULL,
  `completion_date` date DEFAULT NULL,
  `score` int(11) DEFAULT NULL,
  `training` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `user_training_id` (`user_training_id`),
  KEY `user_training_modules_modules_module_id_fk_1` (`module_id`),
  CONSTRAINT `user_training_modules_ibfk_1` FOREIGN KEY (`user_training_id`) REFERENCES `user_training` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `user_training_modules_modules_module_id_fk_1` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Listage des données de la table paelo.user_training_modules : ~0 rows (environ)

-- Listage de la structure de table paelo. works
CREATE TABLE IF NOT EXISTS `works` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `is_auto_evaluation` tinyint(1) NOT NULL DEFAULT 0,
  `company_id` int(11) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `functions` (`name`,`company_id`),
  KEY `jobs_companies_fk` (`company_id`),
  CONSTRAINT `jobs_companies_fk` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='jobs';

-- Listage des données de la table paelo.works : ~14 rows (environ)
REPLACE INTO `works` (`id`, `name`, `is_auto_evaluation`, `company_id`, `created_at`, `updated_at`) VALUES
	(1, 'Coordonnateur-trice', 0, NULL, '2024-07-05 03:46:05', '2024-07-06 12:57:16'),
	(2, 'Contremaitre', 0, NULL, '2024-07-06 12:57:53', '2024-07-06 12:57:53'),
	(3, 'Surintendant(e)', 0, NULL, '2024-07-06 12:58:10', '2024-07-06 12:58:10'),
	(4, 'Opérateur Usine', 0, NULL, '2024-07-06 12:58:20', '2024-07-06 12:58:20'),
	(5, 'Mécanicien machinerie mobile', 0, NULL, '2024-07-06 12:58:30', '2024-07-06 12:58:30'),
	(6, 'Formateur', 0, NULL, '2024-07-06 12:58:39', '2024-07-06 12:58:39'),
	(7, 'Opérateur', 0, NULL, '2024-07-06 12:58:50', '2024-07-06 12:58:50'),
	(8, 'poste test 27 mars malala', 0, NULL, '2024-07-06 12:58:59', '2024-07-06 13:06:07'),
	(9, 'Poste Mai', 0, NULL, '2024-07-06 12:59:12', '2024-07-06 12:59:12'),
	(10, 'Journalier', 0, NULL, '2024-07-06 12:59:21', '2024-07-06 12:59:21'),
	(11, 'Administration', 0, NULL, '2024-07-06 12:59:30', '2024-07-06 12:59:30'),
	(12, 'Directeur(trice)', 0, NULL, '2024-07-06 12:59:41', '2024-07-06 12:59:41'),
	(13, 'Mécanicien', 0, NULL, '2024-07-06 12:59:52', '2024-07-06 12:59:52'),
	(14, 'Électricien', 0, NULL, '2024-07-06 13:00:05', '2024-07-06 13:00:05');

-- Listage de la structure de déclencheur paelo. routes_before_insert
DROP TRIGGER IF EXISTS `routes_before_insert`;
SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
DELIMITER //
CREATE TRIGGER `routes_before_insert` BEFORE INSERT ON `routes` FOR EACH ROW BEGIN

	IF LEFT(NEW.uri, 1) != '/' THEN
    	SET NEW.uri = CONCAT('/', NEW.uri);
	END IF;
    
END//
DELIMITER ;

-- Listage de la structure de déclencheur paelo. training_modules_before_insert
DROP TRIGGER IF EXISTS `training_modules_before_insert`;
SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
    SET NEW.order = IFNULL(@max_order, 0) + 1;
    
END//
DELIMITER ;

