-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : ven. 31 juil. 2026 à 10:30
-- Version du serveur : 10.4.28-MariaDB
-- Version de PHP : 8.2.4

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Base de données : `phpmyadmin`
--
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
USE `phpmyadmin`;

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

--
-- Structure de la table `pma__bookmark`
--

CREATE TABLE `pma__bookmark` (
  `id` int(11) NOT NULL,
  `dbase` varchar(255) NOT NULL DEFAULT '',
  `user` varchar(255) NOT NULL DEFAULT '',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `query` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks';
-- Erreur de lecture des données pour la table phpmyadmin.pma__bookmark : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__bookmark`&#039; à la ligne 1

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

--
-- Structure de la table `pma__central_columns`
--

CREATE TABLE `pma__central_columns` (
  `db_name` varchar(64) NOT NULL,
  `col_name` varchar(64) NOT NULL,
  `col_type` varchar(64) NOT NULL,
  `col_length` text DEFAULT NULL,
  `col_collation` varchar(64) NOT NULL,
  `col_isNull` tinyint(1) NOT NULL,
  `col_extra` varchar(255) DEFAULT '',
  `col_default` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Central list of columns';
-- Erreur de lecture des données pour la table phpmyadmin.pma__central_columns : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__central_columns`&#039; à la ligne 1

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

--
-- Structure de la table `pma__column_info`
--

CREATE TABLE `pma__column_info` (
  `id` int(5) UNSIGNED NOT NULL,
  `db_name` varchar(64) NOT NULL DEFAULT '',
  `table_name` varchar(64) NOT NULL DEFAULT '',
  `column_name` varchar(64) NOT NULL DEFAULT '',
  `comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `mimetype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `transformation` varchar(255) NOT NULL DEFAULT '',
  `transformation_options` varchar(255) NOT NULL DEFAULT '',
  `input_transformation` varchar(255) NOT NULL DEFAULT '',
  `input_transformation_options` varchar(255) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin';
-- Erreur de lecture des données pour la table phpmyadmin.pma__column_info : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__column_info`&#039; à la ligne 1

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

--
-- Structure de la table `pma__designer_settings`
--

CREATE TABLE `pma__designer_settings` (
  `username` varchar(64) NOT NULL,
  `settings_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Settings related to Designer';
-- Erreur de lecture des données pour la table phpmyadmin.pma__designer_settings : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__designer_settings`&#039; à la ligne 1

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

--
-- Structure de la table `pma__export_templates`
--

CREATE TABLE `pma__export_templates` (
  `id` int(5) UNSIGNED NOT NULL,
  `username` varchar(64) NOT NULL,
  `export_type` varchar(10) NOT NULL,
  `template_name` varchar(64) NOT NULL,
  `template_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved export templates';
-- Erreur de lecture des données pour la table phpmyadmin.pma__export_templates : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__export_templates`&#039; à la ligne 1

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

--
-- Structure de la table `pma__favorite`
--

CREATE TABLE `pma__favorite` (
  `username` varchar(64) NOT NULL,
  `tables` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Favorite tables';
-- Erreur de lecture des données pour la table phpmyadmin.pma__favorite : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__favorite`&#039; à la ligne 1

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

--
-- Structure de la table `pma__history`
--

CREATE TABLE `pma__history` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `username` varchar(64) NOT NULL DEFAULT '',
  `db` varchar(64) NOT NULL DEFAULT '',
  `table` varchar(64) NOT NULL DEFAULT '',
  `timevalue` timestamp NOT NULL DEFAULT current_timestamp(),
  `sqlquery` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin';
-- Erreur de lecture des données pour la table phpmyadmin.pma__history : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__history`&#039; à la ligne 1

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

--
-- Structure de la table `pma__navigationhiding`
--

CREATE TABLE `pma__navigationhiding` (
  `username` varchar(64) NOT NULL,
  `item_name` varchar(64) NOT NULL,
  `item_type` varchar(64) NOT NULL,
  `db_name` varchar(64) NOT NULL,
  `table_name` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Hidden items of navigation tree';
-- Erreur de lecture des données pour la table phpmyadmin.pma__navigationhiding : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__navigationhiding`&#039; à la ligne 1

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

--
-- Structure de la table `pma__pdf_pages`
--

CREATE TABLE `pma__pdf_pages` (
  `db_name` varchar(64) NOT NULL DEFAULT '',
  `page_nr` int(10) UNSIGNED NOT NULL,
  `page_descr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin';
-- Erreur de lecture des données pour la table phpmyadmin.pma__pdf_pages : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__pdf_pages`&#039; à la ligne 1

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

--
-- Structure de la table `pma__recent`
--

CREATE TABLE `pma__recent` (
  `username` varchar(64) NOT NULL,
  `tables` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Recently accessed tables';
-- Erreur de lecture des données pour la table phpmyadmin.pma__recent : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__recent`&#039; à la ligne 1

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

--
-- Structure de la table `pma__relation`
--

CREATE TABLE `pma__relation` (
  `master_db` varchar(64) NOT NULL DEFAULT '',
  `master_table` varchar(64) NOT NULL DEFAULT '',
  `master_field` varchar(64) NOT NULL DEFAULT '',
  `foreign_db` varchar(64) NOT NULL DEFAULT '',
  `foreign_table` varchar(64) NOT NULL DEFAULT '',
  `foreign_field` varchar(64) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Relation table';
-- Erreur de lecture des données pour la table phpmyadmin.pma__relation : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__relation`&#039; à la ligne 1

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

--
-- Structure de la table `pma__savedsearches`
--

CREATE TABLE `pma__savedsearches` (
  `id` int(5) UNSIGNED NOT NULL,
  `username` varchar(64) NOT NULL DEFAULT '',
  `db_name` varchar(64) NOT NULL DEFAULT '',
  `search_name` varchar(64) NOT NULL DEFAULT '',
  `search_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved searches';
-- Erreur de lecture des données pour la table phpmyadmin.pma__savedsearches : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__savedsearches`&#039; à la ligne 1

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

--
-- Structure de la table `pma__table_coords`
--

CREATE TABLE `pma__table_coords` (
  `db_name` varchar(64) NOT NULL DEFAULT '',
  `table_name` varchar(64) NOT NULL DEFAULT '',
  `pdf_page_number` int(11) NOT NULL DEFAULT 0,
  `x` float UNSIGNED NOT NULL DEFAULT 0,
  `y` float UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output';
-- Erreur de lecture des données pour la table phpmyadmin.pma__table_coords : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__table_coords`&#039; à la ligne 1

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

--
-- Structure de la table `pma__table_info`
--

CREATE TABLE `pma__table_info` (
  `db_name` varchar(64) NOT NULL DEFAULT '',
  `table_name` varchar(64) NOT NULL DEFAULT '',
  `display_field` varchar(64) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin';
-- Erreur de lecture des données pour la table phpmyadmin.pma__table_info : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__table_info`&#039; à la ligne 1

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

--
-- Structure de la table `pma__table_uiprefs`
--

CREATE TABLE `pma__table_uiprefs` (
  `username` varchar(64) NOT NULL,
  `db_name` varchar(64) NOT NULL,
  `table_name` varchar(64) NOT NULL,
  `prefs` text NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Tables'' UI preferences';
-- Erreur de lecture des données pour la table phpmyadmin.pma__table_uiprefs : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__table_uiprefs`&#039; à la ligne 1

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

--
-- Structure de la table `pma__tracking`
--

CREATE TABLE `pma__tracking` (
  `db_name` varchar(64) NOT NULL,
  `table_name` varchar(64) NOT NULL,
  `version` int(10) UNSIGNED NOT NULL,
  `date_created` datetime NOT NULL,
  `date_updated` datetime NOT NULL,
  `schema_snapshot` text NOT NULL,
  `schema_sql` text DEFAULT NULL,
  `data_sql` longtext DEFAULT NULL,
  `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') DEFAULT NULL,
  `tracking_active` int(1) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database changes tracking for phpMyAdmin';
-- Erreur de lecture des données pour la table phpmyadmin.pma__tracking : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__tracking`&#039; à la ligne 1

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

--
-- Structure de la table `pma__userconfig`
--

CREATE TABLE `pma__userconfig` (
  `username` varchar(64) NOT NULL,
  `timevalue` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `config_data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin';
-- Erreur de lecture des données pour la table phpmyadmin.pma__userconfig : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__userconfig`&#039; à la ligne 1

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

--
-- Structure de la table `pma__usergroups`
--

CREATE TABLE `pma__usergroups` (
  `usergroup` varchar(64) NOT NULL,
  `tab` varchar(64) NOT NULL,
  `allowed` enum('Y','N') NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User groups with configured menu items';
-- Erreur de lecture des données pour la table phpmyadmin.pma__usergroups : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__usergroups`&#039; à la ligne 1

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

--
-- Structure de la table `pma__users`
--

CREATE TABLE `pma__users` (
  `username` varchar(64) NOT NULL,
  `usergroup` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and their assignments to user groups';
-- Erreur de lecture des données pour la table phpmyadmin.pma__users : #1064 - Erreur de syntaxe près de &#039;FROM `phpmyadmin`.`pma__users`&#039; à la ligne 1

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

--
-- Index pour la table `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `pma__central_columns`
--
ALTER TABLE `pma__central_columns`
  ADD PRIMARY KEY (`db_name`,`col_name`);

--
-- Index pour la table `pma__column_info`
--
ALTER TABLE `pma__column_info`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`);

--
-- Index pour la table `pma__designer_settings`
--
ALTER TABLE `pma__designer_settings`
  ADD PRIMARY KEY (`username`);

--
-- Index pour la table `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`);

--
-- Index pour la table `pma__favorite`
--
ALTER TABLE `pma__favorite`
  ADD PRIMARY KEY (`username`);

--
-- Index pour la table `pma__history`
--
ALTER TABLE `pma__history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `username` (`username`,`db`,`table`,`timevalue`);

--
-- Index pour la table `pma__navigationhiding`
--
ALTER TABLE `pma__navigationhiding`
  ADD PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`);

--
-- Index pour la table `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
  ADD PRIMARY KEY (`page_nr`),
  ADD KEY `db_name` (`db_name`);

--
-- Index pour la table `pma__recent`
--
ALTER TABLE `pma__recent`
  ADD PRIMARY KEY (`username`);

--
-- Index pour la table `pma__relation`
--
ALTER TABLE `pma__relation`
  ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`),
  ADD KEY `foreign_field` (`foreign_db`,`foreign_table`);

--
-- Index pour la table `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`);

--
-- Index pour la table `pma__table_coords`
--
ALTER TABLE `pma__table_coords`
  ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`);

--
-- Index pour la table `pma__table_info`
--
ALTER TABLE `pma__table_info`
  ADD PRIMARY KEY (`db_name`,`table_name`);

--
-- Index pour la table `pma__table_uiprefs`
--
ALTER TABLE `pma__table_uiprefs`
  ADD PRIMARY KEY (`username`,`db_name`,`table_name`);

--
-- Index pour la table `pma__tracking`
--
ALTER TABLE `pma__tracking`
  ADD PRIMARY KEY (`db_name`,`table_name`,`version`);

--
-- Index pour la table `pma__userconfig`
--
ALTER TABLE `pma__userconfig`
  ADD PRIMARY KEY (`username`);

--
-- Index pour la table `pma__usergroups`
--
ALTER TABLE `pma__usergroups`
  ADD PRIMARY KEY (`usergroup`,`tab`,`allowed`);

--
-- Index pour la table `pma__users`
--
ALTER TABLE `pma__users`
  ADD PRIMARY KEY (`username`,`usergroup`);

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

--
-- AUTO_INCREMENT pour la table `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pma__column_info`
--
ALTER TABLE `pma__column_info`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pma__history`
--
ALTER TABLE `pma__history`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
  MODIFY `page_nr` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Base de données : `tc_quiz_local`
--
CREATE DATABASE IF NOT EXISTS `tc_quiz_local` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `tc_quiz_local`;

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

--
-- Structure de la table `acceptation`
--

CREATE TABLE `acceptation` (
  `id` int(11) NOT NULL,
  `code_membre` varchar(20) NOT NULL,
  `version` int(11) NOT NULL,
  `titre` varchar(200) NOT NULL,
  `texte_accepte` mediumtext NOT NULL,
  `accepte_le` datetime NOT NULL DEFAULT current_timestamp(),
  `ip` varchar(45) DEFAULT NULL,
  `user_agent` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.acceptation : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`acceptation`&#039; à la ligne 1

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

--
-- Structure de la table `chapitre`
--

CREATE TABLE `chapitre` (
  `id` int(11) NOT NULL,
  `pays` char(2) NOT NULL DEFAULT 'FR',
  `langue` char(2) NOT NULL DEFAULT 'fr',
  `niveau_id` varchar(4) NOT NULL,
  `matiere_id` varchar(60) NOT NULL,
  `code` varchar(80) NOT NULL,
  `nom` varchar(200) NOT NULL,
  `competence` text DEFAULT NULL,
  `perimetre` text DEFAULT NULL,
  `connaissances` text DEFAULT NULL,
  `exclusions` text DEFAULT NULL,
  `curriculum_ref` varchar(255) DEFAULT NULL,
  `official` tinyint(1) NOT NULL DEFAULT 1,
  `ordre` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.chapitre : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`chapitre`&#039; à la ligne 1

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

--
-- Structure de la table `choix`
--

CREATE TABLE `choix` (
  `id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `texte` varchar(500) NOT NULL,
  `est_correct` tinyint(1) NOT NULL DEFAULT 0,
  `position` tinyint(4) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.choix : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`choix`&#039; à la ligne 1

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

--
-- Structure de la table `domaine`
--

CREATE TABLE `domaine` (
  `code` varchar(4) NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'general',
  `ordre` tinyint(4) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.domaine : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`domaine`&#039; à la ligne 1

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

--
-- Structure de la table `domaine_i18n`
--

CREATE TABLE `domaine_i18n` (
  `domaine_code` varchar(4) NOT NULL,
  `langue` char(2) NOT NULL,
  `nom` varchar(120) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.domaine_i18n : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`domaine_i18n`&#039; à la ligne 1

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

--
-- Structure de la table `matiere`
--

CREATE TABLE `matiere` (
  `id` varchar(60) NOT NULL,
  `niveau_id` varchar(4) NOT NULL,
  `nom` varchar(160) NOT NULL,
  `optional` tinyint(1) NOT NULL DEFAULT 0,
  `domaine_code` varchar(4) DEFAULT NULL,
  `code2` varchar(3) DEFAULT NULL,
  `ordre` smallint(6) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.matiere : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`matiere`&#039; à la ligne 1

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

--
-- Structure de la table `matiere_i18n`
--

CREATE TABLE `matiere_i18n` (
  `matiere_id` varchar(60) NOT NULL,
  `niveau_id` varchar(4) NOT NULL,
  `langue` char(2) NOT NULL,
  `nom` varchar(160) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.matiere_i18n : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`matiere_i18n`&#039; à la ligne 1

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

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

CREATE TABLE `media` (
  `id` int(10) UNSIGNED NOT NULL,
  `code_question` varchar(40) NOT NULL,
  `categorie` enum('image','audio','video','document','autre') NOT NULL DEFAULT 'autre',
  `type` varchar(100) NOT NULL,
  `nom_original` varchar(255) NOT NULL,
  `chemin` varchar(255) NOT NULL,
  `chemin_leger` varchar(255) DEFAULT NULL,
  `largeur` int(11) DEFAULT NULL,
  `hauteur` int(11) DEFAULT NULL,
  `taille` int(10) UNSIGNED DEFAULT NULL,
  `legende` varchar(255) DEFAULT NULL,
  `ordre` smallint(6) NOT NULL DEFAULT 0,
  `cree_par` varchar(10) DEFAULT NULL,
  `cree_le` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.media : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`media`&#039; à la ligne 1

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

--
-- Structure de la table `membre`
--

CREATE TABLE `membre` (
  `id` int(10) UNSIGNED NOT NULL,
  `code` varchar(10) NOT NULL,
  `courriel` varchar(190) NOT NULL,
  `prenom` varchar(100) NOT NULL DEFAULT '',
  `nom` varchar(100) NOT NULL DEFAULT '',
  `presentation` text DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `statut` char(1) NOT NULL DEFAULT 'M',
  `mdp_hash` varchar(255) NOT NULL,
  `login_token` varchar(64) DEFAULT NULL,
  `cree_le` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.membre : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`membre`&#039; à la ligne 1

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

--
-- Structure de la table `membre_acces`
--

CREATE TABLE `membre_acces` (
  `membre_id` int(10) UNSIGNED NOT NULL,
  `niveau_id` varchar(8) NOT NULL,
  `matiere_id` varchar(64) NOT NULL,
  `responsable` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.membre_acces : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`membre_acces`&#039; à la ligne 1

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

--
-- Structure de la table `niveau`
--

CREATE TABLE `niveau` (
  `id` varchar(4) NOT NULL,
  `grade` varchar(20) NOT NULL,
  `ordre` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.niveau : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`niveau`&#039; à la ligne 1

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

--
-- Structure de la table `niveau_i18n`
--

CREATE TABLE `niveau_i18n` (
  `niveau_id` varchar(4) NOT NULL,
  `langue` char(2) NOT NULL,
  `libelle` varchar(80) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.niveau_i18n : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`niveau_i18n`&#039; à la ligne 1

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

--
-- Structure de la table `notification`
--

CREATE TABLE `notification` (
  `id` int(10) UNSIGNED NOT NULL,
  `membre_code` varchar(10) NOT NULL,
  `code_question` varchar(40) DEFAULT NULL,
  `texte` varchar(255) NOT NULL,
  `lu` tinyint(1) NOT NULL DEFAULT 0,
  `cree_le` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.notification : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`notification`&#039; à la ligne 1

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

--
-- Structure de la table `objectif_chapitre`
--

CREATE TABLE `objectif_chapitre` (
  `objectif_id` int(11) NOT NULL,
  `chapitre_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.objectif_chapitre : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`objectif_chapitre`&#039; à la ligne 1

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

--
-- Structure de la table `objectif_niveau`
--

CREATE TABLE `objectif_niveau` (
  `id` int(11) NOT NULL,
  `pays` char(2) NOT NULL DEFAULT 'FR',
  `matiere_id` varchar(60) NOT NULL,
  `niveau_id` varchar(4) NOT NULL,
  `ordre` int(11) NOT NULL DEFAULT 0,
  `code` varchar(80) DEFAULT NULL,
  `libelle` varchar(400) NOT NULL,
  `ref_programme` varchar(255) DEFAULT NULL,
  `actif` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.objectif_niveau : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`objectif_niveau`&#039; à la ligne 1

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

--
-- Structure de la table `question`
--

CREATE TABLE `question` (
  `id` int(11) NOT NULL,
  `chapitre_id` int(11) NOT NULL,
  `type` enum('qcm','numeric') NOT NULL DEFAULT 'qcm',
  `enonce` text NOT NULL,
  `difficulte` tinyint(4) DEFAULT 1,
  `explication` text DEFAULT NULL,
  `num_value` decimal(18,6) DEFAULT NULL,
  `num_tolerance` decimal(18,6) DEFAULT 0.000000,
  `num_unit` varchar(40) DEFAULT NULL,
  `statut` enum('draft','in_review','validated','rejected') NOT NULL DEFAULT 'draft',
  `valide_par` varchar(120) DEFAULT NULL,
  `valide_le` datetime DEFAULT NULL,
  `note_qa` text DEFAULT NULL,
  `source` varchar(120) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `motif_rejet` text DEFAULT NULL,
  `ref` varchar(40) DEFAULT NULL,
  `version` int(11) NOT NULL DEFAULT 1,
  `courante` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.question : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`question`&#039; à la ligne 1

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

--
-- Structure de la table `registre`
--

CREATE TABLE `registre` (
  `id` int(10) UNSIGNED NOT NULL,
  `code_question` varchar(30) DEFAULT NULL,
  `code_membre` varchar(10) DEFAULT NULL,
  `action` varchar(20) NOT NULL,
  `motif` text DEFAULT NULL,
  `cree_le` datetime NOT NULL DEFAULT current_timestamp(),
  `version` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.registre : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`registre`&#039; à la ligne 1

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

--
-- Structure de la table `vocabulaire`
--

CREATE TABLE `vocabulaire` (
  `cle` varchar(80) NOT NULL,
  `langue` char(2) NOT NULL,
  `texte` varchar(500) NOT NULL,
  `portee` enum('atelier','app','commun') NOT NULL DEFAULT 'commun',
  `commentaire` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table tc_quiz_local.vocabulaire : #1064 - Erreur de syntaxe près de &#039;FROM `tc_quiz_local`.`vocabulaire`&#039; à la ligne 1

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

--
-- Index pour la table `acceptation`
--
ALTER TABLE `acceptation`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_acc` (`code_membre`,`version`),
  ADD KEY `idx_membre` (`code_membre`);

--
-- Index pour la table `chapitre`
--
ALTER TABLE `chapitre`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_chap` (`pays`,`niveau_id`,`matiere_id`,`code`),
  ADD KEY `matiere_id` (`matiere_id`,`niveau_id`);

--
-- Index pour la table `choix`
--
ALTER TABLE `choix`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_q` (`question_id`);

--
-- Index pour la table `domaine`
--
ALTER TABLE `domaine`
  ADD PRIMARY KEY (`code`);

--
-- Index pour la table `domaine_i18n`
--
ALTER TABLE `domaine_i18n`
  ADD PRIMARY KEY (`domaine_code`,`langue`);

--
-- Index pour la table `matiere`
--
ALTER TABLE `matiere`
  ADD PRIMARY KEY (`id`,`niveau_id`),
  ADD KEY `niveau_id` (`niveau_id`),
  ADD KEY `idx_domaine` (`domaine_code`);

--
-- Index pour la table `matiere_i18n`
--
ALTER TABLE `matiere_i18n`
  ADD PRIMARY KEY (`matiere_id`,`niveau_id`,`langue`);

--
-- Index pour la table `media`
--
ALTER TABLE `media`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_q` (`code_question`);

--
-- Index pour la table `membre`
--
ALTER TABLE `membre`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_code` (`code`),
  ADD UNIQUE KEY `uk_courriel` (`courriel`);

--
-- Index pour la table `membre_acces`
--
ALTER TABLE `membre_acces`
  ADD PRIMARY KEY (`membre_id`,`niveau_id`,`matiere_id`),
  ADD KEY `idx_membre` (`membre_id`);

--
-- Index pour la table `niveau`
--
ALTER TABLE `niveau`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `niveau_i18n`
--
ALTER TABLE `niveau_i18n`
  ADD PRIMARY KEY (`niveau_id`,`langue`);

--
-- Index pour la table `notification`
--
ALTER TABLE `notification`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_dest` (`membre_code`,`lu`),
  ADD KEY `idx_date` (`cree_le`);

--
-- Index pour la table `objectif_chapitre`
--
ALTER TABLE `objectif_chapitre`
  ADD PRIMARY KEY (`objectif_id`,`chapitre_id`),
  ADD KEY `chap` (`chapitre_id`);

--
-- Index pour la table `objectif_niveau`
--
ALTER TABLE `objectif_niveau`
  ADD PRIMARY KEY (`id`),
  ADD KEY `mat` (`matiere_id`,`niveau_id`);

--
-- Index pour la table `question`
--
ALTER TABLE `question`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_chap` (`chapitre_id`),
  ADD KEY `idx_statut` (`statut`),
  ADD KEY `idx_ref` (`ref`),
  ADD KEY `idx_courante` (`courante`);

--
-- Index pour la table `registre`
--
ALTER TABLE `registre`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_question` (`code_question`),
  ADD KEY `idx_membre` (`code_membre`),
  ADD KEY `idx_date` (`cree_le`);

--
-- Index pour la table `vocabulaire`
--
ALTER TABLE `vocabulaire`
  ADD PRIMARY KEY (`cle`,`langue`),
  ADD KEY `idx_portee` (`portee`);

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

--
-- AUTO_INCREMENT pour la table `acceptation`
--
ALTER TABLE `acceptation`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `chapitre`
--
ALTER TABLE `chapitre`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2735;

--
-- AUTO_INCREMENT pour la table `choix`
--
ALTER TABLE `choix`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17681;

--
-- AUTO_INCREMENT pour la table `media`
--
ALTER TABLE `media`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `membre`
--
ALTER TABLE `membre`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `notification`
--
ALTER TABLE `notification`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT pour la table `objectif_niveau`
--
ALTER TABLE `objectif_niveau`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1122;

--
-- AUTO_INCREMENT pour la table `question`
--
ALTER TABLE `question`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3534;

--
-- AUTO_INCREMENT pour la table `registre`
--
ALTER TABLE `registre`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3350;

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

--
-- Contraintes pour la table `chapitre`
--
ALTER TABLE `chapitre`
  ADD CONSTRAINT `chapitre_ibfk_1` FOREIGN KEY (`matiere_id`,`niveau_id`) REFERENCES `matiere` (`id`, `niveau_id`);

--
-- Contraintes pour la table `choix`
--
ALTER TABLE `choix`
  ADD CONSTRAINT `choix_ibfk_1` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`) ON DELETE CASCADE;

--
-- Contraintes pour la table `matiere`
--
ALTER TABLE `matiere`
  ADD CONSTRAINT `matiere_ibfk_1` FOREIGN KEY (`niveau_id`) REFERENCES `niveau` (`id`);

--
-- Contraintes pour la table `objectif_chapitre`
--
ALTER TABLE `objectif_chapitre`
  ADD CONSTRAINT `oc_ibfk_1` FOREIGN KEY (`objectif_id`) REFERENCES `objectif_niveau` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `oc_ibfk_2` FOREIGN KEY (`chapitre_id`) REFERENCES `chapitre` (`id`) ON DELETE CASCADE;

--
-- Contraintes pour la table `objectif_niveau`
--
ALTER TABLE `objectif_niveau`
  ADD CONSTRAINT `objectif_ibfk_1` FOREIGN KEY (`matiere_id`,`niveau_id`) REFERENCES `matiere` (`id`, `niveau_id`) ON DELETE CASCADE;

--
-- Contraintes pour la table `question`
--
ALTER TABLE `question`
  ADD CONSTRAINT `question_ibfk_1` FOREIGN KEY (`chapitre_id`) REFERENCES `chapitre` (`id`) ON DELETE CASCADE;
--
-- Base de données : `test`
--
CREATE DATABASE IF NOT EXISTS `test` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `test`;
--
-- Base de données : `_lh_db`
--
CREATE DATABASE IF NOT EXISTS `_lh_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `_lh_db`;

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

--
-- Structure de la table `lhdb_abonnements`
--

CREATE TABLE `lhdb_abonnements` (
  `_id` int(10) UNSIGNED NOT NULL,
  `abonnement_hexa` varchar(16) NOT NULL,
  `abonnement_montant` int(1) DEFAULT NULL,
  `abonnement_membre_hexa` varchar(16) DEFAULT NULL,
  `abonnement_ajour` tinyint(1) DEFAULT NULL,
  `abonnement_date_debut` datetime DEFAULT NULL,
  `abonnement_date_fin` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_abonnements : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_abonnements`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_actualites`
--

CREATE TABLE `lhdb_actualites` (
  `_id` int(10) UNSIGNED NOT NULL,
  `actualite_hexa` varchar(16) NOT NULL,
  `actualite_expediteur_hexa` varchar(16) NOT NULL,
  `actualite_destinataire_hexa` varchar(16) NOT NULL,
  `actualite_titre` varchar(256) NOT NULL,
  `actualite_message` text NOT NULL,
  `actualite_dateheure` datetime DEFAULT NULL,
  `actualite_lue` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_actualites : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_actualites`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_adhesions`
--

CREATE TABLE `lhdb_adhesions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `adhesion_hexa` varchar(16) NOT NULL,
  `adhesion_club_hexa` varchar(16) NOT NULL,
  `adhesion_membre_hexa` varchar(16) NOT NULL,
  `adhesion_adherent_hexa` varchar(16) DEFAULT NULL,
  `adhesion_statut` tinyint(1) DEFAULT NULL,
  `adhesion_date_adhesion` date DEFAULT NULL,
  `adhesion_date_confirmation_refus` date DEFAULT NULL,
  `adhesion_motif_refus` text DEFAULT NULL,
  `adhesion_date_annulation` date DEFAULT NULL,
  `adhesion_tarif_hexa` varchar(16) DEFAULT NULL,
  `adhesion_memo` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_adhesions : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_adhesions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_affilies`
--

CREATE TABLE `lhdb_affilies` (
  `_id` int(10) UNSIGNED NOT NULL,
  `affilie_hexa` varchar(16) DEFAULT NULL,
  `affilie_membre_hexa` varchar(16) DEFAULT NULL,
  `affilie_genre` tinyint(1) DEFAULT NULL,
  `affilie_nomdefamille` varchar(64) DEFAULT NULL,
  `affilie_prenom` varchar(32) DEFAULT NULL,
  `affilie_datedenaissance` date DEFAULT NULL,
  `affilie_checkautorisation` tinyint(1) DEFAULT NULL,
  `affilie_avatar_src` varchar(64) DEFAULT NULL,
  `affilie_portrait_src` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_affilies : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_affilies`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_authentifications`
--

CREATE TABLE `lhdb_authentifications` (
  `_id` int(10) UNSIGNED NOT NULL,
  `authentification_login_hexa` varchar(16) DEFAULT NULL,
  `authentification_membre_hexa` varchar(16) DEFAULT NULL,
  `authentification_dateheure` datetime DEFAULT NULL,
  `authentification_deconnexion_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_authentifications : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_authentifications`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_avis`
--

CREATE TABLE `lhdb_avis` (
  `_id` int(10) UNSIGNED NOT NULL,
  `avis_membre_hexa` varchar(16) NOT NULL,
  `avis_activite_hexa` varchar(16) NOT NULL,
  `note` tinyint(1) DEFAULT NULL,
  `avis_avis` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_avis : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_avis`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_bugs`
--

CREATE TABLE `lhdb_bugs` (
  `_id` int(10) UNSIGNED NOT NULL,
  `bug_numero` int(11) DEFAULT NULL,
  `bug_type` varchar(32) DEFAULT NULL,
  `bug_message` text DEFAULT NULL,
  `bug_fichier` varchar(64) DEFAULT NULL,
  `bug_ligne` int(11) DEFAULT NULL,
  `bug_moment` timestamp NOT NULL DEFAULT current_timestamp(),
  `bug_fixe` tinyint(1) DEFAULT NULL,
  `bug_fixepar` varchar(16) DEFAULT NULL,
  `bug_fixele` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_bugs : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_bugs`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_campagnes`
--

CREATE TABLE `lhdb_campagnes` (
  `_id` int(10) UNSIGNED NOT NULL,
  `campagne_hexa` varchar(16) DEFAULT NULL,
  `campagne_courriel` varchar(64) DEFAULT NULL,
  `campagne_entite` varchar(64) DEFAULT NULL,
  `campagne_sourceweb` varchar(128) DEFAULT NULL,
  `campagne_envoi` datetime DEFAULT NULL,
  `campagne_premiere_visite` datetime DEFAULT NULL,
  `campagne_derniere_visite` datetime DEFAULT NULL,
  `campagne_nombre_visites` tinyint(4) DEFAULT NULL,
  `campagne_ville` varchar(128) DEFAULT NULL,
  `campagne_pays` varchar(3) DEFAULT NULL,
  `campagne_langue` varchar(3) DEFAULT NULL,
  `campagne_latitude` decimal(10,8) DEFAULT NULL,
  `campagne_longitude` decimal(11,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_campagnes : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_campagnes`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_connexions`
--

CREATE TABLE `lhdb_connexions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `connexion_login_hexa` varchar(16) DEFAULT NULL,
  `connexion_membre_hexa` varchar(16) DEFAULT NULL,
  `connexion_dateheure` datetime DEFAULT NULL,
  `connexion_deconnexion_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_connexions : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_connexions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_conversation`
--

CREATE TABLE `lhdb_conversation` (
  `_id` int(10) UNSIGNED NOT NULL,
  `conversation_hexa` varchar(16) NOT NULL,
  `conversation_titre` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_conversation : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_conversation`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_cotisations`
--

CREATE TABLE `lhdb_cotisations` (
  `_id` int(10) UNSIGNED NOT NULL,
  `cotisation_hexa` varchar(16) NOT NULL,
  `cotisation_membre_hexa` varchar(16) DEFAULT NULL,
  `cotisation_club_hexa` varchar(16) NOT NULL,
  `cotisation_adhesion_hexa` varchar(16) NOT NULL,
  `cotisation_cotisant_hexa` varchar(16) NOT NULL,
  `cotisation_tarif_hexa` varchar(16) DEFAULT NULL,
  `cotisation_depuis` date DEFAULT NULL,
  `cotisation_jusqua` date DEFAULT NULL,
  `cotisation_statut` tinyint(1) DEFAULT NULL,
  `cotisation_date_confirmation_refus` date DEFAULT NULL,
  `cotisation_motif_refus` text DEFAULT NULL,
  `cotisation_memo` text DEFAULT NULL,
  `cotisation_label` varchar(256) DEFAULT NULL,
  `cotisation_renouvellement_automatique` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_cotisations : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_cotisations`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_courses`
--

CREATE TABLE `lhdb_courses` (
  `_id` int(10) UNSIGNED NOT NULL,
  `activite_hexa` varchar(16) NOT NULL,
  `activite_organisateur_hexa` varchar(16) NOT NULL,
  `activite_validation_encadrant` tinyint(1) NOT NULL DEFAULT 0,
  `activite_club_hexa` varchar(16) DEFAULT NULL,
  `activite_encadrant_hexa` varchar(16) DEFAULT NULL,
  `activite_creation_dateheure` datetime DEFAULT NULL,
  `activite_modification_modifieur` varchar(16) DEFAULT NULL,
  `activite_modification_dateheure` datetime DEFAULT NULL,
  `activite_suppression_dateheure` datetime DEFAULT NULL,
  `activite_titre` varchar(256) DEFAULT NULL,
  `activite_langue` char(3) DEFAULT NULL,
  `activite_description` text DEFAULT NULL,
  `activite_reglementee` tinyint(1) NOT NULL DEFAULT 0,
  `activite_reglementation_info` varchar(512) DEFAULT NULL,
  `activite_debut_dateheure` datetime DEFAULT NULL,
  `activite_fin_dateheure` datetime DEFAULT NULL,
  `activite_datesetheures_ajour` tinyint(1) DEFAULT NULL,
  `activite_seanceshebdo_nb` tinyint(1) DEFAULT NULL,
  `activite_illustration_src` varchar(128) DEFAULT NULL,
  `activite_illustrationcrop_src` varchar(128) DEFAULT NULL,
  `activite_lieu` varchar(128) DEFAULT NULL,
  `activite_enligne` tinyint(1) DEFAULT NULL,
  `activite_adresse_brute` varchar(128) DEFAULT NULL,
  `activite_adresse_latitude` decimal(10,8) DEFAULT NULL,
  `activite_adresse_longitude` decimal(11,8) DEFAULT NULL,
  `activite_type` char(1) DEFAULT NULL,
  `activite_domaine` char(1) DEFAULT NULL,
  `activite_famille` varchar(3) DEFAULT NULL,
  `activite_public_enfants` tinyint(1) DEFAULT NULL,
  `activite_public_adolescents` tinyint(1) DEFAULT NULL,
  `activite_public_adultes` tinyint(1) DEFAULT NULL,
  `activite_public_seniors` tinyint(1) DEFAULT NULL,
  `activite_public_particuliers` tinyint(1) DEFAULT NULL,
  `activite_public_toutpublic` tinyint(1) DEFAULT NULL,
  `activite_niveau_debutant` tinyint(1) DEFAULT NULL,
  `activite_niveau_intermediaire` tinyint(1) DEFAULT NULL,
  `activite_niveau_avance` tinyint(1) DEFAULT NULL,
  `activite_niveau_expert` tinyint(1) DEFAULT NULL,
  `activite_niveau_n7` tinyint(1) DEFAULT NULL,
  `activite_niveau_n8` tinyint(1) DEFAULT NULL,
  `activite_niveau_sansobjet` tinyint(1) DEFAULT NULL,
  `activite_nbmaxparticipants` tinyint(1) DEFAULT NULL,
  `activite_nbplacesdispos` tinyint(1) DEFAULT NULL,
  `activite_conditions_participation` text DEFAULT NULL,
  `activite_conditions_participation_src` varchar(128) DEFAULT NULL,
  `activite_questions_personnalisees` text DEFAULT NULL,
  `activite_documents_inscription` tinyint(1) DEFAULT NULL,
  `activite_documents_inscription_liste` text DEFAULT NULL,
  `activite_devise` char(3) NOT NULL DEFAULT 'EUR',
  `activite_nbtarifs` tinyint(1) DEFAULT NULL,
  `activite_paiement_modalites` char(1) DEFAULT NULL,
  `activite_administration_ajour` tinyint(1) DEFAULT NULL,
  `activite_cachee` tinyint(1) DEFAULT NULL,
  `activite_privee` tinyint(1) DEFAULT NULL,
  `activite_privee_clef` varchar(16) DEFAULT NULL,
  `activite_quipeutsinscrire` tinyint(1) DEFAULT NULL,
  `activite_validationparorganisateur` tinyint(1) DEFAULT NULL,
  `activite_inscriptionencoursok` tinyint(1) DEFAULT NULL,
  `activite_surbookingok` tinyint(1) DEFAULT NULL,
  `activite_alertemailinscriptionok` tinyint(1) DEFAULT NULL,
  `activite_alertesmsinscriptionok` tinyint(1) DEFAULT NULL,
  `activite_forum_public_active` tinyint(1) DEFAULT NULL,
  `activite_forum_prive_active` tinyint(1) DEFAULT NULL,
  `activite_statut` char(1) DEFAULT NULL,
  `activite_statut_dateheure` datetime DEFAULT NULL,
  `activite_nombre_inscrits_confirmes` tinyint(1) DEFAULT NULL,
  `activite_nombre_inscrits_non_confirmes` tinyint(1) DEFAULT NULL,
  `activite_nombre_inscrits_demandesannulation` tinyint(1) DEFAULT NULL,
  `activite_lienweb_src` varchar(128) DEFAULT NULL,
  `activite_secure_folder` varchar(16) DEFAULT NULL,
  `activite_folder` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_courses : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_courses`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_credits`
--

CREATE TABLE `lhdb_credits` (
  `credit_id` bigint(20) UNSIGNED NOT NULL,
  `credit_hexa` varchar(20) NOT NULL,
  `credit_paiement_hexa` varchar(20) NOT NULL,
  `credit_beneficiaire_hexa` varchar(20) NOT NULL,
  `credit_beneficiaire_est_structure` tinyint(1) NOT NULL DEFAULT 0,
  `credit_role` varchar(16) NOT NULL,
  `credit_part_bps` int(11) NOT NULL DEFAULT 0,
  `credit_montant_centimes` int(11) NOT NULL DEFAULT 0,
  `credit_devise` char(3) NOT NULL DEFAULT 'EUR',
  `credit_statut` varchar(16) NOT NULL DEFAULT 'en_attente',
  `credit_provider` varchar(16) DEFAULT NULL,
  `credit_provider_transfer_ref` varchar(128) DEFAULT NULL,
  `credit_montant_annule_centimes` int(11) NOT NULL DEFAULT 0,
  `credit_cree_le` datetime DEFAULT NULL,
  `credit_valide_le` datetime DEFAULT NULL,
  `credit_verse_le` datetime DEFAULT NULL,
  `credit_annule_le` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_credits : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_credits`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_events`
--

CREATE TABLE `lhdb_events` (
  `_id` int(10) UNSIGNED NOT NULL,
  `event_hexa` varchar(16) NOT NULL,
  `event_type` varchar(64) NOT NULL,
  `event_scope` varchar(32) DEFAULT NULL,
  `event_objet_hexa` varchar(16) DEFAULT NULL,
  `event_membre_hexa` varchar(16) DEFAULT NULL,
  `event_session_hexa` varchar(32) DEFAULT NULL,
  `event_linker_hexa` varchar(16) DEFAULT NULL,
  `event_source` varchar(128) DEFAULT NULL,
  `event_url` varchar(512) DEFAULT NULL,
  `event_referer` varchar(512) DEFAULT NULL,
  `event_search_query` varchar(256) DEFAULT NULL,
  `event_search_filters` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`event_search_filters`)),
  `event_value_centimes` int(11) DEFAULT NULL,
  `event_metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`event_metadata`)),
  `event_ip_hash` varchar(128) DEFAULT NULL,
  `event_user_agent_hash` varchar(128) DEFAULT NULL,
  `event_dateheure` datetime NOT NULL,
  `event_created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_events : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_events`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_fichiers`
--

CREATE TABLE `lhdb_fichiers` (
  `_id` int(10) UNSIGNED NOT NULL,
  `fichier_hexa` varchar(16) NOT NULL,
  `fichier_proprietaire_hexa` varchar(16) NOT NULL,
  `fichier_uploader_membre_hexa` varchar(16) NOT NULL,
  `fichier_titre` varchar(128) NOT NULL,
  `fichier_description` varchar(256) NOT NULL,
  `fichier_objet` varchar(16) NOT NULL,
  `fichier_scope` varchar(32) NOT NULL,
  `fichier_src` varchar(128) DEFAULT NULL,
  `fichier_filetype` varchar(8) DEFAULT NULL,
  `fichier_mime` varchar(128) DEFAULT NULL,
  `fichier_taille_octets` int(10) UNSIGNED DEFAULT NULL,
  `fichier_actif` tinyint(1) NOT NULL DEFAULT 1,
  `fichier_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_fichiers : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_fichiers`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_followers`
--

CREATE TABLE `lhdb_followers` (
  `_id` int(10) UNSIGNED NOT NULL,
  `follower_code_hexa_id` varchar(16) NOT NULL,
  `followed_code_hexa_id` varchar(16) NOT NULL,
  `date_heure_inscription` datetime DEFAULT NULL,
  `date_heure_desinscription` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_followers : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_followers`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_forums`
--

CREATE TABLE `lhdb_forums` (
  `_id` int(10) UNSIGNED NOT NULL,
  `forum_activite_hexa` varchar(16) NOT NULL,
  `forum_expediteur_hexa` varchar(16) NOT NULL,
  `forum_message` text DEFAULT NULL,
  `forum_prive` tinyint(1) DEFAULT NULL,
  `forum_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_forums : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_forums`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_informations`
--

CREATE TABLE `lhdb_informations` (
  `_id` int(10) UNSIGNED NOT NULL,
  `information_hexa` varchar(16) NOT NULL,
  `information_truc_hexa` varchar(16) NOT NULL,
  `information_destinataire_hexa` varchar(16) NOT NULL,
  `information_message` text NOT NULL,
  `information_dateheure` datetime DEFAULT NULL,
  `information_lue` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_informations : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_informations`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_inscriptions`
--

CREATE TABLE `lhdb_inscriptions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `inscription_hexa` varchar(16) NOT NULL,
  `inscription_activite_hexa` varchar(16) DEFAULT NULL,
  `inscription_membre_hexa` varchar(16) DEFAULT NULL,
  `inscription_participant_hexa` varchar(16) DEFAULT NULL,
  `inscription_inscription_dateheure` datetime DEFAULT NULL,
  `inscription_activitedebut_dateheure` datetime DEFAULT NULL,
  `inscription_activitefin_dateheure` datetime DEFAULT NULL,
  `inscription_statut` tinyint(1) DEFAULT NULL,
  `inscription_statut_dateheure` datetime DEFAULT NULL,
  `inscription_statut_justification` text DEFAULT NULL,
  `inscription_statut_parqui` varchar(16) DEFAULT NULL,
  `inscription_tarif_hexa` varchar(16) DEFAULT NULL,
  `inscription_tarif_montant_centimes` int(11) DEFAULT NULL,
  `inscription_questions_personnalisees` text DEFAULT NULL,
  `inscription_reponses_personnalisees` text DEFAULT NULL,
  `inscription_transaction_statut` tinyint(1) DEFAULT NULL,
  `inscription_transaction_hexa` varchar(16) DEFAULT NULL,
  `inscription_cguacceptees` tinyint(1) DEFAULT NULL,
  `inscription_infoscomplementairesprivees` text DEFAULT NULL,
  `inscription_memo` text DEFAULT NULL,
  `inscription_evaluation_commentaire` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_inscriptions : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_inscriptions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_links`
--

CREATE TABLE `lhdb_links` (
  `_id` int(10) UNSIGNED NOT NULL,
  `link_hexa` varchar(16) NOT NULL,
  `link_nb_clicks` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `link_linker_hexa` varchar(16) NOT NULL,
  `link_linked_hexa` varchar(16) DEFAULT NULL,
  `link_cible_hexa` varchar(16) NOT NULL,
  `link_realisation_hexa` varchar(16) DEFAULT NULL,
  `link_statut` tinyint(1) NOT NULL,
  `link_transaction_hexa` varchar(16) DEFAULT NULL,
  `link_montant_intermediaire_centimes` int(10) UNSIGNED DEFAULT 0,
  `link_devise` char(3) DEFAULT 'EUR',
  `link_dateheure_cible` datetime NOT NULL DEFAULT current_timestamp(),
  `link_dateheure_realisation` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_links : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_links`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_login`
--

CREATE TABLE `lhdb_login` (
  `_id` int(10) UNSIGNED NOT NULL,
  `login_hexa` varchar(16) NOT NULL,
  `login_courriel` varchar(64) NOT NULL,
  `login_courrielconfirme` tinyint(1) NOT NULL,
  `login_motdepasse` varchar(128) NOT NULL,
  `login_motdepasse_temp` varchar(128) DEFAULT NULL,
  `login_inscription_dateheure` datetime DEFAULT NULL,
  `login_validation_dateheure` datetime DEFAULT NULL,
  `login_jetondevalidation` varchar(64) DEFAULT NULL,
  `login_statutcompte` char(1) DEFAULT NULL,
  `login_derniereconnexion` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_login : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_login`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_membres`
--

CREATE TABLE `lhdb_membres` (
  `_id` int(10) UNSIGNED NOT NULL,
  `membre_hexa` varchar(16) NOT NULL,
  `membre_courriel` varchar(64) DEFAULT NULL,
  `membre_genre` tinyint(1) DEFAULT NULL,
  `membre_prenom` varchar(32) DEFAULT NULL,
  `membre_nomdefamille` varchar(64) DEFAULT NULL,
  `membre_titre` varchar(128) DEFAULT NULL,
  `membre_datedenaissance` date DEFAULT NULL,
  `membre_telephone` varchar(16) DEFAULT NULL,
  `membre_adresse_brute` varchar(256) DEFAULT NULL,
  `membre_adresse_latitude` decimal(10,8) DEFAULT NULL,
  `membre_adresse_longitude` decimal(11,8) DEFAULT NULL,
  `membre_profil_ajour` tinyint(1) DEFAULT NULL,
  `membre_langue_plateforme` char(3) DEFAULT NULL,
  `membre_langue_principale` char(3) DEFAULT NULL,
  `membre_langue_parlee_2` char(3) DEFAULT NULL,
  `membre_langue_parlee_3` char(3) DEFAULT NULL,
  `membre_isencadrant` tinyint(1) DEFAULT NULL,
  `membre_isstaff` tinyint(1) DEFAULT NULL,
  `membre_courriel_contact` varchar(64) DEFAULT NULL,
  `membre_telephone_contact` varchar(16) DEFAULT NULL,
  `membre_weblink1` varchar(256) DEFAULT NULL,
  `membre_weblink2` varchar(256) DEFAULT NULL,
  `membre_weblink3` varchar(256) DEFAULT NULL,
  `membre_qqmotssurmoi` text DEFAULT NULL,
  `membre_portrait_src` varchar(128) DEFAULT NULL,
  `membre_portraitcrop_src` varchar(128) DEFAULT NULL,
  `membre_illustration_src` varchar(128) DEFAULT NULL,
  `membre_folder` varchar(16) DEFAULT NULL,
  `membre_devise` char(3) DEFAULT 'EUR'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_membres : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_membres`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_messages`
--

CREATE TABLE `lhdb_messages` (
  `_id` int(10) UNSIGNED NOT NULL,
  `message_expediteur_hexa` varchar(16) NOT NULL,
  `message_destinataire_hexa` varchar(16) NOT NULL,
  `message_contenu` text DEFAULT NULL,
  `message_envoi_dateheure` datetime DEFAULT NULL,
  `message_lu` tinyint(1) DEFAULT NULL,
  `message_effaceparexpediteur` tinyint(1) DEFAULT NULL,
  `message_effacepardestinataire` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_messages : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_messages`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_paiements`
--

CREATE TABLE `lhdb_paiements` (
  `paiement_id` bigint(20) UNSIGNED NOT NULL,
  `paiement_hexa` varchar(20) NOT NULL,
  `paiement_payeur_hexa` varchar(20) NOT NULL,
  `paiement_montant_total_centimes` int(11) NOT NULL DEFAULT 0,
  `paiement_devise` char(3) NOT NULL DEFAULT 'EUR',
  `paiement_contexte_type` varchar(32) NOT NULL DEFAULT 'autre',
  `paiement_contexte_hexa` varchar(20) DEFAULT NULL,
  `paiement_activite_hexa` varchar(20) DEFAULT NULL,
  `paiement_statut` varchar(16) NOT NULL DEFAULT 'en_attente',
  `paiement_gele` tinyint(1) NOT NULL DEFAULT 0,
  `paiement_gele_motif` varchar(255) DEFAULT NULL,
  `paiement_provider` varchar(16) DEFAULT NULL,
  `paiement_provider_ref` varchar(128) DEFAULT NULL,
  `paiement_reference_le` datetime DEFAULT NULL,
  `paiement_contestation_avant_le` datetime DEFAULT NULL,
  `paiement_liberation_prevue_le` datetime DEFAULT NULL,
  `paiement_montant_rembourse_centimes` int(11) DEFAULT NULL,
  `paiement_motif_annulation` varchar(255) DEFAULT NULL,
  `paiement_cree_le` datetime DEFAULT NULL,
  `paiement_encaisse_le` datetime DEFAULT NULL,
  `paiement_annule_le` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_paiements : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_paiements`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_parrainages`
--

CREATE TABLE `lhdb_parrainages` (
  `_id` int(10) UNSIGNED NOT NULL,
  `parrainage_parrain_hexa` varchar(16) NOT NULL,
  `parrainage_filleul_hexa` varchar(16) NOT NULL,
  `parrainage_statut` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_parrainages : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_parrainages`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_recherches`
--

CREATE TABLE `lhdb_recherches` (
  `_id` int(10) UNSIGNED NOT NULL,
  `recherche_hexa` varchar(16) NOT NULL,
  `recherche_nom` varchar(128) DEFAULT NULL,
  `recherche_description` text DEFAULT NULL,
  `recherche_membre_hexa` varchar(16) DEFAULT NULL,
  `recherche_dateheure` datetime DEFAULT NULL,
  `recherche_enregistree` tinyint(1) DEFAULT NULL,
  `recherche_effacee` tinyint(1) DEFAULT NULL,
  `recherche_sqlquery` varchar(512) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_recherches : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_recherches`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_schools`
--

CREATE TABLE `lhdb_schools` (
  `_id` int(10) UNSIGNED NOT NULL,
  `club_hexa` varchar(16) NOT NULL,
  `club_createur` varchar(16) NOT NULL,
  `club_creation` datetime DEFAULT NULL,
  `club_modification` datetime DEFAULT NULL,
  `club_nomcomplet` varchar(256) DEFAULT NULL,
  `club_acronyme` varchar(32) DEFAULT NULL,
  `club_courriel` varchar(64) DEFAULT NULL,
  `club_telephone` varchar(16) DEFAULT NULL,
  `club_siteweb` varchar(128) DEFAULT NULL,
  `club_enligne` tinyint(1) DEFAULT NULL,
  `club_adresse_brute` varchar(128) DEFAULT NULL,
  `club_adresse_latitude` decimal(10,8) DEFAULT NULL,
  `club_adresse_longitude` decimal(11,8) DEFAULT NULL,
  `club_description` text DEFAULT NULL,
  `club_logo_src` varchar(128) DEFAULT NULL,
  `club_logosquare_src` varchar(128) DEFAULT NULL,
  `club_illustration_src` varchar(128) DEFAULT NULL,
  `club_type` char(1) DEFAULT NULL,
  `club_prive` tinyint(1) DEFAULT NULL,
  `club_prive_code` varchar(16) DEFAULT NULL,
  `club_cache` tinyint(1) DEFAULT NULL,
  `club_inscr_ouverte` tinyint(1) DEFAULT NULL,
  `club_motscles` varchar(256) DEFAULT NULL,
  `club_siteweb2` varchar(128) DEFAULT NULL,
  `club_siteweb3` varchar(128) DEFAULT NULL,
  `club_adhesions_automatiques` tinyint(1) DEFAULT NULL,
  `club_conditions_adhesion` text DEFAULT NULL,
  `club_conditions_adhesion_src` varchar(128) DEFAULT NULL,
  `club_tarif_cotisation_estdefini` tinyint(1) DEFAULT NULL,
  `club_tarif1_cotisation_montant` int(1) DEFAULT NULL,
  `club_tarif1_cotisation_conditions` varchar(512) DEFAULT NULL,
  `club_tarif2_cotisation_montant` int(1) DEFAULT NULL,
  `club_tarif2_cotisation_conditions` varchar(512) DEFAULT NULL,
  `club_tarif2_cotisation_applicable` tinyint(1) DEFAULT NULL,
  `club_tarif3_cotisation_montant` int(1) DEFAULT NULL,
  `club_tarif3_cotisation_conditions` varchar(512) DEFAULT NULL,
  `club_tarif3_cotisation_applicable` tinyint(1) DEFAULT NULL,
  `club_cotisations_automatiques` tinyint(1) DEFAULT NULL,
  `club_structure_adossement` tinyint(1) DEFAULT NULL,
  `club_structure_adossement_hexa` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `club_folder` varchar(16) DEFAULT NULL,
  `club_devise` char(3) DEFAULT 'EUR'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_schools : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_schools`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_seances`
--

CREATE TABLE `lhdb_seances` (
  `_id` int(10) UNSIGNED NOT NULL,
  `seance_hexa` varchar(16) NOT NULL,
  `seance_activite_hexa` varchar(16) NOT NULL,
  `seance_type` varchar(20) NOT NULL DEFAULT 'hebdo',
  `seance_parent_hexa` varchar(16) DEFAULT NULL,
  `seance_numero` smallint(5) UNSIGNED DEFAULT NULL,
  `seance_jourdesemaine` tinyint(1) DEFAULT NULL,
  `seance_debut` time DEFAULT NULL,
  `seance_fin` time DEFAULT NULL,
  `seance_debut_dateheure` datetime DEFAULT NULL,
  `seance_fin_dateheure` datetime DEFAULT NULL,
  `seance_statut` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_seances : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_seances`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_staffs`
--

CREATE TABLE `lhdb_staffs` (
  `_id` int(10) UNSIGNED NOT NULL,
  `staff_hexa` varchar(16) NOT NULL,
  `staff_club_hexa` varchar(16) NOT NULL,
  `staff_membre_hexa` varchar(16) NOT NULL,
  `staff_arrivee` date DEFAULT NULL,
  `staff_depart` date DEFAULT NULL,
  `staff_encadrant` tinyint(1) DEFAULT NULL,
  `staff_organisateur` tinyint(1) DEFAULT NULL,
  `staff_responsable_financier` tinyint(1) DEFAULT NULL,
  `staff_responsable_communication` tinyint(1) DEFAULT NULL,
  `staff_responsable_staff` tinyint(1) DEFAULT NULL,
  `staff_responsable_adhesions` tinyint(1) DEFAULT NULL,
  `staff_role` char(1) DEFAULT NULL,
  `staff_role_specifique` varchar(32) DEFAULT NULL,
  `staff_commentaire` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_staffs : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_staffs`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_structures`
--

CREATE TABLE `lhdb_structures` (
  `_id` int(10) UNSIGNED NOT NULL,
  `structure_hexa` varchar(16) NOT NULL,
  `structure_createur` varchar(16) NOT NULL,
  `structure_creation` datetime DEFAULT NULL,
  `structure_type_juridique` char(1) DEFAULT NULL,
  `structure_nomcomplet` varchar(256) DEFAULT NULL,
  `structure_acronyme` varchar(32) DEFAULT NULL,
  `structure_adresse_brute` varchar(256) DEFAULT NULL,
  `structure_adresse_brute_latitude` decimal(10,8) DEFAULT NULL,
  `structure_adresse_brute_longitude` decimal(11,8) DEFAULT NULL,
  `structure_siret` varchar(16) DEFAULT NULL,
  `structure_datagouv_src` varchar(128) DEFAULT NULL,
  `structure_statuts_src` varchar(128) DEFAULT NULL,
  `structure_courriel` varchar(64) DEFAULT NULL,
  `structure_telephone` varchar(16) DEFAULT NULL,
  `structure_siteweb` varchar(128) DEFAULT NULL,
  `structure_responsable_nomcomplet` varchar(128) DEFAULT NULL,
  `structure_autorite` tinyint(1) DEFAULT NULL,
  `structure_estverifiee` tinyint(1) DEFAULT NULL,
  `structure_folder` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_structures : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_structures`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_tarifs`
--

CREATE TABLE `lhdb_tarifs` (
  `_id` int(10) UNSIGNED NOT NULL,
  `tarif_hexa` varchar(16) NOT NULL,
  `tarif_objet_hexa` varchar(16) NOT NULL,
  `tarif_objet` tinyint(1) NOT NULL,
  `tarif_numero` tinyint(1) NOT NULL,
  `tarif_montant_centimes` int(10) UNSIGNED NOT NULL,
  `tarif_devise` char(3) NOT NULL,
  `tarif_conditions` varchar(512) DEFAULT NULL,
  `tarif_activation_dateheure` datetime DEFAULT NULL,
  `tarif_desactivation_dateheure` datetime DEFAULT NULL,
  `tarif_version` tinyint(1) DEFAULT NULL,
  `tarif_actif` tinyint(1) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_tarifs : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_tarifs`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_transactions`
--

CREATE TABLE `lhdb_transactions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `transaction_hexa` varchar(16) NOT NULL,
  `transaction_type` varchar(32) DEFAULT 'activity_payment',
  `transaction_statut` varchar(32) DEFAULT 'created',
  `transaction_provider` varchar(32) DEFAULT NULL,
  `transaction_provider_payment_id` varchar(128) DEFAULT NULL,
  `transaction_provider_transfer_id` varchar(128) DEFAULT NULL,
  `transaction_provider_refund_id` varchar(128) DEFAULT NULL,
  `transaction_client_hexa` varchar(16) DEFAULT NULL,
  `transaction_prestataire_hexa` varchar(16) DEFAULT NULL,
  `transaction_prestataire_isstructure` tinyint(1) DEFAULT 0,
  `transaction_activite_hexa` varchar(16) DEFAULT NULL,
  `transaction_montant_centimes` int(10) UNSIGNED NOT NULL,
  `transaction_commission_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_frais_provider_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_net_prestataire_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_devise` char(3) DEFAULT 'EUR',
  `transaction_reference` varchar(64) DEFAULT NULL,
  `transaction_dateheure_creation` datetime DEFAULT NULL,
  `transaction_dateheure_paiement` datetime DEFAULT NULL,
  `transaction_dateheure_activite` datetime DEFAULT NULL,
  `transaction_dateheure_reversement_prevu` datetime DEFAULT NULL,
  `transaction_dateheure_reversement_effectif` datetime DEFAULT NULL,
  `transaction_metadata_json` text DEFAULT NULL,
  `transaction_montant_rembourse_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_refund_type` varchar(32) DEFAULT NULL,
  `transaction_refund_reason` varchar(255) DEFAULT NULL,
  `transaction_dateheure_remboursement` datetime DEFAULT NULL,
  `transaction_refund_payer` varchar(32) DEFAULT NULL,
  `transaction_refund_charge_organizer_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_refund_charge_platform_centimes` int(10) UNSIGNED DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_transactions : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_transactions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_visites`
--

CREATE TABLE `lhdb_visites` (
  `_id` int(10) UNSIGNED NOT NULL,
  `visite_ip_address` varchar(64) DEFAULT NULL,
  `visite_pays` varchar(128) DEFAULT NULL,
  `visite_ville` varchar(128) DEFAULT NULL,
  `visite_latitude` decimal(10,8) DEFAULT NULL,
  `visite_longitude` decimal(11,8) DEFAULT NULL,
  `visite_user_agent` varchar(256) DEFAULT NULL,
  `visite_dateheure` datetime DEFAULT NULL,
  `visite_page_courante` varchar(128) DEFAULT NULL,
  `visite_page_precedente` varchar(128) DEFAULT NULL,
  `visite_langue` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _lh_db.lhdb_visites : #1064 - Erreur de syntaxe près de &#039;FROM `_lh_db`.`lhdb_visites`&#039; à la ligne 1

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

--
-- Index pour la table `lhdb_abonnements`
--
ALTER TABLE `lhdb_abonnements`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_actualites`
--
ALTER TABLE `lhdb_actualites`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_adhesions`
--
ALTER TABLE `lhdb_adhesions`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_affilies`
--
ALTER TABLE `lhdb_affilies`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_authentifications`
--
ALTER TABLE `lhdb_authentifications`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_avis`
--
ALTER TABLE `lhdb_avis`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_bugs`
--
ALTER TABLE `lhdb_bugs`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_campagnes`
--
ALTER TABLE `lhdb_campagnes`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_connexions`
--
ALTER TABLE `lhdb_connexions`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_conversation`
--
ALTER TABLE `lhdb_conversation`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_cotisations`
--
ALTER TABLE `lhdb_cotisations`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_courses`
--
ALTER TABLE `lhdb_courses`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_credits`
--
ALTER TABLE `lhdb_credits`
  ADD PRIMARY KEY (`credit_id`),
  ADD UNIQUE KEY `uq_credit_hexa` (`credit_hexa`),
  ADD KEY `idx_credit_paiement` (`credit_paiement_hexa`),
  ADD KEY `idx_credit_benef` (`credit_beneficiaire_hexa`,`credit_statut`),
  ADD KEY `idx_credit_role` (`credit_role`),
  ADD KEY `idx_credit_statut` (`credit_statut`);

--
-- Index pour la table `lhdb_events`
--
ALTER TABLE `lhdb_events`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `event_hexa` (`event_hexa`),
  ADD KEY `idx_events_type_date` (`event_type`,`event_dateheure`),
  ADD KEY `idx_events_scope_objet_date` (`event_scope`,`event_objet_hexa`,`event_dateheure`),
  ADD KEY `idx_events_membre_date` (`event_membre_hexa`,`event_dateheure`),
  ADD KEY `idx_events_linker_date` (`event_linker_hexa`,`event_dateheure`),
  ADD KEY `idx_events_session_date` (`event_session_hexa`,`event_dateheure`);

--
-- Index pour la table `lhdb_fichiers`
--
ALTER TABLE `lhdb_fichiers`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `fichier_hexa` (`fichier_hexa`);

--
-- Index pour la table `lhdb_followers`
--
ALTER TABLE `lhdb_followers`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_forums`
--
ALTER TABLE `lhdb_forums`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_informations`
--
ALTER TABLE `lhdb_informations`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_inscriptions`
--
ALTER TABLE `lhdb_inscriptions`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_links`
--
ALTER TABLE `lhdb_links`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_login`
--
ALTER TABLE `lhdb_login`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_membres`
--
ALTER TABLE `lhdb_membres`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_messages`
--
ALTER TABLE `lhdb_messages`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_paiements`
--
ALTER TABLE `lhdb_paiements`
  ADD PRIMARY KEY (`paiement_id`),
  ADD UNIQUE KEY `uq_paiement_hexa` (`paiement_hexa`),
  ADD KEY `idx_paiement_payeur` (`paiement_payeur_hexa`),
  ADD KEY `idx_paiement_contexte` (`paiement_contexte_type`,`paiement_contexte_hexa`),
  ADD KEY `idx_paiement_activite` (`paiement_activite_hexa`),
  ADD KEY `idx_paiement_statut` (`paiement_statut`),
  ADD KEY `idx_paiement_liberation` (`paiement_statut`,`paiement_gele`,`paiement_liberation_prevue_le`);

--
-- Index pour la table `lhdb_parrainages`
--
ALTER TABLE `lhdb_parrainages`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_recherches`
--
ALTER TABLE `lhdb_recherches`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_schools`
--
ALTER TABLE `lhdb_schools`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_seances`
--
ALTER TABLE `lhdb_seances`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `unique_seance_hexa` (`seance_hexa`),
  ADD KEY `index_seance_activite` (`seance_activite_hexa`),
  ADD KEY `index_seance_type` (`seance_type`),
  ADD KEY `index_seance_parent` (`seance_parent_hexa`),
  ADD KEY `index_seance_debut_dateheure` (`seance_debut_dateheure`);

--
-- Index pour la table `lhdb_staffs`
--
ALTER TABLE `lhdb_staffs`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_structures`
--
ALTER TABLE `lhdb_structures`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_tarifs`
--
ALTER TABLE `lhdb_tarifs`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_transactions`
--
ALTER TABLE `lhdb_transactions`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `transaction_hexa` (`transaction_hexa`);

--
-- Index pour la table `lhdb_visites`
--
ALTER TABLE `lhdb_visites`
  ADD PRIMARY KEY (`_id`);

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

--
-- AUTO_INCREMENT pour la table `lhdb_abonnements`
--
ALTER TABLE `lhdb_abonnements`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_actualites`
--
ALTER TABLE `lhdb_actualites`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_adhesions`
--
ALTER TABLE `lhdb_adhesions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT pour la table `lhdb_affilies`
--
ALTER TABLE `lhdb_affilies`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `lhdb_authentifications`
--
ALTER TABLE `lhdb_authentifications`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=319;

--
-- AUTO_INCREMENT pour la table `lhdb_avis`
--
ALTER TABLE `lhdb_avis`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_bugs`
--
ALTER TABLE `lhdb_bugs`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=164;

--
-- AUTO_INCREMENT pour la table `lhdb_campagnes`
--
ALTER TABLE `lhdb_campagnes`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;

--
-- AUTO_INCREMENT pour la table `lhdb_connexions`
--
ALTER TABLE `lhdb_connexions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=333;

--
-- AUTO_INCREMENT pour la table `lhdb_conversation`
--
ALTER TABLE `lhdb_conversation`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_cotisations`
--
ALTER TABLE `lhdb_cotisations`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT pour la table `lhdb_courses`
--
ALTER TABLE `lhdb_courses`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60;

--
-- AUTO_INCREMENT pour la table `lhdb_credits`
--
ALTER TABLE `lhdb_credits`
  MODIFY `credit_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT pour la table `lhdb_events`
--
ALTER TABLE `lhdb_events`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_fichiers`
--
ALTER TABLE `lhdb_fichiers`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `lhdb_followers`
--
ALTER TABLE `lhdb_followers`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_forums`
--
ALTER TABLE `lhdb_forums`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT pour la table `lhdb_informations`
--
ALTER TABLE `lhdb_informations`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1003;

--
-- AUTO_INCREMENT pour la table `lhdb_inscriptions`
--
ALTER TABLE `lhdb_inscriptions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT pour la table `lhdb_links`
--
ALTER TABLE `lhdb_links`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `lhdb_login`
--
ALTER TABLE `lhdb_login`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT pour la table `lhdb_membres`
--
ALTER TABLE `lhdb_membres`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT pour la table `lhdb_messages`
--
ALTER TABLE `lhdb_messages`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_paiements`
--
ALTER TABLE `lhdb_paiements`
  MODIFY `paiement_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT pour la table `lhdb_parrainages`
--
ALTER TABLE `lhdb_parrainages`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_recherches`
--
ALTER TABLE `lhdb_recherches`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_schools`
--
ALTER TABLE `lhdb_schools`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `lhdb_seances`
--
ALTER TABLE `lhdb_seances`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=201;

--
-- AUTO_INCREMENT pour la table `lhdb_staffs`
--
ALTER TABLE `lhdb_staffs`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT pour la table `lhdb_structures`
--
ALTER TABLE `lhdb_structures`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `lhdb_tarifs`
--
ALTER TABLE `lhdb_tarifs`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=316;

--
-- AUTO_INCREMENT pour la table `lhdb_transactions`
--
ALTER TABLE `lhdb_transactions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `lhdb_visites`
--
ALTER TABLE `lhdb_visites`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6048;
--
-- Base de données : `_puma_db`
--
CREATE DATABASE IF NOT EXISTS `_puma_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `_puma_db`;

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

--
-- Structure de la table `lhdb_abonnements`
--

CREATE TABLE `lhdb_abonnements` (
  `_id` int(10) UNSIGNED NOT NULL,
  `abonnement_hexa` varchar(16) NOT NULL,
  `abonnement_montant` int(1) DEFAULT NULL,
  `abonnement_membre_hexa` varchar(16) DEFAULT NULL,
  `abonnement_ajour` tinyint(1) DEFAULT NULL,
  `abonnement_date_debut` datetime DEFAULT NULL,
  `abonnement_date_fin` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_abonnements : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_abonnements`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_actualites`
--

CREATE TABLE `lhdb_actualites` (
  `_id` int(10) UNSIGNED NOT NULL,
  `actualite_hexa` varchar(16) NOT NULL,
  `actualite_expediteur_hexa` varchar(16) NOT NULL,
  `actualite_destinataire_hexa` varchar(16) NOT NULL,
  `actualite_titre` varchar(256) NOT NULL,
  `actualite_message` text NOT NULL,
  `actualite_dateheure` datetime DEFAULT NULL,
  `actualite_lue` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_actualites : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_actualites`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_adhesions`
--

CREATE TABLE `lhdb_adhesions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `adhesion_hexa` varchar(16) NOT NULL,
  `adhesion_club_hexa` varchar(16) NOT NULL,
  `adhesion_membre_hexa` varchar(16) NOT NULL,
  `adhesion_adherent_hexa` varchar(16) DEFAULT NULL,
  `adhesion_statut` tinyint(1) DEFAULT NULL,
  `adhesion_date_adhesion` date DEFAULT NULL,
  `adhesion_date_confirmation_refus` date DEFAULT NULL,
  `adhesion_motif_refus` text DEFAULT NULL,
  `adhesion_date_annulation` date DEFAULT NULL,
  `adhesion_tarif_hexa` varchar(16) DEFAULT NULL,
  `adhesion_memo` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_adhesions : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_adhesions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_affilies`
--

CREATE TABLE `lhdb_affilies` (
  `_id` int(10) UNSIGNED NOT NULL,
  `affilie_hexa` varchar(16) DEFAULT NULL,
  `affilie_membre_hexa` varchar(16) DEFAULT NULL,
  `affilie_genre` tinyint(1) DEFAULT NULL,
  `affilie_nomdefamille` varchar(64) DEFAULT NULL,
  `affilie_prenom` varchar(32) DEFAULT NULL,
  `affilie_datedenaissance` date DEFAULT NULL,
  `affilie_checkautorisation` tinyint(1) DEFAULT NULL,
  `affilie_avatar_src` varchar(64) DEFAULT NULL,
  `affilie_portrait_src` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_affilies : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_affilies`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_authentifications`
--

CREATE TABLE `lhdb_authentifications` (
  `_id` int(10) UNSIGNED NOT NULL,
  `authentification_login_hexa` varchar(16) DEFAULT NULL,
  `authentification_membre_hexa` varchar(16) DEFAULT NULL,
  `authentification_dateheure` datetime DEFAULT NULL,
  `authentification_deconnexion_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_authentifications : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_authentifications`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_avis`
--

CREATE TABLE `lhdb_avis` (
  `_id` int(10) UNSIGNED NOT NULL,
  `avis_membre_hexa` varchar(16) NOT NULL,
  `avis_activite_hexa` varchar(16) NOT NULL,
  `note` tinyint(1) DEFAULT NULL,
  `avis_avis` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_avis : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_avis`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_bugs`
--

CREATE TABLE `lhdb_bugs` (
  `_id` int(10) UNSIGNED NOT NULL,
  `bug_numero` int(11) DEFAULT NULL,
  `bug_type` varchar(32) DEFAULT NULL,
  `bug_message` text DEFAULT NULL,
  `bug_fichier` varchar(64) DEFAULT NULL,
  `bug_ligne` int(11) DEFAULT NULL,
  `bug_moment` timestamp NOT NULL DEFAULT current_timestamp(),
  `bug_fixe` tinyint(1) DEFAULT NULL,
  `bug_fixepar` varchar(16) DEFAULT NULL,
  `bug_fixele` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_bugs : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_bugs`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_campagnes`
--

CREATE TABLE `lhdb_campagnes` (
  `_id` int(10) UNSIGNED NOT NULL,
  `campagne_hexa` varchar(16) DEFAULT NULL,
  `campagne_courriel` varchar(64) DEFAULT NULL,
  `campagne_entite` varchar(64) DEFAULT NULL,
  `campagne_sourceweb` varchar(128) DEFAULT NULL,
  `campagne_envoi` datetime DEFAULT NULL,
  `campagne_premiere_visite` datetime DEFAULT NULL,
  `campagne_derniere_visite` datetime DEFAULT NULL,
  `campagne_nombre_visites` tinyint(4) DEFAULT NULL,
  `campagne_ville` varchar(128) DEFAULT NULL,
  `campagne_pays` varchar(3) DEFAULT NULL,
  `campagne_langue` varchar(3) DEFAULT NULL,
  `campagne_latitude` decimal(10,8) DEFAULT NULL,
  `campagne_longitude` decimal(11,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_campagnes : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_campagnes`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_connexions`
--

CREATE TABLE `lhdb_connexions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `connexion_login_hexa` varchar(16) DEFAULT NULL,
  `connexion_membre_hexa` varchar(16) DEFAULT NULL,
  `connexion_dateheure` datetime DEFAULT NULL,
  `connexion_deconnexion_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_connexions : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_connexions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_conversation`
--

CREATE TABLE `lhdb_conversation` (
  `_id` int(10) UNSIGNED NOT NULL,
  `conversation_hexa` varchar(16) NOT NULL,
  `conversation_titre` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_conversation : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_conversation`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_cotisations`
--

CREATE TABLE `lhdb_cotisations` (
  `_id` int(10) UNSIGNED NOT NULL,
  `cotisation_hexa` varchar(16) NOT NULL,
  `cotisation_membre_hexa` varchar(16) DEFAULT NULL,
  `cotisation_club_hexa` varchar(16) NOT NULL,
  `cotisation_adhesion_hexa` varchar(16) NOT NULL,
  `cotisation_cotisant_hexa` varchar(16) NOT NULL,
  `cotisation_tarif_hexa` varchar(16) DEFAULT NULL,
  `cotisation_depuis` date DEFAULT NULL,
  `cotisation_jusqua` date DEFAULT NULL,
  `cotisation_statut` tinyint(1) DEFAULT NULL,
  `cotisation_date_confirmation_refus` date DEFAULT NULL,
  `cotisation_motif_refus` text DEFAULT NULL,
  `cotisation_memo` text DEFAULT NULL,
  `cotisation_label` varchar(256) DEFAULT NULL,
  `cotisation_renouvellement_automatique` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_cotisations : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_cotisations`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_courses`
--

CREATE TABLE `lhdb_courses` (
  `_id` int(10) UNSIGNED NOT NULL,
  `activite_hexa` varchar(16) NOT NULL,
  `activite_organisateur_hexa` varchar(16) NOT NULL,
  `activite_validation_encadrant` tinyint(1) NOT NULL DEFAULT 0,
  `activite_club_hexa` varchar(16) DEFAULT NULL,
  `activite_encadrant_hexa` varchar(16) DEFAULT NULL,
  `activite_creation_dateheure` datetime DEFAULT NULL,
  `activite_modification_modifieur` varchar(16) DEFAULT NULL,
  `activite_modification_dateheure` datetime DEFAULT NULL,
  `activite_suppression_dateheure` datetime DEFAULT NULL,
  `activite_titre` varchar(256) DEFAULT NULL,
  `activite_langue` char(3) DEFAULT NULL,
  `activite_description` text DEFAULT NULL,
  `activite_reglementee` tinyint(1) NOT NULL DEFAULT 0,
  `activite_reglementation_info` varchar(512) DEFAULT NULL,
  `activite_debut_dateheure` datetime DEFAULT NULL,
  `activite_fin_dateheure` datetime DEFAULT NULL,
  `activite_datesetheures_ajour` tinyint(1) DEFAULT NULL,
  `activite_seanceshebdo_nb` tinyint(1) DEFAULT NULL,
  `activite_illustration_src` varchar(128) DEFAULT NULL,
  `activite_illustrationcrop_src` varchar(128) DEFAULT NULL,
  `activite_lieu` varchar(128) DEFAULT NULL,
  `activite_enligne` tinyint(1) DEFAULT NULL,
  `activite_adresse_brute` varchar(128) DEFAULT NULL,
  `activite_adresse_latitude` decimal(10,8) DEFAULT NULL,
  `activite_adresse_longitude` decimal(11,8) DEFAULT NULL,
  `activite_type` char(1) DEFAULT NULL,
  `activite_domaine` char(1) DEFAULT NULL,
  `activite_famille` varchar(3) DEFAULT NULL,
  `activite_public_enfants` tinyint(1) DEFAULT NULL,
  `activite_public_adolescents` tinyint(1) DEFAULT NULL,
  `activite_public_adultes` tinyint(1) DEFAULT NULL,
  `activite_public_seniors` tinyint(1) DEFAULT NULL,
  `activite_public_particuliers` tinyint(1) DEFAULT NULL,
  `activite_public_toutpublic` tinyint(1) DEFAULT NULL,
  `activite_niveau_debutant` tinyint(1) DEFAULT NULL,
  `activite_niveau_intermediaire` tinyint(1) DEFAULT NULL,
  `activite_niveau_avance` tinyint(1) DEFAULT NULL,
  `activite_niveau_expert` tinyint(1) DEFAULT NULL,
  `activite_niveau_n7` tinyint(1) DEFAULT NULL,
  `activite_niveau_n8` tinyint(1) DEFAULT NULL,
  `activite_niveau_sansobjet` tinyint(1) DEFAULT NULL,
  `activite_nbmaxparticipants` tinyint(1) DEFAULT NULL,
  `activite_nbplacesdispos` tinyint(1) DEFAULT NULL,
  `activite_conditions_participation` text DEFAULT NULL,
  `activite_conditions_participation_src` varchar(128) DEFAULT NULL,
  `activite_questions_personnalisees` text DEFAULT NULL,
  `activite_documents_inscription` tinyint(1) DEFAULT NULL,
  `activite_documents_inscription_liste` text DEFAULT NULL,
  `activite_devise` char(3) NOT NULL DEFAULT 'EUR',
  `activite_nbtarifs` tinyint(1) DEFAULT NULL,
  `activite_paiement_modalites` char(1) DEFAULT NULL,
  `activite_administration_ajour` tinyint(1) DEFAULT NULL,
  `activite_cachee` tinyint(1) DEFAULT NULL,
  `activite_privee` tinyint(1) DEFAULT NULL,
  `activite_privee_clef` varchar(16) DEFAULT NULL,
  `activite_quipeutsinscrire` tinyint(1) DEFAULT NULL,
  `activite_validationparorganisateur` tinyint(1) DEFAULT NULL,
  `activite_inscriptionencoursok` tinyint(1) DEFAULT NULL,
  `activite_surbookingok` tinyint(1) DEFAULT NULL,
  `activite_alertemailinscriptionok` tinyint(1) DEFAULT NULL,
  `activite_alertesmsinscriptionok` tinyint(1) DEFAULT NULL,
  `activite_forum_public_active` tinyint(1) DEFAULT NULL,
  `activite_forum_prive_active` tinyint(1) DEFAULT NULL,
  `activite_statut` char(1) DEFAULT NULL,
  `activite_statut_dateheure` datetime DEFAULT NULL,
  `activite_nombre_inscrits_confirmes` tinyint(1) DEFAULT NULL,
  `activite_nombre_inscrits_non_confirmes` tinyint(1) DEFAULT NULL,
  `activite_nombre_inscrits_demandesannulation` tinyint(1) DEFAULT NULL,
  `activite_lienweb_src` varchar(128) DEFAULT NULL,
  `activite_secure_folder` varchar(16) DEFAULT NULL,
  `activite_folder` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_courses : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_courses`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_credits`
--

CREATE TABLE `lhdb_credits` (
  `credit_id` bigint(20) UNSIGNED NOT NULL,
  `credit_hexa` varchar(20) NOT NULL,
  `credit_paiement_hexa` varchar(20) NOT NULL,
  `credit_beneficiaire_hexa` varchar(20) NOT NULL,
  `credit_beneficiaire_est_structure` tinyint(1) NOT NULL DEFAULT 0,
  `credit_role` varchar(16) NOT NULL,
  `credit_part_bps` int(11) NOT NULL DEFAULT 0,
  `credit_montant_centimes` int(11) NOT NULL DEFAULT 0,
  `credit_devise` char(3) NOT NULL DEFAULT 'EUR',
  `credit_statut` varchar(16) NOT NULL DEFAULT 'en_attente',
  `credit_provider` varchar(16) DEFAULT NULL,
  `credit_provider_transfer_ref` varchar(128) DEFAULT NULL,
  `credit_montant_annule_centimes` int(11) NOT NULL DEFAULT 0,
  `credit_cree_le` datetime DEFAULT NULL,
  `credit_valide_le` datetime DEFAULT NULL,
  `credit_verse_le` datetime DEFAULT NULL,
  `credit_annule_le` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_credits : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_credits`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_events`
--

CREATE TABLE `lhdb_events` (
  `_id` int(10) UNSIGNED NOT NULL,
  `event_hexa` varchar(16) NOT NULL,
  `event_type` varchar(64) NOT NULL,
  `event_scope` varchar(32) DEFAULT NULL,
  `event_objet_hexa` varchar(16) DEFAULT NULL,
  `event_membre_hexa` varchar(16) DEFAULT NULL,
  `event_session_hexa` varchar(32) DEFAULT NULL,
  `event_linker_hexa` varchar(16) DEFAULT NULL,
  `event_source` varchar(128) DEFAULT NULL,
  `event_url` varchar(512) DEFAULT NULL,
  `event_referer` varchar(512) DEFAULT NULL,
  `event_search_query` varchar(256) DEFAULT NULL,
  `event_search_filters` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`event_search_filters`)),
  `event_value_centimes` int(11) DEFAULT NULL,
  `event_metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`event_metadata`)),
  `event_ip_hash` varchar(128) DEFAULT NULL,
  `event_user_agent_hash` varchar(128) DEFAULT NULL,
  `event_dateheure` datetime NOT NULL,
  `event_created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_events : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_events`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_fichiers`
--

CREATE TABLE `lhdb_fichiers` (
  `_id` int(10) UNSIGNED NOT NULL,
  `fichier_hexa` varchar(16) NOT NULL,
  `fichier_proprietaire_hexa` varchar(16) NOT NULL,
  `fichier_uploader_membre_hexa` varchar(16) NOT NULL,
  `fichier_titre` varchar(128) NOT NULL,
  `fichier_description` varchar(256) NOT NULL,
  `fichier_objet` varchar(16) NOT NULL,
  `fichier_scope` varchar(32) NOT NULL,
  `fichier_src` varchar(128) DEFAULT NULL,
  `fichier_filetype` varchar(8) DEFAULT NULL,
  `fichier_mime` varchar(128) DEFAULT NULL,
  `fichier_taille_octets` int(10) UNSIGNED DEFAULT NULL,
  `fichier_actif` tinyint(1) NOT NULL DEFAULT 1,
  `fichier_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_fichiers : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_fichiers`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_followers`
--

CREATE TABLE `lhdb_followers` (
  `_id` int(10) UNSIGNED NOT NULL,
  `follower_code_hexa_id` varchar(16) NOT NULL,
  `followed_code_hexa_id` varchar(16) NOT NULL,
  `date_heure_inscription` datetime DEFAULT NULL,
  `date_heure_desinscription` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_followers : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_followers`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_forums`
--

CREATE TABLE `lhdb_forums` (
  `_id` int(10) UNSIGNED NOT NULL,
  `forum_activite_hexa` varchar(16) NOT NULL,
  `forum_expediteur_hexa` varchar(16) NOT NULL,
  `forum_message` text DEFAULT NULL,
  `forum_prive` tinyint(1) DEFAULT NULL,
  `forum_dateheure` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_forums : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_forums`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_informations`
--

CREATE TABLE `lhdb_informations` (
  `_id` int(10) UNSIGNED NOT NULL,
  `information_hexa` varchar(16) NOT NULL,
  `information_truc_hexa` varchar(16) NOT NULL,
  `information_destinataire_hexa` varchar(16) NOT NULL,
  `information_message` text NOT NULL,
  `information_dateheure` datetime DEFAULT NULL,
  `information_lue` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_informations : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_informations`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_inscriptions`
--

CREATE TABLE `lhdb_inscriptions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `inscription_hexa` varchar(16) NOT NULL,
  `inscription_activite_hexa` varchar(16) DEFAULT NULL,
  `inscription_membre_hexa` varchar(16) DEFAULT NULL,
  `inscription_participant_hexa` varchar(16) DEFAULT NULL,
  `inscription_inscription_dateheure` datetime DEFAULT NULL,
  `inscription_activitedebut_dateheure` datetime DEFAULT NULL,
  `inscription_activitefin_dateheure` datetime DEFAULT NULL,
  `inscription_statut` tinyint(1) DEFAULT NULL,
  `inscription_statut_dateheure` datetime DEFAULT NULL,
  `inscription_statut_justification` text DEFAULT NULL,
  `inscription_statut_parqui` varchar(16) DEFAULT NULL,
  `inscription_tarif_hexa` varchar(16) DEFAULT NULL,
  `inscription_tarif_montant_centimes` int(11) DEFAULT NULL,
  `inscription_questions_personnalisees` text DEFAULT NULL,
  `inscription_reponses_personnalisees` text DEFAULT NULL,
  `inscription_transaction_statut` tinyint(1) DEFAULT NULL,
  `inscription_transaction_hexa` varchar(16) DEFAULT NULL,
  `inscription_cguacceptees` tinyint(1) DEFAULT NULL,
  `inscription_infoscomplementairesprivees` text DEFAULT NULL,
  `inscription_memo` text DEFAULT NULL,
  `inscription_evaluation_commentaire` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_inscriptions : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_inscriptions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_links`
--

CREATE TABLE `lhdb_links` (
  `_id` int(10) UNSIGNED NOT NULL,
  `link_hexa` varchar(16) NOT NULL,
  `link_nb_clicks` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `link_linker_hexa` varchar(16) NOT NULL,
  `link_linked_hexa` varchar(16) DEFAULT NULL,
  `link_cible_hexa` varchar(16) NOT NULL,
  `link_realisation_hexa` varchar(16) DEFAULT NULL,
  `link_statut` tinyint(1) NOT NULL,
  `link_transaction_hexa` varchar(16) DEFAULT NULL,
  `link_montant_intermediaire_centimes` int(10) UNSIGNED DEFAULT 0,
  `link_devise` char(3) DEFAULT 'EUR',
  `link_dateheure_cible` datetime NOT NULL DEFAULT current_timestamp(),
  `link_dateheure_realisation` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_links : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_links`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_login`
--

CREATE TABLE `lhdb_login` (
  `_id` int(10) UNSIGNED NOT NULL,
  `login_hexa` varchar(16) NOT NULL,
  `login_courriel` varchar(64) NOT NULL,
  `login_courrielconfirme` tinyint(1) NOT NULL,
  `login_motdepasse` varchar(128) NOT NULL,
  `login_motdepasse_temp` varchar(128) DEFAULT NULL,
  `login_inscription_dateheure` datetime DEFAULT NULL,
  `login_validation_dateheure` datetime DEFAULT NULL,
  `login_jetondevalidation` varchar(64) DEFAULT NULL,
  `login_statutcompte` char(1) DEFAULT NULL,
  `login_derniereconnexion` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_login : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_login`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_membres`
--

CREATE TABLE `lhdb_membres` (
  `_id` int(10) UNSIGNED NOT NULL,
  `membre_hexa` varchar(16) NOT NULL,
  `membre_courriel` varchar(64) DEFAULT NULL,
  `membre_genre` tinyint(1) DEFAULT NULL,
  `membre_prenom` varchar(32) DEFAULT NULL,
  `membre_nomdefamille` varchar(64) DEFAULT NULL,
  `membre_titre` varchar(128) DEFAULT NULL,
  `membre_datedenaissance` date DEFAULT NULL,
  `membre_telephone` varchar(16) DEFAULT NULL,
  `membre_adresse_brute` varchar(256) DEFAULT NULL,
  `membre_adresse_latitude` decimal(10,8) DEFAULT NULL,
  `membre_adresse_longitude` decimal(11,8) DEFAULT NULL,
  `membre_profil_ajour` tinyint(1) DEFAULT NULL,
  `membre_langue_plateforme` char(3) DEFAULT NULL,
  `membre_langue_principale` char(3) DEFAULT NULL,
  `membre_langue_parlee_2` char(3) DEFAULT NULL,
  `membre_langue_parlee_3` char(3) DEFAULT NULL,
  `membre_isencadrant` tinyint(1) DEFAULT NULL,
  `membre_isstaff` tinyint(1) DEFAULT NULL,
  `membre_courriel_contact` varchar(64) DEFAULT NULL,
  `membre_telephone_contact` varchar(16) DEFAULT NULL,
  `membre_weblink1` varchar(256) DEFAULT NULL,
  `membre_weblink2` varchar(256) DEFAULT NULL,
  `membre_weblink3` varchar(256) DEFAULT NULL,
  `membre_qqmotssurmoi` text DEFAULT NULL,
  `membre_qualifications` text DEFAULT NULL,
  `membre_portrait_src` varchar(128) DEFAULT NULL,
  `membre_portraitcrop_src` varchar(128) DEFAULT NULL,
  `membre_illustration_src` varchar(128) DEFAULT NULL,
  `membre_folder` varchar(16) DEFAULT NULL,
  `membre_devise` char(3) DEFAULT 'EUR'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_membres : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_membres`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_messages`
--

CREATE TABLE `lhdb_messages` (
  `_id` int(10) UNSIGNED NOT NULL,
  `message_expediteur_hexa` varchar(16) NOT NULL,
  `message_destinataire_hexa` varchar(16) NOT NULL,
  `message_contenu` text DEFAULT NULL,
  `message_envoi_dateheure` datetime DEFAULT NULL,
  `message_lu` tinyint(1) DEFAULT NULL,
  `message_effaceparexpediteur` tinyint(1) DEFAULT NULL,
  `message_effacepardestinataire` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_messages : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_messages`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_paiements`
--

CREATE TABLE `lhdb_paiements` (
  `paiement_id` bigint(20) UNSIGNED NOT NULL,
  `paiement_hexa` varchar(20) NOT NULL,
  `paiement_payeur_hexa` varchar(20) NOT NULL,
  `paiement_montant_total_centimes` int(11) NOT NULL DEFAULT 0,
  `paiement_devise` char(3) NOT NULL DEFAULT 'EUR',
  `paiement_contexte_type` varchar(32) NOT NULL DEFAULT 'autre',
  `paiement_contexte_hexa` varchar(20) DEFAULT NULL,
  `paiement_activite_hexa` varchar(20) DEFAULT NULL,
  `paiement_statut` varchar(16) NOT NULL DEFAULT 'en_attente',
  `paiement_gele` tinyint(1) NOT NULL DEFAULT 0,
  `paiement_gele_motif` varchar(255) DEFAULT NULL,
  `paiement_provider` varchar(16) DEFAULT NULL,
  `paiement_provider_ref` varchar(128) DEFAULT NULL,
  `paiement_reference_le` datetime DEFAULT NULL,
  `paiement_contestation_avant_le` datetime DEFAULT NULL,
  `paiement_liberation_prevue_le` datetime DEFAULT NULL,
  `paiement_montant_rembourse_centimes` int(11) DEFAULT NULL,
  `paiement_motif_annulation` varchar(255) DEFAULT NULL,
  `paiement_cree_le` datetime DEFAULT NULL,
  `paiement_encaisse_le` datetime DEFAULT NULL,
  `paiement_annule_le` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_paiements : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_paiements`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_parrainages`
--

CREATE TABLE `lhdb_parrainages` (
  `_id` int(10) UNSIGNED NOT NULL,
  `parrainage_parrain_hexa` varchar(16) NOT NULL,
  `parrainage_filleul_hexa` varchar(16) NOT NULL,
  `parrainage_statut` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_parrainages : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_parrainages`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_recherches`
--

CREATE TABLE `lhdb_recherches` (
  `_id` int(10) UNSIGNED NOT NULL,
  `recherche_hexa` varchar(16) NOT NULL,
  `recherche_nom` varchar(128) DEFAULT NULL,
  `recherche_description` text DEFAULT NULL,
  `recherche_membre_hexa` varchar(16) DEFAULT NULL,
  `recherche_dateheure` datetime DEFAULT NULL,
  `recherche_enregistree` tinyint(1) DEFAULT NULL,
  `recherche_effacee` tinyint(1) DEFAULT NULL,
  `recherche_sqlquery` varchar(512) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_recherches : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_recherches`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_schools`
--

CREATE TABLE `lhdb_schools` (
  `_id` int(10) UNSIGNED NOT NULL,
  `club_hexa` varchar(16) NOT NULL,
  `club_createur` varchar(16) NOT NULL,
  `club_creation` datetime DEFAULT NULL,
  `club_modification` datetime DEFAULT NULL,
  `club_nomcomplet` varchar(256) DEFAULT NULL,
  `club_acronyme` varchar(32) DEFAULT NULL,
  `club_courriel` varchar(64) DEFAULT NULL,
  `club_telephone` varchar(16) DEFAULT NULL,
  `club_siteweb` varchar(128) DEFAULT NULL,
  `club_enligne` tinyint(1) DEFAULT NULL,
  `club_adresse_brute` varchar(128) DEFAULT NULL,
  `club_adresse_latitude` decimal(10,8) DEFAULT NULL,
  `club_adresse_longitude` decimal(11,8) DEFAULT NULL,
  `club_description` text DEFAULT NULL,
  `club_logo_src` varchar(128) DEFAULT NULL,
  `club_logosquare_src` varchar(128) DEFAULT NULL,
  `club_illustration_src` varchar(128) DEFAULT NULL,
  `club_type` char(1) DEFAULT NULL,
  `club_prive` tinyint(1) DEFAULT NULL,
  `club_prive_code` varchar(16) DEFAULT NULL,
  `club_cache` tinyint(1) DEFAULT NULL,
  `club_inscr_ouverte` tinyint(1) DEFAULT NULL,
  `club_motscles` varchar(256) DEFAULT NULL,
  `club_siteweb2` varchar(128) DEFAULT NULL,
  `club_siteweb3` varchar(128) DEFAULT NULL,
  `club_adhesions_automatiques` tinyint(1) DEFAULT NULL,
  `club_conditions_adhesion` text DEFAULT NULL,
  `club_conditions_adhesion_src` varchar(128) DEFAULT NULL,
  `club_tarif_cotisation_estdefini` tinyint(1) DEFAULT NULL,
  `club_tarif1_cotisation_montant` int(1) DEFAULT NULL,
  `club_tarif1_cotisation_conditions` varchar(512) DEFAULT NULL,
  `club_tarif2_cotisation_montant` int(1) DEFAULT NULL,
  `club_tarif2_cotisation_conditions` varchar(512) DEFAULT NULL,
  `club_tarif2_cotisation_applicable` tinyint(1) DEFAULT NULL,
  `club_tarif3_cotisation_montant` int(1) DEFAULT NULL,
  `club_tarif3_cotisation_conditions` varchar(512) DEFAULT NULL,
  `club_tarif3_cotisation_applicable` tinyint(1) DEFAULT NULL,
  `club_cotisations_automatiques` tinyint(1) DEFAULT NULL,
  `club_structure_adossement` tinyint(1) DEFAULT NULL,
  `club_structure_adossement_hexa` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `club_folder` varchar(16) DEFAULT NULL,
  `club_devise` char(3) DEFAULT 'EUR'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_schools : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_schools`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_seances`
--

CREATE TABLE `lhdb_seances` (
  `_id` int(10) UNSIGNED NOT NULL,
  `seance_hexa` varchar(16) NOT NULL,
  `seance_activite_hexa` varchar(16) NOT NULL,
  `seance_type` varchar(20) NOT NULL DEFAULT 'hebdo',
  `seance_parent_hexa` varchar(16) DEFAULT NULL,
  `seance_numero` smallint(5) UNSIGNED DEFAULT NULL,
  `seance_jourdesemaine` tinyint(1) DEFAULT NULL,
  `seance_debut` time DEFAULT NULL,
  `seance_fin` time DEFAULT NULL,
  `seance_debut_dateheure` datetime DEFAULT NULL,
  `seance_fin_dateheure` datetime DEFAULT NULL,
  `seance_statut` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_seances : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_seances`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_staffs`
--

CREATE TABLE `lhdb_staffs` (
  `_id` int(10) UNSIGNED NOT NULL,
  `staff_hexa` varchar(16) NOT NULL,
  `staff_club_hexa` varchar(16) NOT NULL,
  `staff_membre_hexa` varchar(16) NOT NULL,
  `staff_arrivee` date DEFAULT NULL,
  `staff_depart` date DEFAULT NULL,
  `staff_encadrant` tinyint(1) DEFAULT NULL,
  `staff_organisateur` tinyint(1) DEFAULT NULL,
  `staff_responsable_financier` tinyint(1) DEFAULT NULL,
  `staff_responsable_communication` tinyint(1) DEFAULT NULL,
  `staff_responsable_staff` tinyint(1) DEFAULT NULL,
  `staff_responsable_adhesions` tinyint(1) DEFAULT NULL,
  `staff_role` char(1) DEFAULT NULL,
  `staff_role_specifique` varchar(32) DEFAULT NULL,
  `staff_commentaire` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_staffs : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_staffs`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_structures`
--

CREATE TABLE `lhdb_structures` (
  `_id` int(10) UNSIGNED NOT NULL,
  `structure_hexa` varchar(16) NOT NULL,
  `structure_createur` varchar(16) NOT NULL,
  `structure_creation` datetime DEFAULT NULL,
  `structure_type_juridique` char(1) DEFAULT NULL,
  `structure_nomcomplet` varchar(256) DEFAULT NULL,
  `structure_acronyme` varchar(32) DEFAULT NULL,
  `structure_adresse_brute` varchar(256) DEFAULT NULL,
  `structure_adresse_brute_latitude` decimal(10,8) DEFAULT NULL,
  `structure_adresse_brute_longitude` decimal(11,8) DEFAULT NULL,
  `structure_siret` varchar(16) DEFAULT NULL,
  `structure_datagouv_src` varchar(128) DEFAULT NULL,
  `structure_statuts_src` varchar(128) DEFAULT NULL,
  `structure_courriel` varchar(64) DEFAULT NULL,
  `structure_telephone` varchar(16) DEFAULT NULL,
  `structure_siteweb` varchar(128) DEFAULT NULL,
  `structure_responsable_nomcomplet` varchar(128) DEFAULT NULL,
  `structure_autorite` tinyint(1) DEFAULT NULL,
  `structure_estverifiee` tinyint(1) DEFAULT NULL,
  `structure_folder` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_structures : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_structures`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_tarifs`
--

CREATE TABLE `lhdb_tarifs` (
  `_id` int(10) UNSIGNED NOT NULL,
  `tarif_hexa` varchar(16) NOT NULL,
  `tarif_objet_hexa` varchar(16) NOT NULL,
  `tarif_objet` tinyint(1) NOT NULL,
  `tarif_numero` tinyint(1) NOT NULL,
  `tarif_montant_centimes` int(10) UNSIGNED NOT NULL,
  `tarif_devise` char(3) NOT NULL,
  `tarif_conditions` varchar(512) DEFAULT NULL,
  `tarif_activation_dateheure` datetime DEFAULT NULL,
  `tarif_desactivation_dateheure` datetime DEFAULT NULL,
  `tarif_version` tinyint(1) DEFAULT NULL,
  `tarif_actif` tinyint(1) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_tarifs : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_tarifs`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_transactions`
--

CREATE TABLE `lhdb_transactions` (
  `_id` int(10) UNSIGNED NOT NULL,
  `transaction_hexa` varchar(16) NOT NULL,
  `transaction_type` varchar(32) DEFAULT 'activity_payment',
  `transaction_statut` varchar(32) DEFAULT 'created',
  `transaction_provider` varchar(32) DEFAULT NULL,
  `transaction_provider_payment_id` varchar(128) DEFAULT NULL,
  `transaction_provider_transfer_id` varchar(128) DEFAULT NULL,
  `transaction_provider_refund_id` varchar(128) DEFAULT NULL,
  `transaction_client_hexa` varchar(16) DEFAULT NULL,
  `transaction_prestataire_hexa` varchar(16) DEFAULT NULL,
  `transaction_prestataire_isstructure` tinyint(1) DEFAULT 0,
  `transaction_activite_hexa` varchar(16) DEFAULT NULL,
  `transaction_montant_centimes` int(10) UNSIGNED NOT NULL,
  `transaction_commission_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_frais_provider_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_net_prestataire_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_devise` char(3) DEFAULT 'EUR',
  `transaction_reference` varchar(64) DEFAULT NULL,
  `transaction_dateheure_creation` datetime DEFAULT NULL,
  `transaction_dateheure_paiement` datetime DEFAULT NULL,
  `transaction_dateheure_activite` datetime DEFAULT NULL,
  `transaction_dateheure_reversement_prevu` datetime DEFAULT NULL,
  `transaction_dateheure_reversement_effectif` datetime DEFAULT NULL,
  `transaction_metadata_json` text DEFAULT NULL,
  `transaction_montant_rembourse_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_refund_type` varchar(32) DEFAULT NULL,
  `transaction_refund_reason` varchar(255) DEFAULT NULL,
  `transaction_dateheure_remboursement` datetime DEFAULT NULL,
  `transaction_refund_payer` varchar(32) DEFAULT NULL,
  `transaction_refund_charge_organizer_centimes` int(10) UNSIGNED DEFAULT 0,
  `transaction_refund_charge_platform_centimes` int(10) UNSIGNED DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_transactions : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_transactions`&#039; à la ligne 1

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

--
-- Structure de la table `lhdb_visites`
--

CREATE TABLE `lhdb_visites` (
  `_id` int(10) UNSIGNED NOT NULL,
  `visite_ip_address` varchar(64) DEFAULT NULL,
  `visite_pays` varchar(128) DEFAULT NULL,
  `visite_ville` varchar(128) DEFAULT NULL,
  `visite_latitude` decimal(10,8) DEFAULT NULL,
  `visite_longitude` decimal(11,8) DEFAULT NULL,
  `visite_user_agent` varchar(256) DEFAULT NULL,
  `visite_dateheure` datetime DEFAULT NULL,
  `visite_page_courante` varchar(128) DEFAULT NULL,
  `visite_page_precedente` varchar(128) DEFAULT NULL,
  `visite_langue` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.lhdb_visites : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`lhdb_visites`&#039; à la ligne 1

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

--
-- Structure de la table `pumadb_qualifications`
--

CREATE TABLE `pumadb_qualifications` (
  `qualification_id` bigint(20) UNSIGNED NOT NULL,
  `qualification_hexa` varchar(20) NOT NULL,
  `qualification_membre_hexa` varchar(20) NOT NULL,
  `qualification_type` varchar(20) NOT NULL DEFAULT 'diplome',
  `qualification_titre` varchar(255) NOT NULL,
  `qualification_organisme` varchar(255) DEFAULT NULL,
  `qualification_annee` smallint(5) UNSIGNED DEFAULT NULL,
  `qualification_annee_expiration` smallint(5) UNSIGNED DEFAULT NULL,
  `qualification_cree_le` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Erreur de lecture des données pour la table _puma_db.pumadb_qualifications : #1064 - Erreur de syntaxe près de &#039;FROM `_puma_db`.`pumadb_qualifications`&#039; à la ligne 1

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

--
-- Index pour la table `lhdb_abonnements`
--
ALTER TABLE `lhdb_abonnements`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_actualites`
--
ALTER TABLE `lhdb_actualites`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_adhesions`
--
ALTER TABLE `lhdb_adhesions`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_affilies`
--
ALTER TABLE `lhdb_affilies`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_authentifications`
--
ALTER TABLE `lhdb_authentifications`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_avis`
--
ALTER TABLE `lhdb_avis`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_bugs`
--
ALTER TABLE `lhdb_bugs`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_campagnes`
--
ALTER TABLE `lhdb_campagnes`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_connexions`
--
ALTER TABLE `lhdb_connexions`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_conversation`
--
ALTER TABLE `lhdb_conversation`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_cotisations`
--
ALTER TABLE `lhdb_cotisations`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_courses`
--
ALTER TABLE `lhdb_courses`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_credits`
--
ALTER TABLE `lhdb_credits`
  ADD PRIMARY KEY (`credit_id`),
  ADD UNIQUE KEY `uq_credit_hexa` (`credit_hexa`),
  ADD KEY `idx_credit_paiement` (`credit_paiement_hexa`),
  ADD KEY `idx_credit_benef` (`credit_beneficiaire_hexa`,`credit_statut`),
  ADD KEY `idx_credit_role` (`credit_role`),
  ADD KEY `idx_credit_statut` (`credit_statut`);

--
-- Index pour la table `lhdb_events`
--
ALTER TABLE `lhdb_events`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `event_hexa` (`event_hexa`),
  ADD KEY `idx_events_type_date` (`event_type`,`event_dateheure`),
  ADD KEY `idx_events_scope_objet_date` (`event_scope`,`event_objet_hexa`,`event_dateheure`),
  ADD KEY `idx_events_membre_date` (`event_membre_hexa`,`event_dateheure`),
  ADD KEY `idx_events_linker_date` (`event_linker_hexa`,`event_dateheure`),
  ADD KEY `idx_events_session_date` (`event_session_hexa`,`event_dateheure`);

--
-- Index pour la table `lhdb_fichiers`
--
ALTER TABLE `lhdb_fichiers`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `fichier_hexa` (`fichier_hexa`);

--
-- Index pour la table `lhdb_followers`
--
ALTER TABLE `lhdb_followers`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_forums`
--
ALTER TABLE `lhdb_forums`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_informations`
--
ALTER TABLE `lhdb_informations`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_inscriptions`
--
ALTER TABLE `lhdb_inscriptions`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_links`
--
ALTER TABLE `lhdb_links`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_login`
--
ALTER TABLE `lhdb_login`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_membres`
--
ALTER TABLE `lhdb_membres`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_messages`
--
ALTER TABLE `lhdb_messages`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_paiements`
--
ALTER TABLE `lhdb_paiements`
  ADD PRIMARY KEY (`paiement_id`),
  ADD UNIQUE KEY `uq_paiement_hexa` (`paiement_hexa`),
  ADD KEY `idx_paiement_payeur` (`paiement_payeur_hexa`),
  ADD KEY `idx_paiement_contexte` (`paiement_contexte_type`,`paiement_contexte_hexa`),
  ADD KEY `idx_paiement_activite` (`paiement_activite_hexa`),
  ADD KEY `idx_paiement_statut` (`paiement_statut`),
  ADD KEY `idx_paiement_liberation` (`paiement_statut`,`paiement_gele`,`paiement_liberation_prevue_le`);

--
-- Index pour la table `lhdb_parrainages`
--
ALTER TABLE `lhdb_parrainages`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_recherches`
--
ALTER TABLE `lhdb_recherches`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_schools`
--
ALTER TABLE `lhdb_schools`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_seances`
--
ALTER TABLE `lhdb_seances`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `unique_seance_hexa` (`seance_hexa`),
  ADD KEY `index_seance_activite` (`seance_activite_hexa`),
  ADD KEY `index_seance_type` (`seance_type`),
  ADD KEY `index_seance_parent` (`seance_parent_hexa`),
  ADD KEY `index_seance_debut_dateheure` (`seance_debut_dateheure`);

--
-- Index pour la table `lhdb_staffs`
--
ALTER TABLE `lhdb_staffs`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_structures`
--
ALTER TABLE `lhdb_structures`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_tarifs`
--
ALTER TABLE `lhdb_tarifs`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `lhdb_transactions`
--
ALTER TABLE `lhdb_transactions`
  ADD PRIMARY KEY (`_id`),
  ADD UNIQUE KEY `transaction_hexa` (`transaction_hexa`);

--
-- Index pour la table `lhdb_visites`
--
ALTER TABLE `lhdb_visites`
  ADD PRIMARY KEY (`_id`);

--
-- Index pour la table `pumadb_qualifications`
--
ALTER TABLE `pumadb_qualifications`
  ADD PRIMARY KEY (`qualification_id`),
  ADD UNIQUE KEY `uq_qualification_hexa` (`qualification_hexa`),
  ADD KEY `idx_qualification_membre` (`qualification_membre_hexa`);

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

--
-- AUTO_INCREMENT pour la table `lhdb_abonnements`
--
ALTER TABLE `lhdb_abonnements`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_actualites`
--
ALTER TABLE `lhdb_actualites`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_adhesions`
--
ALTER TABLE `lhdb_adhesions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT pour la table `lhdb_affilies`
--
ALTER TABLE `lhdb_affilies`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `lhdb_authentifications`
--
ALTER TABLE `lhdb_authentifications`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=319;

--
-- AUTO_INCREMENT pour la table `lhdb_avis`
--
ALTER TABLE `lhdb_avis`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_bugs`
--
ALTER TABLE `lhdb_bugs`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT pour la table `lhdb_campagnes`
--
ALTER TABLE `lhdb_campagnes`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;

--
-- AUTO_INCREMENT pour la table `lhdb_connexions`
--
ALTER TABLE `lhdb_connexions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=334;

--
-- AUTO_INCREMENT pour la table `lhdb_conversation`
--
ALTER TABLE `lhdb_conversation`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_cotisations`
--
ALTER TABLE `lhdb_cotisations`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT pour la table `lhdb_courses`
--
ALTER TABLE `lhdb_courses`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59;

--
-- AUTO_INCREMENT pour la table `lhdb_credits`
--
ALTER TABLE `lhdb_credits`
  MODIFY `credit_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT pour la table `lhdb_events`
--
ALTER TABLE `lhdb_events`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_fichiers`
--
ALTER TABLE `lhdb_fichiers`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `lhdb_followers`
--
ALTER TABLE `lhdb_followers`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_forums`
--
ALTER TABLE `lhdb_forums`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;

--
-- AUTO_INCREMENT pour la table `lhdb_informations`
--
ALTER TABLE `lhdb_informations`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1003;

--
-- AUTO_INCREMENT pour la table `lhdb_inscriptions`
--
ALTER TABLE `lhdb_inscriptions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT pour la table `lhdb_links`
--
ALTER TABLE `lhdb_links`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `lhdb_login`
--
ALTER TABLE `lhdb_login`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT pour la table `lhdb_membres`
--
ALTER TABLE `lhdb_membres`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT pour la table `lhdb_messages`
--
ALTER TABLE `lhdb_messages`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_paiements`
--
ALTER TABLE `lhdb_paiements`
  MODIFY `paiement_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT pour la table `lhdb_parrainages`
--
ALTER TABLE `lhdb_parrainages`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_recherches`
--
ALTER TABLE `lhdb_recherches`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `lhdb_schools`
--
ALTER TABLE `lhdb_schools`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `lhdb_seances`
--
ALTER TABLE `lhdb_seances`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=201;

--
-- AUTO_INCREMENT pour la table `lhdb_staffs`
--
ALTER TABLE `lhdb_staffs`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT pour la table `lhdb_structures`
--
ALTER TABLE `lhdb_structures`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `lhdb_tarifs`
--
ALTER TABLE `lhdb_tarifs`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=316;

--
-- AUTO_INCREMENT pour la table `lhdb_transactions`
--
ALTER TABLE `lhdb_transactions`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `lhdb_visites`
--
ALTER TABLE `lhdb_visites`
  MODIFY `_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5946;

--
-- AUTO_INCREMENT pour la table `pumadb_qualifications`
--
ALTER TABLE `pumadb_qualifications`
  MODIFY `qualification_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Base de données : `_puma_matomo`
--
CREATE DATABASE IF NOT EXISTS `_puma_matomo` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `_puma_matomo`;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
