CREATE TABLE `zrnyg_updates` (
  `update_id` int(11) NOT NULL,
  `update_site_id` int(11) DEFAULT '0',
  `extension_id` int(11) DEFAULT '0',
  `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `element` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `folder` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `client_id` tinyint(3) DEFAULT '0',
  `version` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `detailsurl` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `infourl` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `extra_query` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Available Updates';

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

INSERT INTO `zrnyg_updates` (`update_id`, `update_site_id`, `extension_id`, `name`, `description`, `element`, `type`, `folder`, `client_id`, `version`, `data`, `detailsurl`, `infourl`, `extra_query`) VALUES
(5970, 2, 0, 'Armenian', '', 'pkg_hy-AM', 'package', '', 0, '3.4.4.1', '', 'https://update.joomla.org/language/details3/hy-AM_details.xml', '', ''),
(5971, 2, 0, 'Malay', '', 'pkg_ms-MY', 'package', '', 0, '3.4.1.2', '', 'https://update.joomla.org/language/details3/ms-MY_details.xml', '', ''),
(5972, 2, 0, 'Romanian', '', 'pkg_ro-RO', 'package', '', 0, '3.9.22.1', '', 'https://update.joomla.org/language/details3/ro-RO_details.xml', '', ''),
(5973, 2, 0, 'Flemish', '', 'pkg_nl-BE', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/nl-BE_details.xml', '', ''),
(5974, 2, 0, 'Chinese Traditional', '', 'pkg_zh-TW', 'package', '', 0, '3.8.0.1', '', 'https://update.joomla.org/language/details3/zh-TW_details.xml', '', ''),
(5976, 2, 0, 'Galician', '', 'pkg_gl-ES', 'package', '', 0, '3.3.1.2', '', 'https://update.joomla.org/language/details3/gl-ES_details.xml', '', ''),
(5977, 2, 0, 'Georgian', '', 'pkg_ka-GE', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/ka-GE_details.xml', '', ''),
(5978, 2, 0, 'Greek', '', 'pkg_el-GR', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/el-GR_details.xml', '', ''),
(5979, 2, 0, 'Japanese', '', 'pkg_ja-JP', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/ja-JP_details.xml', '', ''),
(5980, 2, 0, 'Hebrew', '', 'pkg_he-IL', 'package', '', 0, '3.1.1.2', '', 'https://update.joomla.org/language/details3/he-IL_details.xml', '', ''),
(5981, 2, 0, 'Bengali', '', 'pkg_bn-BD', 'package', '', 0, '3.8.10.1', '', 'https://update.joomla.org/language/details3/bn-BD_details.xml', '', ''),
(5982, 2, 0, 'Hungarian', '', 'pkg_hu-HU', 'package', '', 0, '3.9.19.1', '', 'https://update.joomla.org/language/details3/hu-HU_details.xml', '', ''),
(5983, 2, 0, 'Afrikaans', '', 'pkg_af-ZA', 'package', '', 0, '3.9.16.1', '', 'https://update.joomla.org/language/details3/af-ZA_details.xml', '', ''),
(5984, 2, 0, 'Arabic Unitag', '', 'pkg_ar-AA', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/ar-AA_details.xml', '', ''),
(5985, 2, 0, 'Belarusian', '', 'pkg_be-BY', 'package', '', 0, '3.2.1.2', '', 'https://update.joomla.org/language/details3/be-BY_details.xml', '', ''),
(5986, 2, 0, 'Bulgarian', '', 'pkg_bg-BG', 'package', '', 0, '3.6.5.2', '', 'https://update.joomla.org/language/details3/bg-BG_details.xml', '', ''),
(5987, 2, 0, 'Catalan', '', 'pkg_ca-ES', 'package', '', 0, '3.9.23.1', '', 'https://update.joomla.org/language/details3/ca-ES_details.xml', '', ''),
(5988, 2, 0, 'Chinese Simplified', '', 'pkg_zh-CN', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/zh-CN_details.xml', '', ''),
(5989, 2, 0, 'Croatian', '', 'pkg_hr-HR', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/hr-HR_details.xml', '', ''),
(5990, 2, 0, 'Czech', '', 'pkg_cs-CZ', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/cs-CZ_details.xml', '', ''),
(5991, 2, 0, 'Danish', '', 'pkg_da-DK', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/da-DK_details.xml', '', ''),
(5992, 2, 0, 'Dutch', '', 'pkg_nl-NL', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/nl-NL_details.xml', '', ''),
(5993, 2, 0, 'Esperanto', '', 'pkg_eo-XX', 'package', '', 0, '3.8.11.1', '', 'https://update.joomla.org/language/details3/eo-XX_details.xml', '', ''),
(5994, 2, 0, 'Estonian', '', 'pkg_et-EE', 'package', '', 0, '3.9.21.1', '', 'https://update.joomla.org/language/details3/et-EE_details.xml', '', ''),
(5995, 2, 0, 'Italian', '', 'pkg_it-IT', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/it-IT_details.xml', '', ''),
(5996, 2, 0, 'Khmer', '', 'pkg_km-KH', 'package', '', 0, '3.4.5.1', '', 'https://update.joomla.org/language/details3/km-KH_details.xml', '', ''),
(5997, 2, 0, 'Korean', '', 'pkg_ko-KR', 'package', '', 0, '3.8.9.1', '', 'https://update.joomla.org/language/details3/ko-KR_details.xml', '', ''),
(5998, 2, 0, 'Latvian', '', 'pkg_lv-LV', 'package', '', 0, '3.9.25.2', '', 'https://update.joomla.org/language/details3/lv-LV_details.xml', '', ''),
(5999, 2, 0, 'Lithuanian', '', 'pkg_lt-LT', 'package', '', 0, '3.9.16.1', '', 'https://update.joomla.org/language/details3/lt-LT_details.xml', '', ''),
(6000, 2, 0, 'Macedonian', '', 'pkg_mk-MK', 'package', '', 0, '3.6.5.1', '', 'https://update.joomla.org/language/details3/mk-MK_details.xml', '', ''),
(6001, 2, 0, 'Norwegian Bokmal', '', 'pkg_nb-NO', 'package', '', 0, '3.9.24.2', '', 'https://update.joomla.org/language/details3/nb-NO_details.xml', '', ''),
(6002, 2, 0, 'Norwegian Nynorsk', '', 'pkg_nn-NO', 'package', '', 0, '3.4.2.1', '', 'https://update.joomla.org/language/details3/nn-NO_details.xml', '', ''),
(6003, 2, 0, 'Persian', '', 'pkg_fa-IR', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/fa-IR_details.xml', '', ''),
(6004, 2, 0, 'Polish', '', 'pkg_pl-PL', 'package', '', 0, '3.9.13.1', '', 'https://update.joomla.org/language/details3/pl-PL_details.xml', '', ''),
(6005, 2, 0, 'Portuguese', '', 'pkg_pt-PT', 'package', '', 0, '3.9.15.1', '', 'https://update.joomla.org/language/details3/pt-PT_details.xml', '', ''),
(6006, 2, 0, 'Russian', '', 'pkg_ru-RU', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/ru-RU_details.xml', '', ''),
(6007, 2, 0, 'English AU', '', 'pkg_en-AU', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/en-AU_details.xml', '', ''),
(6008, 2, 0, 'Slovak', '', 'pkg_sk-SK', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/sk-SK_details.xml', '', ''),
(6009, 2, 0, 'English US', '', 'pkg_en-US', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/en-US_details.xml', '', ''),
(6010, 2, 0, 'Swedish', '', 'pkg_sv-SE', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/sv-SE_details.xml', '', ''),
(6011, 2, 0, 'Syriac', '', 'pkg_sy-IQ', 'package', '', 0, '3.4.5.1', '', 'https://update.joomla.org/language/details3/sy-IQ_details.xml', '', ''),
(6012, 2, 0, 'Tamil', '', 'pkg_ta-IN', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/ta-IN_details.xml', '', ''),
(6013, 2, 0, 'Thai', '', 'pkg_th-TH', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/th-TH_details.xml', '', ''),
(6014, 2, 0, 'Turkish', '', 'pkg_tr-TR', 'package', '', 0, '3.9.4.1', '', 'https://update.joomla.org/language/details3/tr-TR_details.xml', '', ''),
(6015, 2, 0, 'Ukrainian', '', 'pkg_uk-UA', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/uk-UA_details.xml', '', ''),
(6016, 2, 0, 'Uyghur', '', 'pkg_ug-CN', 'package', '', 0, '3.7.5.2', '', 'https://update.joomla.org/language/details3/ug-CN_details.xml', '', ''),
(6017, 2, 0, 'Albanian', '', 'pkg_sq-AL', 'package', '', 0, '3.1.1.2', '', 'https://update.joomla.org/language/details3/sq-AL_details.xml', '', ''),
(6018, 2, 0, 'Basque', '', 'pkg_eu-ES', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/eu-ES_details.xml', '', ''),
(6019, 2, 0, 'Hindi', '', 'pkg_hi-IN', 'package', '', 0, '3.3.6.2', '', 'https://update.joomla.org/language/details3/hi-IN_details.xml', '', ''),
(6020, 2, 0, 'German DE', '', 'pkg_de-DE', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/de-DE_details.xml', '', ''),
(6021, 2, 0, 'Portuguese Brazil', '', 'pkg_pt-BR', 'package', '', 0, '3.9.21.1', '', 'https://update.joomla.org/language/details3/pt-BR_details.xml', '', ''),
(6022, 2, 0, 'Serbian Latin', '', 'pkg_sr-YU', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/sr-YU_details.xml', '', ''),
(6023, 2, 0, 'Spanish', '', 'pkg_es-ES', 'package', '', 0, '3.9.18.1', '', 'https://update.joomla.org/language/details3/es-ES_details.xml', '', ''),
(6024, 2, 0, 'Bosnian', '', 'pkg_bs-BA', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/bs-BA_details.xml', '', ''),
(6025, 2, 0, 'Serbian Cyrillic', '', 'pkg_sr-RS', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/sr-RS_details.xml', '', ''),
(6026, 2, 0, 'Vietnamese', '', 'pkg_vi-VN', 'package', '', 0, '3.2.1.2', '', 'https://update.joomla.org/language/details3/vi-VN_details.xml', '', ''),
(6027, 2, 0, 'Bahasa Indonesia', '', 'pkg_id-ID', 'package', '', 0, '3.6.2.1', '', 'https://update.joomla.org/language/details3/id-ID_details.xml', '', ''),
(6028, 2, 0, 'Finnish', '', 'pkg_fi-FI', 'package', '', 0, '3.9.16.1', '', 'https://update.joomla.org/language/details3/fi-FI_details.xml', '', ''),
(6029, 2, 0, 'Swahili', '', 'pkg_sw-KE', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/sw-KE_details.xml', '', ''),
(6030, 2, 0, 'Montenegrin', '', 'pkg_srp-ME', 'package', '', 0, '3.3.1.2', '', 'https://update.joomla.org/language/details3/srp-ME_details.xml', '', ''),
(6031, 2, 0, 'English CA', '', 'pkg_en-CA', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/en-CA_details.xml', '', ''),
(6032, 2, 0, 'French CA', '', 'pkg_fr-CA', 'package', '', 0, '3.6.5.1', '', 'https://update.joomla.org/language/details3/fr-CA_details.xml', '', ''),
(6033, 2, 0, 'Welsh', '', 'pkg_cy-GB', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/cy-GB_details.xml', '', ''),
(6034, 2, 0, 'Sinhala', '', 'pkg_si-LK', 'package', '', 0, '3.3.1.2', '', 'https://update.joomla.org/language/details3/si-LK_details.xml', '', ''),
(6035, 2, 0, 'Dari Persian', '', 'pkg_prs-AF', 'package', '', 0, '3.4.4.3', '', 'https://update.joomla.org/language/details3/prs-AF_details.xml', '', ''),
(6036, 2, 0, 'Turkmen', '', 'pkg_tk-TM', 'package', '', 0, '3.5.0.2', '', 'https://update.joomla.org/language/details3/tk-TM_details.xml', '', ''),
(6037, 2, 0, 'Irish', '', 'pkg_ga-IE', 'package', '', 0, '3.8.13.1', '', 'https://update.joomla.org/language/details3/ga-IE_details.xml', '', ''),
(6038, 2, 0, 'Dzongkha', '', 'pkg_dz-BT', 'package', '', 0, '3.6.2.1', '', 'https://update.joomla.org/language/details3/dz-BT_details.xml', '', ''),
(6039, 2, 0, 'Slovenian', '', 'pkg_sl-SI', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/sl-SI_details.xml', '', ''),
(6040, 2, 0, 'Spanish CO', '', 'pkg_es-CO', 'package', '', 0, '3.9.15.1', '', 'https://update.joomla.org/language/details3/es-CO_details.xml', '', ''),
(6041, 2, 0, 'German CH', '', 'pkg_de-CH', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/de-CH_details.xml', '', ''),
(6042, 2, 0, 'German AT', '', 'pkg_de-AT', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/de-AT_details.xml', '', ''),
(6043, 2, 0, 'German LI', '', 'pkg_de-LI', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/de-LI_details.xml', '', ''),
(6044, 2, 0, 'German LU', '', 'pkg_de-LU', 'package', '', 0, '3.9.25.1', '', 'https://update.joomla.org/language/details3/de-LU_details.xml', '', ''),
(6045, 2, 0, 'English NZ', '', 'pkg_en-NZ', 'package', '', 0, '3.9.24.1', '', 'https://update.joomla.org/language/details3/en-NZ_details.xml', '', ''),
(6046, 2, 0, 'Kazakh', '', 'pkg_kk-KZ', 'package', '', 0, '3.9.23.1', '', 'https://update.joomla.org/language/details3/kk-KZ_details.xml', '', ''),
(6047, 5, 0, 'K2', 'K2, the powerful content extension for Joomla (by JoomlaWorks)', 'com_k2', 'component', '', 1, '2.10.3', '', 'http://getk2.org/app/update.xml', 'https://getk2.org/blog/k2-v2103-now-available', ''),
(6119, 1, 700, 'Joomla', '', 'joomla', 'file', '', 0, '3.9.26', '', 'https://update.joomla.org/core/sts/extension_sts.xml', '', '');

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

--
-- Structure de la table `zrnyg_update_sites`
--

CREATE TABLE `zrnyg_update_sites` (
  `update_site_id` int(11) NOT NULL,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `location` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `enabled` int(11) DEFAULT '0',
  `last_check_timestamp` bigint(20) DEFAULT '0',
  `extra_query` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Update Sites';

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

INSERT INTO `zrnyg_update_sites` (`update_site_id`, `name`, `type`, `location`, `enabled`, `last_check_timestamp`, `extra_query`) VALUES
(1, 'Joomla! Core', 'collection', 'https://update.joomla.org/core/list.xml', 1, 1620293445, ''),
(2, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 1615795974, ''),
(3, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 1615796037, ''),
(4, 'WebInstaller Update Site', 'extension', 'https://appscdn.joomla.org/webapps/jedapps/webinstaller.xml', 1, 1615795974, ''),
(5, 'K2 Updates', 'extension', 'http://getk2.org/app/update.xml', 1, 1615795974, ''),
(6, 'JComments Update Site', 'extension', 'http://www.joomlatune.ru/updates/jcomments.xml', 1, 1615795975, '');

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

--
-- Structure de la table `zrnyg_update_sites_extensions`
--

CREATE TABLE `zrnyg_update_sites_extensions` (
  `update_site_id` int(11) NOT NULL DEFAULT '0',
  `extension_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Links extensions to update sites';

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

INSERT INTO `zrnyg_update_sites_extensions` (`update_site_id`, `extension_id`) VALUES
(1, 700),
(2, 802),
(2, 803),
(3, 28),
(4, 804),
(5, 605),
(6, 819);

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

--
-- Structure de la table `zrnyg_usergroups`
--

CREATE TABLE `zrnyg_usergroups` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `parent_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Adjacency List Reference Id',
  `lft` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
  `rgt` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `zrnyg_usergroups` (`id`, `parent_id`, `lft`, `rgt`, `title`) VALUES
(1, 0, 1, 18, 'Public'),
(2, 1, 8, 15, 'Enregistré'),
(3, 2, 9, 14, 'Auteur'),
(4, 3, 10, 13, 'Rédacteur'),
(5, 4, 11, 12, 'Validateur'),
(6, 1, 4, 7, 'Gestionnaire'),
(7, 6, 5, 6, 'Administrateur'),
(8, 1, 16, 17, 'Super Utilisateur'),
(9, 1, 2, 3, 'Invité');

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

--
-- Structure de la table `zrnyg_users`
--

CREATE TABLE `zrnyg_users` (
  `id` int(11) NOT NULL,
  `name` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `username` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `password` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `block` tinyint(4) NOT NULL DEFAULT '0',
  `sendEmail` tinyint(4) DEFAULT '0',
  `registerDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `lastvisitDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `activation` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `params` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `lastResetTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Date of last password reset',
  `resetCount` int(11) NOT NULL DEFAULT '0' COMMENT 'Count of password resets since lastResetTime',
  `otpKey` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Two factor authentication encrypted keys',
  `otep` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'One time emergency passwords',
  `requireReset` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Require user to reset password on next login'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `zrnyg_users` (`id`, `name`, `username`, `email`, `password`, `block`, `sendEmail`, `registerDate`, `lastvisitDate`, `activation`, `params`, `lastResetTime`, `resetCount`, `otpKey`, `otep`, `requireReset`) VALUES
(814, 'Richard GAUTHIER', 'adminRichard', 'rgauthier.p@gmail.com', '$2y$10$qW10P/ZgC/H4uOvCM4uZR.ZDCixaF6H9fNqQOqptcbLpSavNDmXx.', 0, 1, '2019-10-04 19:26:38', '2021-03-15 08:12:52', '0', '{\"admin_style\":\"\",\"admin_language\":\"\",\"language\":\"\",\"editor\":\"tinymce\",\"timezone\":\"\"}', '0000-00-00 00:00:00', 0, '', '', 0),
(815, 'AllenExiceFP', 'AllenExice', 'yourmail@gmail.com', '$2y$10$yvlu1PWmiSCSjIv47EJEWumF5EIIv0xQwPWO0ciniXh3yTUT2/Hie', 1, 0, '2019-11-18 10:46:30', '0000-00-00 00:00:00', '57e48864f86201a961798898e4d69265', '{}', '0000-00-00 00:00:00', 0, '', '', 0),
(816, 'AllenidordFP', 'Allenidord', 'yourmail232@gmail.com', '$2y$10$tx8wOHRdCug2vEt2szQrnOwzeb.QNoqV9ocKfgWtJiTN3DwPC2ixK', 1, 0, '2019-11-20 14:45:04', '0000-00-00 00:00:00', '263556057316b71c4cc458a7f5c81ba2', '{}', '0000-00-00 00:00:00', 0, '', '', 0),
(817, 'DavidBoumbAH', 'DavidBoumb', 'yourmail229@gmail.com', '$2y$10$yAtPklGPdRRkzLZKsoKmBu6HvfRcLT8Plv/0jkmKOv6YcRarudDgC', 1, 0, '2019-11-26 06:25:10', '0000-00-00 00:00:00', 'c632ae864826663beb1f7553a34289f2', '{}', '0000-00-00 00:00:00', 0, '', '', 0);

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

--
-- Structure de la table `zrnyg_user_keys`
--

CREATE TABLE `zrnyg_user_keys` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `series` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invalid` tinyint(4) NOT NULL,
  `time` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
  `uastring` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `zrnyg_user_notes`
--

CREATE TABLE `zrnyg_user_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `catid` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `subject` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `state` tinyint(3) NOT NULL DEFAULT '0',
  `checked_out` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `modified_user_id` int(10) UNSIGNED NOT NULL,
  `modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `review_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Structure de la table `zrnyg_user_profiles`
--

CREATE TABLE `zrnyg_user_profiles` (
  `user_id` int(11) NOT NULL,
  `profile_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `profile_value` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `ordering` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Simple user profile storage table';

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

--
-- Structure de la table `zrnyg_user_usergroup_map`
--

CREATE TABLE `zrnyg_user_usergroup_map` (
  `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Foreign Key to #__users.id',
  `group_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Foreign Key to #__usergroups.id'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `zrnyg_user_usergroup_map` (`user_id`, `group_id`) VALUES
(814, 8),
(815, 2),
(816, 2),
(817, 2);

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

--
-- Structure de la table `zrnyg_utf8_conversion`
--

CREATE TABLE `zrnyg_utf8_conversion` (
  `converted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `zrnyg_utf8_conversion` (`converted`) VALUES
(5);

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

--
-- Structure de la table `zrnyg_viewlevels`
--

CREATE TABLE `zrnyg_viewlevels` (
  `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `rules` varchar(5120) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'JSON encoded access control.'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `zrnyg_viewlevels` (`id`, `title`, `ordering`, `rules`) VALUES
(1, 'Accès public', 0, '[1]'),
(2, 'Accès enregistré', 2, '[6,2,8]'),
(3, 'Accès spécial', 3, '[6,3,8]'),
(5, 'Accès invité', 1, '[9]'),
(6, 'Accès super utilisateur', 4, '[8]');

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

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

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

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

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

--
-- Index pour la table `pscha_access`
--
ALTER TABLE `pscha_access`
  ADD PRIMARY KEY (`id_profile`,`id_authorization_role`);

--
-- Index pour la table `pscha_accessory`
--
ALTER TABLE `pscha_accessory`
  ADD KEY `accessory_product` (`id_product_1`,`id_product_2`);

--
-- Index pour la table `pscha_address`
--
ALTER TABLE `pscha_address`
  ADD PRIMARY KEY (`id_address`),
  ADD KEY `address_customer` (`id_customer`),
  ADD KEY `id_country` (`id_country`),
  ADD KEY `id_state` (`id_state`),
  ADD KEY `id_manufacturer` (`id_manufacturer`),
  ADD KEY `id_supplier` (`id_supplier`),
  ADD KEY `id_warehouse` (`id_warehouse`);

--
-- Index pour la table `pscha_address_format`
--
ALTER TABLE `pscha_address_format`
  ADD PRIMARY KEY (`id_country`);

--
-- Index pour la table `pscha_admin_filter`
--
ALTER TABLE `pscha_admin_filter`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `admin_filter_search_id_idx` (`employee`,`shop`,`controller`,`action`,`filter_id`);

--
-- Index pour la table `pscha_advice`
--
ALTER TABLE `pscha_advice`
  ADD PRIMARY KEY (`id_advice`);

--
-- Index pour la table `pscha_advice_lang`
--
ALTER TABLE `pscha_advice_lang`
  ADD PRIMARY KEY (`id_advice`,`id_lang`);

--
-- Index pour la table `pscha_alias`
--
ALTER TABLE `pscha_alias`
  ADD PRIMARY KEY (`id_alias`),
  ADD UNIQUE KEY `alias` (`alias`);

--
-- Index pour la table `pscha_attachment`
--
ALTER TABLE `pscha_attachment`
  ADD PRIMARY KEY (`id_attachment`);

--
-- Index pour la table `pscha_attachment_lang`
--
ALTER TABLE `pscha_attachment_lang`
  ADD PRIMARY KEY (`id_attachment`,`id_lang`);

--
-- Index pour la table `pscha_attribute`
--
ALTER TABLE `pscha_attribute`
  ADD PRIMARY KEY (`id_attribute`),
  ADD KEY `attribute_group` (`id_attribute_group`);

--
-- Index pour la table `pscha_attribute_group`
--
ALTER TABLE `pscha_attribute_group`
  ADD PRIMARY KEY (`id_attribute_group`);

--
-- Index pour la table `pscha_attribute_group_lang`
--
ALTER TABLE `pscha_attribute_group_lang`
  ADD PRIMARY KEY (`id_attribute_group`,`id_lang`),
  ADD KEY `IDX_1AC3CBA467A664FB` (`id_attribute_group`),
  ADD KEY `IDX_1AC3CBA4BA299860` (`id_lang`);

--
-- Index pour la table `pscha_attribute_group_shop`
--
ALTER TABLE `pscha_attribute_group_shop`
  ADD PRIMARY KEY (`id_attribute_group`,`id_shop`),
  ADD KEY `IDX_87A0036467A664FB` (`id_attribute_group`),
  ADD KEY `IDX_87A00364274A50A0` (`id_shop`);

--
-- Index pour la table `pscha_attribute_impact`
--
ALTER TABLE `pscha_attribute_impact`
  ADD PRIMARY KEY (`id_attribute_impact`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_attribute`);

--
-- Index pour la table `pscha_attribute_lang`
--
ALTER TABLE `pscha_attribute_lang`
  ADD PRIMARY KEY (`id_attribute`,`id_lang`),
  ADD KEY `IDX_7555881C7A4F53DC` (`id_attribute`),
  ADD KEY `IDX_7555881CBA299860` (`id_lang`);

--
-- Index pour la table `pscha_attribute_shop`
--
ALTER TABLE `pscha_attribute_shop`
  ADD PRIMARY KEY (`id_attribute`,`id_shop`),
  ADD KEY `IDX_E83640DC7A4F53DC` (`id_attribute`),
  ADD KEY `IDX_E83640DC274A50A0` (`id_shop`);

--
-- Index pour la table `pscha_authorization_role`
--
ALTER TABLE `pscha_authorization_role`
  ADD PRIMARY KEY (`id_authorization_role`),
  ADD UNIQUE KEY `slug` (`slug`);

--
-- Index pour la table `pscha_badge`
--
ALTER TABLE `pscha_badge`
  ADD PRIMARY KEY (`id_badge`);

--
-- Index pour la table `pscha_badge_lang`
--
ALTER TABLE `pscha_badge_lang`
  ADD PRIMARY KEY (`id_badge`,`id_lang`);

--
-- Index pour la table `pscha_carrier`
--
ALTER TABLE `pscha_carrier`
  ADD PRIMARY KEY (`id_carrier`),
  ADD KEY `deleted` (`deleted`,`active`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `reference` (`id_reference`,`deleted`,`active`);

--
-- Index pour la table `pscha_carrier_group`
--
ALTER TABLE `pscha_carrier_group`
  ADD PRIMARY KEY (`id_carrier`,`id_group`);

--
-- Index pour la table `pscha_carrier_lang`
--
ALTER TABLE `pscha_carrier_lang`
  ADD PRIMARY KEY (`id_lang`,`id_shop`,`id_carrier`);

--
-- Index pour la table `pscha_carrier_shop`
--
ALTER TABLE `pscha_carrier_shop`
  ADD PRIMARY KEY (`id_carrier`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_carrier_tax_rules_group_shop`
--
ALTER TABLE `pscha_carrier_tax_rules_group_shop`
  ADD PRIMARY KEY (`id_carrier`,`id_tax_rules_group`,`id_shop`);

--
-- Index pour la table `pscha_carrier_zone`
--
ALTER TABLE `pscha_carrier_zone`
  ADD PRIMARY KEY (`id_carrier`,`id_zone`);

--
-- Index pour la table `pscha_cart`
--
ALTER TABLE `pscha_cart`
  ADD PRIMARY KEY (`id_cart`),
  ADD KEY `cart_customer` (`id_customer`),
  ADD KEY `id_address_delivery` (`id_address_delivery`),
  ADD KEY `id_address_invoice` (`id_address_invoice`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `id_guest` (`id_guest`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_shop_2` (`id_shop`,`date_upd`),
  ADD KEY `id_shop` (`id_shop`,`date_add`);

--
-- Index pour la table `pscha_cart_cart_rule`
--
ALTER TABLE `pscha_cart_cart_rule`
  ADD PRIMARY KEY (`id_cart`,`id_cart_rule`),
  ADD KEY `id_cart_rule` (`id_cart_rule`);

--
-- Index pour la table `pscha_cart_product`
--
ALTER TABLE `pscha_cart_product`
  ADD PRIMARY KEY (`id_cart`,`id_product`,`id_product_attribute`,`id_customization`,`id_address_delivery`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_cart_order` (`id_cart`,`date_add`,`id_product`,`id_product_attribute`);

--
-- Index pour la table `pscha_cart_rule`
--
ALTER TABLE `pscha_cart_rule`
  ADD PRIMARY KEY (`id_cart_rule`),
  ADD KEY `id_customer` (`id_customer`,`active`,`date_to`),
  ADD KEY `group_restriction` (`group_restriction`,`active`,`date_to`),
  ADD KEY `id_customer_2` (`id_customer`,`active`,`highlight`,`date_to`),
  ADD KEY `group_restriction_2` (`group_restriction`,`active`,`highlight`,`date_to`),
  ADD KEY `date_from` (`date_from`),
  ADD KEY `date_to` (`date_to`);

--
-- Index pour la table `pscha_cart_rule_carrier`
--
ALTER TABLE `pscha_cart_rule_carrier`
  ADD PRIMARY KEY (`id_cart_rule`,`id_carrier`);

--
-- Index pour la table `pscha_cart_rule_combination`
--
ALTER TABLE `pscha_cart_rule_combination`
  ADD PRIMARY KEY (`id_cart_rule_1`,`id_cart_rule_2`),
  ADD KEY `id_cart_rule_1` (`id_cart_rule_1`),
  ADD KEY `id_cart_rule_2` (`id_cart_rule_2`);

--
-- Index pour la table `pscha_cart_rule_country`
--
ALTER TABLE `pscha_cart_rule_country`
  ADD PRIMARY KEY (`id_cart_rule`,`id_country`);

--
-- Index pour la table `pscha_cart_rule_group`
--
ALTER TABLE `pscha_cart_rule_group`
  ADD PRIMARY KEY (`id_cart_rule`,`id_group`);

--
-- Index pour la table `pscha_cart_rule_lang`
--
ALTER TABLE `pscha_cart_rule_lang`
  ADD PRIMARY KEY (`id_cart_rule`,`id_lang`);

--
-- Index pour la table `pscha_cart_rule_product_rule`
--
ALTER TABLE `pscha_cart_rule_product_rule`
  ADD PRIMARY KEY (`id_product_rule`);

--
-- Index pour la table `pscha_cart_rule_product_rule_group`
--
ALTER TABLE `pscha_cart_rule_product_rule_group`
  ADD PRIMARY KEY (`id_product_rule_group`);

--
-- Index pour la table `pscha_cart_rule_product_rule_value`
--
ALTER TABLE `pscha_cart_rule_product_rule_value`
  ADD PRIMARY KEY (`id_product_rule`,`id_item`);

--
-- Index pour la table `pscha_cart_rule_shop`
--
ALTER TABLE `pscha_cart_rule_shop`
  ADD PRIMARY KEY (`id_cart_rule`,`id_shop`);

--
-- Index pour la table `pscha_category`
--
ALTER TABLE `pscha_category`
  ADD PRIMARY KEY (`id_category`),
  ADD KEY `category_parent` (`id_parent`),
  ADD KEY `nleftrightactive` (`nleft`,`nright`,`active`),
  ADD KEY `level_depth` (`level_depth`),
  ADD KEY `nright` (`nright`),
  ADD KEY `activenleft` (`active`,`nleft`),
  ADD KEY `activenright` (`active`,`nright`);

--
-- Index pour la table `pscha_category_group`
--
ALTER TABLE `pscha_category_group`
  ADD PRIMARY KEY (`id_category`,`id_group`),
  ADD KEY `id_category` (`id_category`),
  ADD KEY `id_group` (`id_group`);

--
-- Index pour la table `pscha_category_lang`
--
ALTER TABLE `pscha_category_lang`
  ADD PRIMARY KEY (`id_category`,`id_shop`,`id_lang`),
  ADD KEY `category_name` (`name`);

--
-- Index pour la table `pscha_category_product`
--
ALTER TABLE `pscha_category_product`
  ADD PRIMARY KEY (`id_category`,`id_product`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_category` (`id_category`,`position`);

--
-- Index pour la table `pscha_category_shop`
--
ALTER TABLE `pscha_category_shop`
  ADD PRIMARY KEY (`id_category`,`id_shop`);

--
-- Index pour la table `pscha_cms`
--
ALTER TABLE `pscha_cms`
  ADD PRIMARY KEY (`id_cms`);

--
-- Index pour la table `pscha_cms_category`
--
ALTER TABLE `pscha_cms_category`
  ADD PRIMARY KEY (`id_cms_category`),
  ADD KEY `category_parent` (`id_parent`);

--
-- Index pour la table `pscha_cms_category_lang`
--
ALTER TABLE `pscha_cms_category_lang`
  ADD PRIMARY KEY (`id_cms_category`,`id_shop`,`id_lang`),
  ADD KEY `category_name` (`name`);

--
-- Index pour la table `pscha_cms_category_shop`
--
ALTER TABLE `pscha_cms_category_shop`
  ADD PRIMARY KEY (`id_cms_category`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_cms_lang`
--
ALTER TABLE `pscha_cms_lang`
  ADD PRIMARY KEY (`id_cms`,`id_shop`,`id_lang`);

--
-- Index pour la table `pscha_cms_role`
--
ALTER TABLE `pscha_cms_role`
  ADD PRIMARY KEY (`id_cms_role`,`id_cms`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Index pour la table `pscha_cms_role_lang`
--
ALTER TABLE `pscha_cms_role_lang`
  ADD PRIMARY KEY (`id_cms_role`,`id_lang`,`id_shop`);

--
-- Index pour la table `pscha_cms_shop`
--
ALTER TABLE `pscha_cms_shop`
  ADD PRIMARY KEY (`id_cms`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_condition`
--
ALTER TABLE `pscha_condition`
  ADD PRIMARY KEY (`id_condition`,`id_ps_condition`);

--
-- Index pour la table `pscha_condition_advice`
--
ALTER TABLE `pscha_condition_advice`
  ADD PRIMARY KEY (`id_condition`,`id_advice`);

--
-- Index pour la table `pscha_condition_badge`
--
ALTER TABLE `pscha_condition_badge`
  ADD PRIMARY KEY (`id_condition`,`id_badge`);

--
-- Index pour la table `pscha_configuration`
--
ALTER TABLE `pscha_configuration`
  ADD PRIMARY KEY (`id_configuration`),
  ADD KEY `name` (`name`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`);

--
-- Index pour la table `pscha_configuration_kpi`
--
ALTER TABLE `pscha_configuration_kpi`
  ADD PRIMARY KEY (`id_configuration_kpi`),
  ADD KEY `name` (`name`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`);

--
-- Index pour la table `pscha_configuration_kpi_lang`
--
ALTER TABLE `pscha_configuration_kpi_lang`
  ADD PRIMARY KEY (`id_configuration_kpi`,`id_lang`);

--
-- Index pour la table `pscha_configuration_lang`
--
ALTER TABLE `pscha_configuration_lang`
  ADD PRIMARY KEY (`id_configuration`,`id_lang`);

--
-- Index pour la table `pscha_connections`
--
ALTER TABLE `pscha_connections`
  ADD PRIMARY KEY (`id_connections`),
  ADD KEY `id_guest` (`id_guest`),
  ADD KEY `date_add` (`date_add`),
  ADD KEY `id_page` (`id_page`);

--
-- Index pour la table `pscha_connections_page`
--
ALTER TABLE `pscha_connections_page`
  ADD PRIMARY KEY (`id_connections`,`id_page`,`time_start`);

--
-- Index pour la table `pscha_connections_source`
--
ALTER TABLE `pscha_connections_source`
  ADD PRIMARY KEY (`id_connections_source`),
  ADD KEY `connections` (`id_connections`),
  ADD KEY `orderby` (`date_add`),
  ADD KEY `http_referer` (`http_referer`),
  ADD KEY `request_uri` (`request_uri`);

--
-- Index pour la table `pscha_contact`
--
ALTER TABLE `pscha_contact`
  ADD PRIMARY KEY (`id_contact`);

--
-- Index pour la table `pscha_contact_lang`
--
ALTER TABLE `pscha_contact_lang`
  ADD PRIMARY KEY (`id_contact`,`id_lang`);

--
-- Index pour la table `pscha_contact_shop`
--
ALTER TABLE `pscha_contact_shop`
  ADD PRIMARY KEY (`id_contact`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_country`
--
ALTER TABLE `pscha_country`
  ADD PRIMARY KEY (`id_country`),
  ADD KEY `country_iso_code` (`iso_code`),
  ADD KEY `country_` (`id_zone`);

--
-- Index pour la table `pscha_country_lang`
--
ALTER TABLE `pscha_country_lang`
  ADD PRIMARY KEY (`id_country`,`id_lang`);

--
-- Index pour la table `pscha_country_shop`
--
ALTER TABLE `pscha_country_shop`
  ADD PRIMARY KEY (`id_country`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_currency`
--
ALTER TABLE `pscha_currency`
  ADD PRIMARY KEY (`id_currency`),
  ADD KEY `currency_iso_code` (`iso_code`);

--
-- Index pour la table `pscha_currency_lang`
--
ALTER TABLE `pscha_currency_lang`
  ADD PRIMARY KEY (`id_currency`,`id_lang`);

--
-- Index pour la table `pscha_currency_shop`
--
ALTER TABLE `pscha_currency_shop`
  ADD PRIMARY KEY (`id_currency`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_customer`
--
ALTER TABLE `pscha_customer`
  ADD PRIMARY KEY (`id_customer`),
  ADD KEY `customer_email` (`email`),
  ADD KEY `customer_login` (`email`,`passwd`),
  ADD KEY `id_customer_passwd` (`id_customer`,`passwd`),
  ADD KEY `id_gender` (`id_gender`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_shop` (`id_shop`,`date_add`);

--
-- Index pour la table `pscha_customer_group`
--
ALTER TABLE `pscha_customer_group`
  ADD PRIMARY KEY (`id_customer`,`id_group`),
  ADD KEY `customer_login` (`id_group`),
  ADD KEY `id_customer` (`id_customer`);

--
-- Index pour la table `pscha_customer_message`
--
ALTER TABLE `pscha_customer_message`
  ADD PRIMARY KEY (`id_customer_message`),
  ADD KEY `id_customer_thread` (`id_customer_thread`),
  ADD KEY `id_employee` (`id_employee`);

--
-- Index pour la table `pscha_customer_message_sync_imap`
--
ALTER TABLE `pscha_customer_message_sync_imap`
  ADD KEY `md5_header_index` (`md5_header`(4));

--
-- Index pour la table `pscha_customer_thread`
--
ALTER TABLE `pscha_customer_thread`
  ADD PRIMARY KEY (`id_customer_thread`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_contact` (`id_contact`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_product` (`id_product`);

--
-- Index pour la table `pscha_customization`
--
ALTER TABLE `pscha_customization`
  ADD PRIMARY KEY (`id_customization`,`id_cart`,`id_product`,`id_address_delivery`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_cart_product` (`id_cart`,`id_product`,`id_product_attribute`);

--
-- Index pour la table `pscha_customization_field`
--
ALTER TABLE `pscha_customization_field`
  ADD PRIMARY KEY (`id_customization_field`),
  ADD KEY `id_product` (`id_product`);

--
-- Index pour la table `pscha_customization_field_lang`
--
ALTER TABLE `pscha_customization_field_lang`
  ADD PRIMARY KEY (`id_customization_field`,`id_lang`,`id_shop`);

--
-- Index pour la table `pscha_customized_data`
--
ALTER TABLE `pscha_customized_data`
  ADD PRIMARY KEY (`id_customization`,`type`,`index`);

--
-- Index pour la table `pscha_date_range`
--
ALTER TABLE `pscha_date_range`
  ADD PRIMARY KEY (`id_date_range`);

--
-- Index pour la table `pscha_delivery`
--
ALTER TABLE `pscha_delivery`
  ADD PRIMARY KEY (`id_delivery`),
  ADD KEY `id_zone` (`id_zone`),
  ADD KEY `id_carrier` (`id_carrier`,`id_zone`),
  ADD KEY `id_range_price` (`id_range_price`),
  ADD KEY `id_range_weight` (`id_range_weight`);

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

--
-- Index pour la table `pscha_employee`
--
ALTER TABLE `pscha_employee`
  ADD PRIMARY KEY (`id_employee`),
  ADD KEY `employee_login` (`email`,`passwd`),
  ADD KEY `id_employee_passwd` (`id_employee`,`passwd`),
  ADD KEY `id_profile` (`id_profile`);

--
-- Index pour la table `pscha_employee_shop`
--
ALTER TABLE `pscha_employee_shop`
  ADD PRIMARY KEY (`id_employee`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_feature`
--
ALTER TABLE `pscha_feature`
  ADD PRIMARY KEY (`id_feature`);

--
-- Index pour la table `pscha_feature_lang`
--
ALTER TABLE `pscha_feature_lang`
  ADD PRIMARY KEY (`id_feature`,`id_lang`),
  ADD KEY `id_lang` (`id_lang`,`name`);

--
-- Index pour la table `pscha_feature_product`
--
ALTER TABLE `pscha_feature_product`
  ADD PRIMARY KEY (`id_feature`,`id_product`,`id_feature_value`),
  ADD KEY `id_feature_value` (`id_feature_value`),
  ADD KEY `id_product` (`id_product`);

--
-- Index pour la table `pscha_feature_shop`
--
ALTER TABLE `pscha_feature_shop`
  ADD PRIMARY KEY (`id_feature`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_feature_value`
--
ALTER TABLE `pscha_feature_value`
  ADD PRIMARY KEY (`id_feature_value`),
  ADD KEY `feature` (`id_feature`);

--
-- Index pour la table `pscha_feature_value_lang`
--
ALTER TABLE `pscha_feature_value_lang`
  ADD PRIMARY KEY (`id_feature_value`,`id_lang`);

--
-- Index pour la table `pscha_gender`
--
ALTER TABLE `pscha_gender`
  ADD PRIMARY KEY (`id_gender`);

--
-- Index pour la table `pscha_gender_lang`
--
ALTER TABLE `pscha_gender_lang`
  ADD PRIMARY KEY (`id_gender`,`id_lang`),
  ADD KEY `id_gender` (`id_gender`);

--
-- Index pour la table `pscha_group`
--
ALTER TABLE `pscha_group`
  ADD PRIMARY KEY (`id_group`);

--
-- Index pour la table `pscha_group_lang`
--
ALTER TABLE `pscha_group_lang`
  ADD PRIMARY KEY (`id_group`,`id_lang`);

--
-- Index pour la table `pscha_group_reduction`
--
ALTER TABLE `pscha_group_reduction`
  ADD PRIMARY KEY (`id_group_reduction`),
  ADD UNIQUE KEY `id_group` (`id_group`,`id_category`);

--
-- Index pour la table `pscha_group_shop`
--
ALTER TABLE `pscha_group_shop`
  ADD PRIMARY KEY (`id_group`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_guest`
--
ALTER TABLE `pscha_guest`
  ADD PRIMARY KEY (`id_guest`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_operating_system` (`id_operating_system`),
  ADD KEY `id_web_browser` (`id_web_browser`);

--
-- Index pour la table `pscha_homeslider`
--
ALTER TABLE `pscha_homeslider`
  ADD PRIMARY KEY (`id_homeslider_slides`,`id_shop`);

--
-- Index pour la table `pscha_homeslider_slides`
--
ALTER TABLE `pscha_homeslider_slides`
  ADD PRIMARY KEY (`id_homeslider_slides`);

--
-- Index pour la table `pscha_homeslider_slides_lang`
--
ALTER TABLE `pscha_homeslider_slides_lang`
  ADD PRIMARY KEY (`id_homeslider_slides`,`id_lang`);

--
-- Index pour la table `pscha_hook`
--
ALTER TABLE `pscha_hook`
  ADD PRIMARY KEY (`id_hook`),
  ADD UNIQUE KEY `hook_name` (`name`);

--
-- Index pour la table `pscha_hook_alias`
--
ALTER TABLE `pscha_hook_alias`
  ADD PRIMARY KEY (`id_hook_alias`),
  ADD UNIQUE KEY `alias` (`alias`);

--
-- Index pour la table `pscha_hook_module`
--
ALTER TABLE `pscha_hook_module`
  ADD PRIMARY KEY (`id_module`,`id_hook`,`id_shop`),
  ADD KEY `id_hook` (`id_hook`),
  ADD KEY `id_module` (`id_module`),
  ADD KEY `position` (`id_shop`,`position`);

--
-- Index pour la table `pscha_hook_module_exceptions`
--
ALTER TABLE `pscha_hook_module_exceptions`
  ADD PRIMARY KEY (`id_hook_module_exceptions`),
  ADD KEY `id_module` (`id_module`),
  ADD KEY `id_hook` (`id_hook`);

--
-- Index pour la table `pscha_image`
--
ALTER TABLE `pscha_image`
  ADD PRIMARY KEY (`id_image`),
  ADD UNIQUE KEY `id_product_cover` (`id_product`,`cover`),
  ADD UNIQUE KEY `idx_product_image` (`id_image`,`id_product`,`cover`),
  ADD KEY `image_product` (`id_product`);

--
-- Index pour la table `pscha_image_lang`
--
ALTER TABLE `pscha_image_lang`
  ADD PRIMARY KEY (`id_image`,`id_lang`),
  ADD KEY `id_image` (`id_image`);

--
-- Index pour la table `pscha_image_shop`
--
ALTER TABLE `pscha_image_shop`
  ADD PRIMARY KEY (`id_image`,`id_shop`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_shop`,`cover`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_image_type`
--
ALTER TABLE `pscha_image_type`
  ADD PRIMARY KEY (`id_image_type`),
  ADD KEY `image_type_name` (`name`);

--
-- Index pour la table `pscha_import_match`
--
ALTER TABLE `pscha_import_match`
  ADD PRIMARY KEY (`id_import_match`);

--
-- Index pour la table `pscha_info`
--
ALTER TABLE `pscha_info`
  ADD PRIMARY KEY (`id_info`);

--
-- Index pour la table `pscha_info_lang`
--
ALTER TABLE `pscha_info_lang`
  ADD PRIMARY KEY (`id_info`,`id_lang`,`id_shop`);

--
-- Index pour la table `pscha_info_shop`
--
ALTER TABLE `pscha_info_shop`
  ADD PRIMARY KEY (`id_info`,`id_shop`);

--
-- Index pour la table `pscha_lang`
--
ALTER TABLE `pscha_lang`
  ADD PRIMARY KEY (`id_lang`);

--
-- Index pour la table `pscha_lang_shop`
--
ALTER TABLE `pscha_lang_shop`
  ADD PRIMARY KEY (`id_lang`,`id_shop`),
  ADD KEY `IDX_5CA066E5BA299860` (`id_lang`),
  ADD KEY `IDX_5CA066E5274A50A0` (`id_shop`);

--
-- Index pour la table `pscha_layered_category`
--
ALTER TABLE `pscha_layered_category`
  ADD PRIMARY KEY (`id_layered_category`),
  ADD KEY `id_category_shop` (`id_category`,`id_shop`,`type`,`id_value`,`position`),
  ADD KEY `id_category` (`id_category`,`type`);

--
-- Index pour la table `pscha_layered_filter`
--
ALTER TABLE `pscha_layered_filter`
  ADD PRIMARY KEY (`id_layered_filter`);

--
-- Index pour la table `pscha_layered_filter_block`
--
ALTER TABLE `pscha_layered_filter_block`
  ADD PRIMARY KEY (`hash`);

--
-- Index pour la table `pscha_layered_filter_shop`
--
ALTER TABLE `pscha_layered_filter_shop`
  ADD PRIMARY KEY (`id_layered_filter`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_layered_indexable_attribute_group`
--
ALTER TABLE `pscha_layered_indexable_attribute_group`
  ADD PRIMARY KEY (`id_attribute_group`);

--
-- Index pour la table `pscha_layered_indexable_attribute_group_lang_value`
--
ALTER TABLE `pscha_layered_indexable_attribute_group_lang_value`
  ADD PRIMARY KEY (`id_attribute_group`,`id_lang`);

--
-- Index pour la table `pscha_layered_indexable_attribute_lang_value`
--
ALTER TABLE `pscha_layered_indexable_attribute_lang_value`
  ADD PRIMARY KEY (`id_attribute`,`id_lang`);

--
-- Index pour la table `pscha_layered_indexable_feature`
--
ALTER TABLE `pscha_layered_indexable_feature`
  ADD PRIMARY KEY (`id_feature`);

--
-- Index pour la table `pscha_layered_indexable_feature_lang_value`
--
ALTER TABLE `pscha_layered_indexable_feature_lang_value`
  ADD PRIMARY KEY (`id_feature`,`id_lang`);

--
-- Index pour la table `pscha_layered_indexable_feature_value_lang_value`
--
ALTER TABLE `pscha_layered_indexable_feature_value_lang_value`
  ADD PRIMARY KEY (`id_feature_value`,`id_lang`);

--
-- Index pour la table `pscha_layered_price_index`
--
ALTER TABLE `pscha_layered_price_index`
  ADD PRIMARY KEY (`id_product`,`id_currency`,`id_shop`,`id_country`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `price_min` (`price_min`),
  ADD KEY `price_max` (`price_max`);

--
-- Index pour la table `pscha_layered_product_attribute`
--
ALTER TABLE `pscha_layered_product_attribute`
  ADD PRIMARY KEY (`id_attribute`,`id_product`,`id_shop`),
  ADD UNIQUE KEY `id_attribute_group` (`id_attribute_group`,`id_attribute`,`id_product`,`id_shop`);

--
-- Index pour la table `pscha_linksmenutop`
--
ALTER TABLE `pscha_linksmenutop`
  ADD PRIMARY KEY (`id_linksmenutop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_linksmenutop_lang`
--
ALTER TABLE `pscha_linksmenutop_lang`
  ADD KEY `id_linksmenutop` (`id_linksmenutop`,`id_lang`,`id_shop`);

--
-- Index pour la table `pscha_link_block`
--
ALTER TABLE `pscha_link_block`
  ADD PRIMARY KEY (`id_link_block`);

--
-- Index pour la table `pscha_link_block_lang`
--
ALTER TABLE `pscha_link_block_lang`
  ADD PRIMARY KEY (`id_link_block`,`id_lang`);

--
-- Index pour la table `pscha_link_block_shop`
--
ALTER TABLE `pscha_link_block_shop`
  ADD PRIMARY KEY (`id_link_block`,`id_shop`);

--
-- Index pour la table `pscha_log`
--
ALTER TABLE `pscha_log`
  ADD PRIMARY KEY (`id_log`);

--
-- Index pour la table `pscha_mail`
--
ALTER TABLE `pscha_mail`
  ADD PRIMARY KEY (`id_mail`),
  ADD KEY `recipient` (`recipient`(10));

--
-- Index pour la table `pscha_manufacturer`
--
ALTER TABLE `pscha_manufacturer`
  ADD PRIMARY KEY (`id_manufacturer`);

--
-- Index pour la table `pscha_manufacturer_lang`
--
ALTER TABLE `pscha_manufacturer_lang`
  ADD PRIMARY KEY (`id_manufacturer`,`id_lang`);

--
-- Index pour la table `pscha_manufacturer_shop`
--
ALTER TABLE `pscha_manufacturer_shop`
  ADD PRIMARY KEY (`id_manufacturer`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_memcached_servers`
--
ALTER TABLE `pscha_memcached_servers`
  ADD PRIMARY KEY (`id_memcached_server`);

--
-- Index pour la table `pscha_message`
--
ALTER TABLE `pscha_message`
  ADD PRIMARY KEY (`id_message`),
  ADD KEY `message_order` (`id_order`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_employee` (`id_employee`);

--
-- Index pour la table `pscha_message_readed`
--
ALTER TABLE `pscha_message_readed`
  ADD PRIMARY KEY (`id_message`,`id_employee`);

--
-- Index pour la table `pscha_meta`
--
ALTER TABLE `pscha_meta`
  ADD PRIMARY KEY (`id_meta`),
  ADD UNIQUE KEY `page` (`page`);

--
-- Index pour la table `pscha_meta_lang`
--
ALTER TABLE `pscha_meta_lang`
  ADD PRIMARY KEY (`id_meta`,`id_shop`,`id_lang`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_lang` (`id_lang`);

--
-- Index pour la table `pscha_module`
--
ALTER TABLE `pscha_module`
  ADD PRIMARY KEY (`id_module`),
  ADD UNIQUE KEY `name_UNIQUE` (`name`),
  ADD KEY `name` (`name`);

--
-- Index pour la table `pscha_module_access`
--
ALTER TABLE `pscha_module_access`
  ADD PRIMARY KEY (`id_profile`,`id_authorization_role`);

--
-- Index pour la table `pscha_module_carrier`
--
ALTER TABLE `pscha_module_carrier`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_reference`);

--
-- Index pour la table `pscha_module_country`
--
ALTER TABLE `pscha_module_country`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_country`);

--
-- Index pour la table `pscha_module_currency`
--
ALTER TABLE `pscha_module_currency`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_currency`),
  ADD KEY `id_module` (`id_module`);

--
-- Index pour la table `pscha_module_group`
--
ALTER TABLE `pscha_module_group`
  ADD PRIMARY KEY (`id_module`,`id_shop`,`id_group`);

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

--
-- Index pour la table `pscha_module_preference`
--
ALTER TABLE `pscha_module_preference`
  ADD PRIMARY KEY (`id_module_preference`),
  ADD UNIQUE KEY `employee_module` (`id_employee`,`module`);

--
-- Index pour la table `pscha_module_shop`
--
ALTER TABLE `pscha_module_shop`
  ADD PRIMARY KEY (`id_module`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_operating_system`
--
ALTER TABLE `pscha_operating_system`
  ADD PRIMARY KEY (`id_operating_system`);

--
-- Index pour la table `pscha_orders`
--
ALTER TABLE `pscha_orders`
  ADD PRIMARY KEY (`id_order`),
  ADD KEY `reference` (`reference`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `invoice_number` (`invoice_number`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `id_currency` (`id_currency`),
  ADD KEY `id_address_delivery` (`id_address_delivery`),
  ADD KEY `id_address_invoice` (`id_address_invoice`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `current_state` (`current_state`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `date_add` (`date_add`);

--
-- Index pour la table `pscha_order_carrier`
--
ALTER TABLE `pscha_order_carrier`
  ADD PRIMARY KEY (`id_order_carrier`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_carrier` (`id_carrier`),
  ADD KEY `id_order_invoice` (`id_order_invoice`);

--
-- Index pour la table `pscha_order_cart_rule`
--
ALTER TABLE `pscha_order_cart_rule`
  ADD PRIMARY KEY (`id_order_cart_rule`),
  ADD KEY `id_order` (`id_order`),
  ADD KEY `id_cart_rule` (`id_cart_rule`);

--
-- Index pour la table `pscha_order_detail`
--
ALTER TABLE `pscha_order_detail`
  ADD PRIMARY KEY (`id_order_detail`),
  ADD KEY `order_detail_order` (`id_order`),
  ADD KEY `product_id` (`product_id`,`product_attribute_id`),
  ADD KEY `product_attribute_id` (`product_attribute_id`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `id_order_id_order_detail` (`id_order`,`id_order_detail`);

--
-- Index pour la table `pscha_order_detail_tax`
--
ALTER TABLE `pscha_order_detail_tax`
  ADD KEY `id_order_detail` (`id_order_detail`),
  ADD KEY `id_tax` (`id_tax`);

--
-- Index pour la table `pscha_order_history`
--
ALTER TABLE `pscha_order_history`
  ADD PRIMARY KEY (`id_order_history`),
  ADD KEY `order_history_order` (`id_order`),
  ADD KEY `id_employee` (`id_employee`),
  ADD KEY `id_order_state` (`id_order_state`);

--
-- Index pour la table `pscha_order_invoice`
--
ALTER TABLE `pscha_order_invoice`
  ADD PRIMARY KEY (`id_order_invoice`),
  ADD KEY `id_order` (`id_order`);

--
-- Index pour la table `pscha_order_invoice_payment`
--
ALTER TABLE `pscha_order_invoice_payment`
  ADD PRIMARY KEY (`id_order_invoice`,`id_order_payment`),
  ADD KEY `order_payment` (`id_order_payment`),
  ADD KEY `id_order` (`id_order`);

--
-- Index pour la table `pscha_order_invoice_tax`
--
ALTER TABLE `pscha_order_invoice_tax`
  ADD KEY `id_tax` (`id_tax`);

--
-- Index pour la table `pscha_order_message`
--
ALTER TABLE `pscha_order_message`
  ADD PRIMARY KEY (`id_order_message`);

--
-- Index pour la table `pscha_order_message_lang`
--
ALTER TABLE `pscha_order_message_lang`
  ADD PRIMARY KEY (`id_order_message`,`id_lang`);

--
-- Index pour la table `pscha_order_payment`
--
ALTER TABLE `pscha_order_payment`
  ADD PRIMARY KEY (`id_order_payment`),
  ADD KEY `order_reference` (`order_reference`);

--
-- Index pour la table `pscha_order_return`
--
ALTER TABLE `pscha_order_return`
  ADD PRIMARY KEY (`id_order_return`),
  ADD KEY `order_return_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`);

--
-- Index pour la table `pscha_order_return_detail`
--
ALTER TABLE `pscha_order_return_detail`
  ADD PRIMARY KEY (`id_order_return`,`id_order_detail`,`id_customization`);

--
-- Index pour la table `pscha_order_return_state`
--
ALTER TABLE `pscha_order_return_state`
  ADD PRIMARY KEY (`id_order_return_state`);

--
-- Index pour la table `pscha_order_return_state_lang`
--
ALTER TABLE `pscha_order_return_state_lang`
  ADD PRIMARY KEY (`id_order_return_state`,`id_lang`);

--
-- Index pour la table `pscha_order_slip`
--
ALTER TABLE `pscha_order_slip`
  ADD PRIMARY KEY (`id_order_slip`),
  ADD KEY `order_slip_customer` (`id_customer`),
  ADD KEY `id_order` (`id_order`);

--
-- Index pour la table `pscha_order_slip_detail`
--
ALTER TABLE `pscha_order_slip_detail`
  ADD PRIMARY KEY (`id_order_slip`,`id_order_detail`);

--
-- Index pour la table `pscha_order_slip_detail_tax`
--
ALTER TABLE `pscha_order_slip_detail_tax`
  ADD KEY `id_order_slip_detail` (`id_order_slip_detail`),
  ADD KEY `id_tax` (`id_tax`);

--
-- Index pour la table `pscha_order_state`
--
ALTER TABLE `pscha_order_state`
  ADD PRIMARY KEY (`id_order_state`),
  ADD KEY `module_name` (`module_name`);

--
-- Index pour la table `pscha_order_state_lang`
--
ALTER TABLE `pscha_order_state_lang`
  ADD PRIMARY KEY (`id_order_state`,`id_lang`);

--
-- Index pour la table `pscha_pack`
--
ALTER TABLE `pscha_pack`
  ADD PRIMARY KEY (`id_product_pack`,`id_product_item`,`id_product_attribute_item`),
  ADD KEY `product_item` (`id_product_item`,`id_product_attribute_item`);

--
-- Index pour la table `pscha_page`
--
ALTER TABLE `pscha_page`
  ADD PRIMARY KEY (`id_page`),
  ADD KEY `id_page_type` (`id_page_type`),
  ADD KEY `id_object` (`id_object`);

--
-- Index pour la table `pscha_pagenotfound`
--
ALTER TABLE `pscha_pagenotfound`
  ADD PRIMARY KEY (`id_pagenotfound`),
  ADD KEY `date_add` (`date_add`);

--
-- Index pour la table `pscha_page_type`
--
ALTER TABLE `pscha_page_type`
  ADD PRIMARY KEY (`id_page_type`),
  ADD KEY `name` (`name`);

--
-- Index pour la table `pscha_page_viewed`
--
ALTER TABLE `pscha_page_viewed`
  ADD PRIMARY KEY (`id_page`,`id_date_range`,`id_shop`);

--
-- Index pour la table `pscha_product`
--
ALTER TABLE `pscha_product`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `product_supplier` (`id_supplier`),
  ADD KEY `product_manufacturer` (`id_manufacturer`,`id_product`),
  ADD KEY `id_category_default` (`id_category_default`),
  ADD KEY `indexed` (`indexed`),
  ADD KEY `date_add` (`date_add`),
  ADD KEY `state` (`state`,`date_upd`);

--
-- Index pour la table `pscha_product_attachment`
--
ALTER TABLE `pscha_product_attachment`
  ADD PRIMARY KEY (`id_product`,`id_attachment`);

--
-- Index pour la table `pscha_product_attribute`
--
ALTER TABLE `pscha_product_attribute`
  ADD PRIMARY KEY (`id_product_attribute`),
  ADD UNIQUE KEY `product_default` (`id_product`,`default_on`),
  ADD KEY `product_attribute_product` (`id_product`),
  ADD KEY `reference` (`reference`),
  ADD KEY `supplier_reference` (`supplier_reference`),
  ADD KEY `id_product_id_product_attribute` (`id_product_attribute`,`id_product`);

--
-- Index pour la table `pscha_product_attribute_combination`
--
ALTER TABLE `pscha_product_attribute_combination`
  ADD PRIMARY KEY (`id_attribute`,`id_product_attribute`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Index pour la table `pscha_product_attribute_image`
--
ALTER TABLE `pscha_product_attribute_image`
  ADD PRIMARY KEY (`id_product_attribute`,`id_image`),
  ADD KEY `id_image` (`id_image`);

--
-- Index pour la table `pscha_product_attribute_shop`
--
ALTER TABLE `pscha_product_attribute_shop`
  ADD PRIMARY KEY (`id_product_attribute`,`id_shop`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_shop`,`default_on`);

--
-- Index pour la table `pscha_product_carrier`
--
ALTER TABLE `pscha_product_carrier`
  ADD PRIMARY KEY (`id_product`,`id_carrier_reference`,`id_shop`);

--
-- Index pour la table `pscha_product_country_tax`
--
ALTER TABLE `pscha_product_country_tax`
  ADD PRIMARY KEY (`id_product`,`id_country`);

--
-- Index pour la table `pscha_product_download`
--
ALTER TABLE `pscha_product_download`
  ADD PRIMARY KEY (`id_product_download`);

--
-- Index pour la table `pscha_product_group_reduction_cache`
--
ALTER TABLE `pscha_product_group_reduction_cache`
  ADD PRIMARY KEY (`id_product`,`id_group`);

--
-- Index pour la table `pscha_product_lang`
--
ALTER TABLE `pscha_product_lang`
  ADD PRIMARY KEY (`id_product`,`id_shop`,`id_lang`),
  ADD KEY `id_lang` (`id_lang`),
  ADD KEY `name` (`name`);

--
-- Index pour la table `pscha_product_sale`
--
ALTER TABLE `pscha_product_sale`
  ADD PRIMARY KEY (`id_product`),
  ADD KEY `quantity` (`quantity`);

--
-- Index pour la table `pscha_product_shop`
--
ALTER TABLE `pscha_product_shop`
  ADD PRIMARY KEY (`id_product`,`id_shop`),
  ADD KEY `id_category_default` (`id_category_default`),
  ADD KEY `date_add` (`date_add`,`active`,`visibility`),
  ADD KEY `indexed` (`indexed`,`active`,`id_product`);

--
-- Index pour la table `pscha_product_supplier`
--
ALTER TABLE `pscha_product_supplier`
  ADD PRIMARY KEY (`id_product_supplier`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_supplier`),
  ADD KEY `id_supplier` (`id_supplier`,`id_product`);

--
-- Index pour la table `pscha_product_tag`
--
ALTER TABLE `pscha_product_tag`
  ADD PRIMARY KEY (`id_product`,`id_tag`),
  ADD KEY `id_tag` (`id_tag`),
  ADD KEY `id_lang` (`id_lang`,`id_tag`);

--
-- Index pour la table `pscha_profile`
--
ALTER TABLE `pscha_profile`
  ADD PRIMARY KEY (`id_profile`);

--
-- Index pour la table `pscha_profile_lang`
--
ALTER TABLE `pscha_profile_lang`
  ADD PRIMARY KEY (`id_profile`,`id_lang`);

--
-- Index pour la table `pscha_pscheckout_order_matrice`
--
ALTER TABLE `pscha_pscheckout_order_matrice`
  ADD PRIMARY KEY (`id_order_matrice`);

--
-- Index pour la table `pscha_psgdpr_consent`
--
ALTER TABLE `pscha_psgdpr_consent`
  ADD PRIMARY KEY (`id_gdpr_consent`,`id_module`);

--
-- Index pour la table `pscha_psgdpr_consent_lang`
--
ALTER TABLE `pscha_psgdpr_consent_lang`
  ADD PRIMARY KEY (`id_gdpr_consent`,`id_lang`,`id_shop`);

--
-- Index pour la table `pscha_psgdpr_log`
--
ALTER TABLE `pscha_psgdpr_log`
  ADD PRIMARY KEY (`id_gdpr_log`);

--
-- Index pour la table `pscha_quick_access`
--
ALTER TABLE `pscha_quick_access`
  ADD PRIMARY KEY (`id_quick_access`);

--
-- Index pour la table `pscha_quick_access_lang`
--
ALTER TABLE `pscha_quick_access_lang`
  ADD PRIMARY KEY (`id_quick_access`,`id_lang`);

--
-- Index pour la table `pscha_range_price`
--
ALTER TABLE `pscha_range_price`
  ADD PRIMARY KEY (`id_range_price`),
  ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`);

--
-- Index pour la table `pscha_range_weight`
--
ALTER TABLE `pscha_range_weight`
  ADD PRIMARY KEY (`id_range_weight`),
  ADD UNIQUE KEY `id_carrier` (`id_carrier`,`delimiter1`,`delimiter2`);

--
-- Index pour la table `pscha_reassurance`
--
ALTER TABLE `pscha_reassurance`
  ADD PRIMARY KEY (`id_reassurance`);

--
-- Index pour la table `pscha_reassurance_lang`
--
ALTER TABLE `pscha_reassurance_lang`
  ADD PRIMARY KEY (`id_reassurance`,`id_lang`);

--
-- Index pour la table `pscha_referrer`
--
ALTER TABLE `pscha_referrer`
  ADD PRIMARY KEY (`id_referrer`);

--
-- Index pour la table `pscha_referrer_cache`
--
ALTER TABLE `pscha_referrer_cache`
  ADD PRIMARY KEY (`id_connections_source`,`id_referrer`);

--
-- Index pour la table `pscha_referrer_shop`
--
ALTER TABLE `pscha_referrer_shop`
  ADD PRIMARY KEY (`id_referrer`,`id_shop`);

--
-- Index pour la table `pscha_request_sql`
--
ALTER TABLE `pscha_request_sql`
  ADD PRIMARY KEY (`id_request_sql`);

--
-- Index pour la table `pscha_required_field`
--
ALTER TABLE `pscha_required_field`
  ADD PRIMARY KEY (`id_required_field`),
  ADD KEY `object_name` (`object_name`);

--
-- Index pour la table `pscha_risk`
--
ALTER TABLE `pscha_risk`
  ADD PRIMARY KEY (`id_risk`);

--
-- Index pour la table `pscha_risk_lang`
--
ALTER TABLE `pscha_risk_lang`
  ADD PRIMARY KEY (`id_risk`,`id_lang`),
  ADD KEY `id_risk` (`id_risk`);

--
-- Index pour la table `pscha_search_engine`
--
ALTER TABLE `pscha_search_engine`
  ADD PRIMARY KEY (`id_search_engine`);

--
-- Index pour la table `pscha_search_index`
--
ALTER TABLE `pscha_search_index`
  ADD PRIMARY KEY (`id_word`,`id_product`),
  ADD KEY `id_product` (`id_product`,`weight`);

--
-- Index pour la table `pscha_search_word`
--
ALTER TABLE `pscha_search_word`
  ADD PRIMARY KEY (`id_word`),
  ADD UNIQUE KEY `id_lang` (`id_lang`,`id_shop`,`word`);

--
-- Index pour la table `pscha_sekeyword`
--
ALTER TABLE `pscha_sekeyword`
  ADD PRIMARY KEY (`id_sekeyword`);

--
-- Index pour la table `pscha_shop`
--
ALTER TABLE `pscha_shop`
  ADD PRIMARY KEY (`id_shop`),
  ADD KEY `IDX_CE15A07FF5C9E40` (`id_shop_group`);

--
-- Index pour la table `pscha_shop_group`
--
ALTER TABLE `pscha_shop_group`
  ADD PRIMARY KEY (`id_shop_group`);

--
-- Index pour la table `pscha_shop_url`
--
ALTER TABLE `pscha_shop_url`
  ADD PRIMARY KEY (`id_shop_url`),
  ADD UNIQUE KEY `full_shop_url` (`domain`,`physical_uri`,`virtual_uri`),
  ADD UNIQUE KEY `full_shop_url_ssl` (`domain_ssl`,`physical_uri`,`virtual_uri`),
  ADD KEY `id_shop` (`id_shop`,`main`);

--
-- Index pour la table `pscha_smarty_cache`
--
ALTER TABLE `pscha_smarty_cache`
  ADD PRIMARY KEY (`id_smarty_cache`),
  ADD KEY `name` (`name`),
  ADD KEY `cache_id` (`cache_id`),
  ADD KEY `modified` (`modified`);

--
-- Index pour la table `pscha_smarty_last_flush`
--
ALTER TABLE `pscha_smarty_last_flush`
  ADD PRIMARY KEY (`type`);

--
-- Index pour la table `pscha_smarty_lazy_cache`
--
ALTER TABLE `pscha_smarty_lazy_cache`
  ADD PRIMARY KEY (`template_hash`,`cache_id`,`compile_id`);

--
-- Index pour la table `pscha_specific_price`
--
ALTER TABLE `pscha_specific_price`
  ADD PRIMARY KEY (`id_specific_price`),
  ADD UNIQUE KEY `id_product_2` (`id_product`,`id_product_attribute`,`id_customer`,`id_cart`,`from`,`to`,`id_shop`,`id_shop_group`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`id_specific_price_rule`),
  ADD KEY `id_product` (`id_product`,`id_shop`,`id_currency`,`id_country`,`id_group`,`id_customer`,`from_quantity`,`from`,`to`),
  ADD KEY `from_quantity` (`from_quantity`),
  ADD KEY `id_specific_price_rule` (`id_specific_price_rule`),
  ADD KEY `id_cart` (`id_cart`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_customer` (`id_customer`),
  ADD KEY `from` (`from`),
  ADD KEY `to` (`to`);

--
-- Index pour la table `pscha_specific_price_priority`
--
ALTER TABLE `pscha_specific_price_priority`
  ADD PRIMARY KEY (`id_specific_price_priority`,`id_product`),
  ADD UNIQUE KEY `id_product` (`id_product`);

--
-- Index pour la table `pscha_specific_price_rule`
--
ALTER TABLE `pscha_specific_price_rule`
  ADD PRIMARY KEY (`id_specific_price_rule`),
  ADD KEY `id_product` (`id_shop`,`id_currency`,`id_country`,`id_group`,`from_quantity`,`from`,`to`);

--
-- Index pour la table `pscha_specific_price_rule_condition`
--
ALTER TABLE `pscha_specific_price_rule_condition`
  ADD PRIMARY KEY (`id_specific_price_rule_condition`),
  ADD KEY `id_specific_price_rule_condition_group` (`id_specific_price_rule_condition_group`);

--
-- Index pour la table `pscha_specific_price_rule_condition_group`
--
ALTER TABLE `pscha_specific_price_rule_condition_group`
  ADD PRIMARY KEY (`id_specific_price_rule_condition_group`,`id_specific_price_rule`);

--
-- Index pour la table `pscha_state`
--
ALTER TABLE `pscha_state`
  ADD PRIMARY KEY (`id_state`),
  ADD KEY `id_country` (`id_country`),
  ADD KEY `name` (`name`),
  ADD KEY `id_zone` (`id_zone`);

--
-- Index pour la table `pscha_statssearch`
--
ALTER TABLE `pscha_statssearch`
  ADD PRIMARY KEY (`id_statssearch`);

--
-- Index pour la table `pscha_stock`
--
ALTER TABLE `pscha_stock`
  ADD PRIMARY KEY (`id_stock`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Index pour la table `pscha_stock_available`
--
ALTER TABLE `pscha_stock_available`
  ADD PRIMARY KEY (`id_stock_available`),
  ADD UNIQUE KEY `product_sqlstock` (`id_product`,`id_product_attribute`,`id_shop`,`id_shop_group`),
  ADD KEY `id_shop` (`id_shop`),
  ADD KEY `id_shop_group` (`id_shop_group`),
  ADD KEY `id_product` (`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`);

--
-- Index pour la table `pscha_stock_mvt`
--
ALTER TABLE `pscha_stock_mvt`
  ADD PRIMARY KEY (`id_stock_mvt`),
  ADD KEY `id_stock` (`id_stock`),
  ADD KEY `id_stock_mvt_reason` (`id_stock_mvt_reason`);

--
-- Index pour la table `pscha_stock_mvt_reason`
--
ALTER TABLE `pscha_stock_mvt_reason`
  ADD PRIMARY KEY (`id_stock_mvt_reason`);

--
-- Index pour la table `pscha_stock_mvt_reason_lang`
--
ALTER TABLE `pscha_stock_mvt_reason_lang`
  ADD PRIMARY KEY (`id_stock_mvt_reason`,`id_lang`);

--
-- Index pour la table `pscha_store`
--
ALTER TABLE `pscha_store`
  ADD PRIMARY KEY (`id_store`);

--
-- Index pour la table `pscha_store_lang`
--
ALTER TABLE `pscha_store_lang`
  ADD PRIMARY KEY (`id_store`,`id_lang`);

--
-- Index pour la table `pscha_store_shop`
--
ALTER TABLE `pscha_store_shop`
  ADD PRIMARY KEY (`id_store`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_supplier`
--
ALTER TABLE `pscha_supplier`
  ADD PRIMARY KEY (`id_supplier`);

--
-- Index pour la table `pscha_supplier_lang`
--
ALTER TABLE `pscha_supplier_lang`
  ADD PRIMARY KEY (`id_supplier`,`id_lang`);

--
-- Index pour la table `pscha_supplier_shop`
--
ALTER TABLE `pscha_supplier_shop`
  ADD PRIMARY KEY (`id_supplier`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_supply_order`
--
ALTER TABLE `pscha_supply_order`
  ADD PRIMARY KEY (`id_supply_order`),
  ADD KEY `id_supplier` (`id_supplier`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `reference` (`reference`);

--
-- Index pour la table `pscha_supply_order_detail`
--
ALTER TABLE `pscha_supply_order_detail`
  ADD PRIMARY KEY (`id_supply_order_detail`),
  ADD KEY `id_supply_order` (`id_supply_order`,`id_product`),
  ADD KEY `id_product_attribute` (`id_product_attribute`),
  ADD KEY `id_product_product_attribute` (`id_product`,`id_product_attribute`);

--
-- Index pour la table `pscha_supply_order_history`
--
ALTER TABLE `pscha_supply_order_history`
  ADD PRIMARY KEY (`id_supply_order_history`),
  ADD KEY `id_supply_order` (`id_supply_order`),
  ADD KEY `id_employee` (`id_employee`),
  ADD KEY `id_state` (`id_state`);

--
-- Index pour la table `pscha_supply_order_receipt_history`
--
ALTER TABLE `pscha_supply_order_receipt_history`
  ADD PRIMARY KEY (`id_supply_order_receipt_history`),
  ADD KEY `id_supply_order_detail` (`id_supply_order_detail`),
  ADD KEY `id_supply_order_state` (`id_supply_order_state`);

--
-- Index pour la table `pscha_supply_order_state`
--
ALTER TABLE `pscha_supply_order_state`
  ADD PRIMARY KEY (`id_supply_order_state`);

--
-- Index pour la table `pscha_supply_order_state_lang`
--
ALTER TABLE `pscha_supply_order_state_lang`
  ADD PRIMARY KEY (`id_supply_order_state`,`id_lang`);

--
-- Index pour la table `pscha_tab`
--
ALTER TABLE `pscha_tab`
  ADD PRIMARY KEY (`id_tab`);

--
-- Index pour la table `pscha_tab_advice`
--
ALTER TABLE `pscha_tab_advice`
  ADD PRIMARY KEY (`id_tab`,`id_advice`);

--
-- Index pour la table `pscha_tab_lang`
--
ALTER TABLE `pscha_tab_lang`
  ADD PRIMARY KEY (`id_tab`,`id_lang`),
  ADD KEY `IDX_F01687AAED47AB56` (`id_tab`),
  ADD KEY `IDX_F01687AABA299860` (`id_lang`);

--
-- Index pour la table `pscha_tab_module_preference`
--
ALTER TABLE `pscha_tab_module_preference`
  ADD PRIMARY KEY (`id_tab_module_preference`),
  ADD UNIQUE KEY `employee_module` (`id_employee`,`id_tab`,`module`);

--
-- Index pour la table `pscha_tag`
--
ALTER TABLE `pscha_tag`
  ADD PRIMARY KEY (`id_tag`),
  ADD KEY `tag_name` (`name`),
  ADD KEY `id_lang` (`id_lang`);

--
-- Index pour la table `pscha_tag_count`
--
ALTER TABLE `pscha_tag_count`
  ADD PRIMARY KEY (`id_group`,`id_tag`),
  ADD KEY `id_group` (`id_group`,`id_lang`,`id_shop`,`counter`);

--
-- Index pour la table `pscha_tax`
--
ALTER TABLE `pscha_tax`
  ADD PRIMARY KEY (`id_tax`);

--
-- Index pour la table `pscha_tax_lang`
--
ALTER TABLE `pscha_tax_lang`
  ADD PRIMARY KEY (`id_tax`,`id_lang`);

--
-- Index pour la table `pscha_tax_rule`
--
ALTER TABLE `pscha_tax_rule`
  ADD PRIMARY KEY (`id_tax_rule`),
  ADD KEY `id_tax_rules_group` (`id_tax_rules_group`),
  ADD KEY `id_tax` (`id_tax`),
  ADD KEY `category_getproducts` (`id_tax_rules_group`,`id_country`,`id_state`,`zipcode_from`);

--
-- Index pour la table `pscha_tax_rules_group`
--
ALTER TABLE `pscha_tax_rules_group`
  ADD PRIMARY KEY (`id_tax_rules_group`);

--
-- Index pour la table `pscha_tax_rules_group_shop`
--
ALTER TABLE `pscha_tax_rules_group_shop`
  ADD PRIMARY KEY (`id_tax_rules_group`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_timezone`
--
ALTER TABLE `pscha_timezone`
  ADD PRIMARY KEY (`id_timezone`);

--
-- Index pour la table `pscha_translation`
--
ALTER TABLE `pscha_translation`
  ADD PRIMARY KEY (`id_translation`),
  ADD KEY `IDX_F556B485BA299860` (`id_lang`),
  ADD KEY `key` (`domain`);

--
-- Index pour la table `pscha_warehouse`
--
ALTER TABLE `pscha_warehouse`
  ADD PRIMARY KEY (`id_warehouse`);

--
-- Index pour la table `pscha_warehouse_carrier`
--
ALTER TABLE `pscha_warehouse_carrier`
  ADD PRIMARY KEY (`id_warehouse`,`id_carrier`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_carrier` (`id_carrier`);

--
-- Index pour la table `pscha_warehouse_product_location`
--
ALTER TABLE `pscha_warehouse_product_location`
  ADD PRIMARY KEY (`id_warehouse_product_location`),
  ADD UNIQUE KEY `id_product` (`id_product`,`id_product_attribute`,`id_warehouse`);

--
-- Index pour la table `pscha_warehouse_shop`
--
ALTER TABLE `pscha_warehouse_shop`
  ADD PRIMARY KEY (`id_warehouse`,`id_shop`),
  ADD KEY `id_warehouse` (`id_warehouse`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_webservice_account`
--
ALTER TABLE `pscha_webservice_account`
  ADD PRIMARY KEY (`id_webservice_account`),
  ADD KEY `key` (`key`);

--
-- Index pour la table `pscha_webservice_account_shop`
--
ALTER TABLE `pscha_webservice_account_shop`
  ADD PRIMARY KEY (`id_webservice_account`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

--
-- Index pour la table `pscha_webservice_permission`
--
ALTER TABLE `pscha_webservice_permission`
  ADD PRIMARY KEY (`id_webservice_permission`),
  ADD UNIQUE KEY `resource_2` (`resource`,`method`,`id_webservice_account`),
  ADD KEY `resource` (`resource`),
  ADD KEY `method` (`method`),
  ADD KEY `id_webservice_account` (`id_webservice_account`);

--
-- Index pour la table `pscha_web_browser`
--
ALTER TABLE `pscha_web_browser`
  ADD PRIMARY KEY (`id_web_browser`);

--
-- Index pour la table `pscha_zone`
--
ALTER TABLE `pscha_zone`
  ADD PRIMARY KEY (`id_zone`);

--
-- Index pour la table `pscha_zone_shop`
--
ALTER TABLE `pscha_zone_shop`
  ADD PRIMARY KEY (`id_zone`,`id_shop`),
  ADD KEY `id_shop` (`id_shop`);

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

--
-- Index pour la table `wpcha_actionscheduler_actions`
--
ALTER TABLE `wpcha_actionscheduler_actions`
  ADD PRIMARY KEY (`action_id`),
  ADD KEY `hook` (`hook`),
  ADD KEY `status` (`status`),
  ADD KEY `scheduled_date_gmt` (`scheduled_date_gmt`),
  ADD KEY `args` (`args`),
  ADD KEY `group_id` (`group_id`),
  ADD KEY `last_attempt_gmt` (`last_attempt_gmt`),
  ADD KEY `claim_id` (`claim_id`);

--
-- Index pour la table `wpcha_actionscheduler_claims`
--
ALTER TABLE `wpcha_actionscheduler_claims`
  ADD PRIMARY KEY (`claim_id`),
  ADD KEY `date_created_gmt` (`date_created_gmt`);

--
-- Index pour la table `wpcha_actionscheduler_groups`
--
ALTER TABLE `wpcha_actionscheduler_groups`
  ADD PRIMARY KEY (`group_id`),
  ADD KEY `slug` (`slug`(191));

--
-- Index pour la table `wpcha_actionscheduler_logs`
--
ALTER TABLE `wpcha_actionscheduler_logs`
  ADD PRIMARY KEY (`log_id`),
  ADD KEY `action_id` (`action_id`),
  ADD KEY `log_date_gmt` (`log_date_gmt`);

--
-- Index pour la table `wpcha_commentmeta`
--
ALTER TABLE `wpcha_commentmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `comment_id` (`comment_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Index pour la table `wpcha_comments`
--
ALTER TABLE `wpcha_comments`
  ADD PRIMARY KEY (`comment_ID`),
  ADD KEY `comment_post_ID` (`comment_post_ID`),
  ADD KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`),
  ADD KEY `comment_date_gmt` (`comment_date_gmt`),
  ADD KEY `comment_parent` (`comment_parent`),
  ADD KEY `comment_author_email` (`comment_author_email`(10)),
  ADD KEY `woo_idx_comment_type` (`comment_type`);

--
-- Index pour la table `wpcha_links`
--
ALTER TABLE `wpcha_links`
  ADD PRIMARY KEY (`link_id`),
  ADD KEY `link_visible` (`link_visible`);

--
-- Index pour la table `wpcha_mailchimp_carts`
--
ALTER TABLE `wpcha_mailchimp_carts`
  ADD PRIMARY KEY (`email`);

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

--
-- Index pour la table `wpcha_options`
--
ALTER TABLE `wpcha_options`
  ADD PRIMARY KEY (`option_id`),
  ADD UNIQUE KEY `option_name` (`option_name`),
  ADD KEY `autoload` (`autoload`);

--
-- Index pour la table `wpcha_postmeta`
--
ALTER TABLE `wpcha_postmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `post_id` (`post_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Index pour la table `wpcha_posts`
--
ALTER TABLE `wpcha_posts`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `post_name` (`post_name`(191)),
  ADD KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
  ADD KEY `post_parent` (`post_parent`),
  ADD KEY `post_author` (`post_author`);

--
-- Index pour la table `wpcha_termmeta`
--
ALTER TABLE `wpcha_termmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `term_id` (`term_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Index pour la table `wpcha_terms`
--
ALTER TABLE `wpcha_terms`
  ADD PRIMARY KEY (`term_id`),
  ADD KEY `slug` (`slug`(191)),
  ADD KEY `name` (`name`(191));

--
-- Index pour la table `wpcha_term_relationships`
--
ALTER TABLE `wpcha_term_relationships`
  ADD PRIMARY KEY (`object_id`,`term_taxonomy_id`),
  ADD KEY `term_taxonomy_id` (`term_taxonomy_id`);

--
-- Index pour la table `wpcha_term_taxonomy`
--
ALTER TABLE `wpcha_term_taxonomy`
  ADD PRIMARY KEY (`term_taxonomy_id`),
  ADD UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`),
  ADD KEY `taxonomy` (`taxonomy`);

--
-- Index pour la table `wpcha_usermeta`
--
ALTER TABLE `wpcha_usermeta`
  ADD PRIMARY KEY (`umeta_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `meta_key` (`meta_key`(191));

--
-- Index pour la table `wpcha_users`
--
ALTER TABLE `wpcha_users`
  ADD PRIMARY KEY (`ID`),
  ADD KEY `user_login_key` (`user_login`),
  ADD KEY `user_nicename` (`user_nicename`),
  ADD KEY `user_email` (`user_email`);

--
-- Index pour la table `wpcha_wc_admin_notes`
--
ALTER TABLE `wpcha_wc_admin_notes`
  ADD PRIMARY KEY (`note_id`);

--
-- Index pour la table `wpcha_wc_admin_note_actions`
--
ALTER TABLE `wpcha_wc_admin_note_actions`
  ADD PRIMARY KEY (`action_id`),
  ADD KEY `note_id` (`note_id`);

--
-- Index pour la table `wpcha_wc_category_lookup`
--
ALTER TABLE `wpcha_wc_category_lookup`
  ADD PRIMARY KEY (`category_tree_id`,`category_id`);

--
-- Index pour la table `wpcha_wc_customer_lookup`
--
ALTER TABLE `wpcha_wc_customer_lookup`
  ADD PRIMARY KEY (`customer_id`),
  ADD UNIQUE KEY `user_id` (`user_id`),
  ADD KEY `email` (`email`);

--
-- Index pour la table `wpcha_wc_download_log`
--
ALTER TABLE `wpcha_wc_download_log`
  ADD PRIMARY KEY (`download_log_id`),
  ADD KEY `permission_id` (`permission_id`),
  ADD KEY `timestamp` (`timestamp`);

--
-- Index pour la table `wpcha_wc_order_coupon_lookup`
--
ALTER TABLE `wpcha_wc_order_coupon_lookup`
  ADD PRIMARY KEY (`order_id`,`coupon_id`),
  ADD KEY `coupon_id` (`coupon_id`),
  ADD KEY `date_created` (`date_created`);

--
-- Index pour la table `wpcha_wc_order_product_lookup`
--
ALTER TABLE `wpcha_wc_order_product_lookup`
  ADD PRIMARY KEY (`order_item_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `product_id` (`product_id`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `date_created` (`date_created`);

--
-- Index pour la table `wpcha_wc_order_stats`
--
ALTER TABLE `wpcha_wc_order_stats`
  ADD PRIMARY KEY (`order_id`),
  ADD KEY `date_created` (`date_created`),
  ADD KEY `customer_id` (`customer_id`),
  ADD KEY `status` (`status`(191));

--
-- Index pour la table `wpcha_wc_order_tax_lookup`
--
ALTER TABLE `wpcha_wc_order_tax_lookup`
  ADD PRIMARY KEY (`order_id`,`tax_rate_id`),
  ADD KEY `tax_rate_id` (`tax_rate_id`),
  ADD KEY `date_created` (`date_created`);

--
-- Index pour la table `wpcha_wc_product_meta_lookup`
--
ALTER TABLE `wpcha_wc_product_meta_lookup`
  ADD PRIMARY KEY (`product_id`),
  ADD KEY `virtual` (`virtual`),
  ADD KEY `downloadable` (`downloadable`),
  ADD KEY `stock_status` (`stock_status`),
  ADD KEY `stock_quantity` (`stock_quantity`),
  ADD KEY `onsale` (`onsale`),
  ADD KEY `min_max_price` (`min_price`,`max_price`);

--
-- Index pour la table `wpcha_wc_tax_rate_classes`
--
ALTER TABLE `wpcha_wc_tax_rate_classes`
  ADD PRIMARY KEY (`tax_rate_class_id`),
  ADD UNIQUE KEY `slug` (`slug`(191));

--
-- Index pour la table `wpcha_wc_webhooks`
--
ALTER TABLE `wpcha_wc_webhooks`
  ADD PRIMARY KEY (`webhook_id`),
  ADD KEY `user_id` (`user_id`);

--
-- Index pour la table `wpcha_woocommerce_api_keys`
--
ALTER TABLE `wpcha_woocommerce_api_keys`
  ADD PRIMARY KEY (`key_id`),
  ADD KEY `consumer_key` (`consumer_key`),
  ADD KEY `consumer_secret` (`consumer_secret`);

--
-- Index pour la table `wpcha_woocommerce_attribute_taxonomies`
--
ALTER TABLE `wpcha_woocommerce_attribute_taxonomies`
  ADD PRIMARY KEY (`attribute_id`),
  ADD KEY `attribute_name` (`attribute_name`(20));

--
-- Index pour la table `wpcha_woocommerce_downloadable_product_permissions`
--
ALTER TABLE `wpcha_woocommerce_downloadable_product_permissions`
  ADD PRIMARY KEY (`permission_id`),
  ADD KEY `download_order_key_product` (`product_id`,`order_id`,`order_key`(16),`download_id`),
  ADD KEY `download_order_product` (`download_id`,`order_id`,`product_id`),
  ADD KEY `order_id` (`order_id`),
  ADD KEY `user_order_remaining_expires` (`user_id`,`order_id`,`downloads_remaining`,`access_expires`);

--
-- Index pour la table `wpcha_woocommerce_log`
--
ALTER TABLE `wpcha_woocommerce_log`
  ADD PRIMARY KEY (`log_id`),
  ADD KEY `level` (`level`);

--
-- Index pour la table `wpcha_woocommerce_order_itemmeta`
--
ALTER TABLE `wpcha_woocommerce_order_itemmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `order_item_id` (`order_item_id`),
  ADD KEY `meta_key` (`meta_key`(32));

--
-- Index pour la table `wpcha_woocommerce_order_items`
--
ALTER TABLE `wpcha_woocommerce_order_items`
  ADD PRIMARY KEY (`order_item_id`),
  ADD KEY `order_id` (`order_id`);

--
-- Index pour la table `wpcha_woocommerce_payment_tokenmeta`
--
ALTER TABLE `wpcha_woocommerce_payment_tokenmeta`
  ADD PRIMARY KEY (`meta_id`),
  ADD KEY `payment_token_id` (`payment_token_id`),
  ADD KEY `meta_key` (`meta_key`(32));

--
-- Index pour la table `wpcha_woocommerce_payment_tokens`
--
ALTER TABLE `wpcha_woocommerce_payment_tokens`
  ADD PRIMARY KEY (`token_id`),
  ADD KEY `user_id` (`user_id`);

--
-- Index pour la table `wpcha_woocommerce_sessions`
--
ALTER TABLE `wpcha_woocommerce_sessions`
  ADD PRIMARY KEY (`session_id`),
  ADD UNIQUE KEY `session_key` (`session_key`);

--
-- Index pour la table `wpcha_woocommerce_shipping_zones`
--
ALTER TABLE `wpcha_woocommerce_shipping_zones`
  ADD PRIMARY KEY (`zone_id`);

--
-- Index pour la table `wpcha_woocommerce_shipping_zone_locations`
--
ALTER TABLE `wpcha_woocommerce_shipping_zone_locations`
  ADD PRIMARY KEY (`location_id`),
  ADD KEY `location_id` (`location_id`),
  ADD KEY `location_type_code` (`location_type`(10),`location_code`(20));

--
-- Index pour la table `wpcha_woocommerce_shipping_zone_methods`
--
ALTER TABLE `wpcha_woocommerce_shipping_zone_methods`
  ADD PRIMARY KEY (`instance_id`);

--
-- Index pour la table `wpcha_woocommerce_tax_rates`
--
ALTER TABLE `wpcha_woocommerce_tax_rates`
  ADD PRIMARY KEY (`tax_rate_id`),
  ADD KEY `tax_rate_country` (`tax_rate_country`),
  ADD KEY `tax_rate_state` (`tax_rate_state`(2)),
  ADD KEY `tax_rate_class` (`tax_rate_class`(10)),
  ADD KEY `tax_rate_priority` (`tax_rate_priority`);

--
-- Index pour la table `wpcha_woocommerce_tax_rate_locations`
--
ALTER TABLE `wpcha_woocommerce_tax_rate_locations`
  ADD PRIMARY KEY (`location_id`),
  ADD KEY `tax_rate_id` (`tax_rate_id`),
  ADD KEY `location_type_code` (`location_type`(10),`location_code`(20));

--
-- Index pour la table `zrnyg_action_logs`
--
ALTER TABLE `zrnyg_action_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_id` (`user_id`),
  ADD KEY `idx_user_id_logdate` (`user_id`,`log_date`),
  ADD KEY `idx_user_id_extension` (`user_id`,`extension`),
  ADD KEY `idx_extension_item_id` (`extension`,`item_id`);

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

--
-- Index pour la table `zrnyg_action_logs_users`
--
ALTER TABLE `zrnyg_action_logs_users`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `idx_notify` (`notify`);

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

--
-- Index pour la table `zrnyg_assets`
--
ALTER TABLE `zrnyg_assets`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idx_asset_name` (`name`),
  ADD KEY `idx_lft_rgt` (`lft`,`rgt`),
  ADD KEY `idx_parent_id` (`parent_id`);

--
-- Index pour la table `zrnyg_associations`
--
ALTER TABLE `zrnyg_associations`
  ADD PRIMARY KEY (`context`,`id`),
  ADD KEY `idx_key` (`key`);

--
-- Index pour la table `zrnyg_banners`
--
ALTER TABLE `zrnyg_banners`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_state` (`state`),
  ADD KEY `idx_own_prefix` (`own_prefix`),
  ADD KEY `idx_metakey_prefix` (`metakey_prefix`(100)),
  ADD KEY `idx_banner_catid` (`catid`),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_banner_clients`
--
ALTER TABLE `zrnyg_banner_clients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_own_prefix` (`own_prefix`),
  ADD KEY `idx_metakey_prefix` (`metakey_prefix`(100));

--
-- Index pour la table `zrnyg_banner_tracks`
--
ALTER TABLE `zrnyg_banner_tracks`
  ADD PRIMARY KEY (`track_date`,`track_type`,`banner_id`),
  ADD KEY `idx_track_date` (`track_date`),
  ADD KEY `idx_track_type` (`track_type`),
  ADD KEY `idx_banner_id` (`banner_id`);

--
-- Index pour la table `zrnyg_categories`
--
ALTER TABLE `zrnyg_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cat_idx` (`extension`,`published`,`access`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_path` (`path`(100)),
  ADD KEY `idx_left_right` (`lft`,`rgt`),
  ADD KEY `idx_alias` (`alias`(100)),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_contact_details`
--
ALTER TABLE `zrnyg_contact_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_state` (`published`),
  ADD KEY `idx_catid` (`catid`),
  ADD KEY `idx_createdby` (`created_by`),
  ADD KEY `idx_featured_catid` (`featured`,`catid`),
  ADD KEY `idx_language` (`language`),
  ADD KEY `idx_xreference` (`xreference`);

--
-- Index pour la table `zrnyg_content`
--
ALTER TABLE `zrnyg_content`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_state` (`state`),
  ADD KEY `idx_catid` (`catid`),
  ADD KEY `idx_createdby` (`created_by`),
  ADD KEY `idx_featured_catid` (`featured`,`catid`),
  ADD KEY `idx_language` (`language`),
  ADD KEY `idx_xreference` (`xreference`),
  ADD KEY `idx_alias` (`alias`(191));

--
-- Index pour la table `zrnyg_contentitem_tag_map`
--
ALTER TABLE `zrnyg_contentitem_tag_map`
  ADD UNIQUE KEY `uc_ItemnameTagid` (`type_id`,`content_item_id`,`tag_id`),
  ADD KEY `idx_tag_type` (`tag_id`,`type_id`),
  ADD KEY `idx_date_id` (`tag_date`,`tag_id`),
  ADD KEY `idx_core_content_id` (`core_content_id`);

--
-- Index pour la table `zrnyg_content_frontpage`
--
ALTER TABLE `zrnyg_content_frontpage`
  ADD PRIMARY KEY (`content_id`);

--
-- Index pour la table `zrnyg_content_rating`
--
ALTER TABLE `zrnyg_content_rating`
  ADD PRIMARY KEY (`content_id`);

--
-- Index pour la table `zrnyg_content_types`
--
ALTER TABLE `zrnyg_content_types`
  ADD PRIMARY KEY (`type_id`),
  ADD KEY `idx_alias` (`type_alias`(100));

--
-- Index pour la table `zrnyg_extensions`
--
ALTER TABLE `zrnyg_extensions`
  ADD PRIMARY KEY (`extension_id`),
  ADD KEY `element_clientid` (`element`,`client_id`),
  ADD KEY `element_folder_clientid` (`element`,`folder`,`client_id`),
  ADD KEY `extension` (`type`,`element`,`folder`,`client_id`);

--
-- Index pour la table `zrnyg_fields`
--
ALTER TABLE `zrnyg_fields`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_state` (`state`),
  ADD KEY `idx_created_user_id` (`created_user_id`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_context` (`context`(191)),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_fields_categories`
--
ALTER TABLE `zrnyg_fields_categories`
  ADD PRIMARY KEY (`field_id`,`category_id`);

--
-- Index pour la table `zrnyg_fields_groups`
--
ALTER TABLE `zrnyg_fields_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_state` (`state`),
  ADD KEY `idx_created_by` (`created_by`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_context` (`context`(191)),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_fields_values`
--
ALTER TABLE `zrnyg_fields_values`
  ADD KEY `idx_field_id` (`field_id`),
  ADD KEY `idx_item_id` (`item_id`(191));

--
-- Index pour la table `zrnyg_finder_filters`
--
ALTER TABLE `zrnyg_finder_filters`
  ADD PRIMARY KEY (`filter_id`);

--
-- Index pour la table `zrnyg_finder_links`
--
ALTER TABLE `zrnyg_finder_links`
  ADD PRIMARY KEY (`link_id`),
  ADD KEY `idx_type` (`type_id`),
  ADD KEY `idx_title` (`title`(100)),
  ADD KEY `idx_md5` (`md5sum`),
  ADD KEY `idx_url` (`url`(75)),
  ADD KEY `idx_published_list` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`),
  ADD KEY `idx_published_sale` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`);

--
-- Index pour la table `zrnyg_finder_links_terms0`
--
ALTER TABLE `zrnyg_finder_links_terms0`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms1`
--
ALTER TABLE `zrnyg_finder_links_terms1`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms2`
--
ALTER TABLE `zrnyg_finder_links_terms2`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms3`
--
ALTER TABLE `zrnyg_finder_links_terms3`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms4`
--
ALTER TABLE `zrnyg_finder_links_terms4`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms5`
--
ALTER TABLE `zrnyg_finder_links_terms5`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms6`
--
ALTER TABLE `zrnyg_finder_links_terms6`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms7`
--
ALTER TABLE `zrnyg_finder_links_terms7`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms8`
--
ALTER TABLE `zrnyg_finder_links_terms8`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_terms9`
--
ALTER TABLE `zrnyg_finder_links_terms9`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_termsa`
--
ALTER TABLE `zrnyg_finder_links_termsa`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_termsb`
--
ALTER TABLE `zrnyg_finder_links_termsb`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_termsc`
--
ALTER TABLE `zrnyg_finder_links_termsc`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_termsd`
--
ALTER TABLE `zrnyg_finder_links_termsd`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_termse`
--
ALTER TABLE `zrnyg_finder_links_termse`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_links_termsf`
--
ALTER TABLE `zrnyg_finder_links_termsf`
  ADD PRIMARY KEY (`link_id`,`term_id`),
  ADD KEY `idx_term_weight` (`term_id`,`weight`),
  ADD KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`);

--
-- Index pour la table `zrnyg_finder_taxonomy`
--
ALTER TABLE `zrnyg_finder_taxonomy`
  ADD PRIMARY KEY (`id`),
  ADD KEY `parent_id` (`parent_id`),
  ADD KEY `state` (`state`),
  ADD KEY `ordering` (`ordering`),
  ADD KEY `access` (`access`),
  ADD KEY `idx_parent_published` (`parent_id`,`state`,`access`);

--
-- Index pour la table `zrnyg_finder_taxonomy_map`
--
ALTER TABLE `zrnyg_finder_taxonomy_map`
  ADD PRIMARY KEY (`link_id`,`node_id`),
  ADD KEY `link_id` (`link_id`),
  ADD KEY `node_id` (`node_id`);

--
-- Index pour la table `zrnyg_finder_terms`
--
ALTER TABLE `zrnyg_finder_terms`
  ADD PRIMARY KEY (`term_id`),
  ADD UNIQUE KEY `idx_term` (`term`),
  ADD KEY `idx_term_phrase` (`term`,`phrase`),
  ADD KEY `idx_stem_phrase` (`stem`,`phrase`),
  ADD KEY `idx_soundex_phrase` (`soundex`,`phrase`);

--
-- Index pour la table `zrnyg_finder_terms_common`
--
ALTER TABLE `zrnyg_finder_terms_common`
  ADD KEY `idx_word_lang` (`term`,`language`),
  ADD KEY `idx_lang` (`language`);

--
-- Index pour la table `zrnyg_finder_tokens`
--
ALTER TABLE `zrnyg_finder_tokens`
  ADD KEY `idx_word` (`term`),
  ADD KEY `idx_context` (`context`);

--
-- Index pour la table `zrnyg_finder_tokens_aggregate`
--
ALTER TABLE `zrnyg_finder_tokens_aggregate`
  ADD KEY `token` (`term`),
  ADD KEY `keyword_id` (`term_id`);

--
-- Index pour la table `zrnyg_finder_types`
--
ALTER TABLE `zrnyg_finder_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `title` (`title`);

--
-- Index pour la table `zrnyg_jcomments`
--
ALTER TABLE `zrnyg_jcomments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_userid` (`userid`),
  ADD KEY `idx_source` (`source`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_lang` (`lang`),
  ADD KEY `idx_subscribe` (`subscribe`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_object` (`object_id`,`object_group`,`published`,`date`),
  ADD KEY `idx_path` (`path`,`level`),
  ADD KEY `idx_thread` (`thread_id`);

--
-- Index pour la table `zrnyg_jcomments_blacklist`
--
ALTER TABLE `zrnyg_jcomments_blacklist`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_ip` (`ip`);

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

--
-- Index pour la table `zrnyg_jcomments_mailq`
--
ALTER TABLE `zrnyg_jcomments_mailq`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_priority` (`priority`),
  ADD KEY `idx_attempts` (`attempts`);

--
-- Index pour la table `zrnyg_jcomments_objects`
--
ALTER TABLE `zrnyg_jcomments_objects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_object` (`object_id`,`object_group`,`lang`);

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

--
-- Index pour la table `zrnyg_jcomments_settings`
--
ALTER TABLE `zrnyg_jcomments_settings`
  ADD PRIMARY KEY (`component`,`lang`,`name`);

--
-- Index pour la table `zrnyg_jcomments_smilies`
--
ALTER TABLE `zrnyg_jcomments_smilies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_checkout` (`checked_out`);

--
-- Index pour la table `zrnyg_jcomments_subscriptions`
--
ALTER TABLE `zrnyg_jcomments_subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_object` (`object_id`,`object_group`),
  ADD KEY `idx_lang` (`lang`),
  ADD KEY `idx_source` (`source`),
  ADD KEY `idx_hash` (`hash`);

--
-- Index pour la table `zrnyg_jcomments_version`
--
ALTER TABLE `zrnyg_jcomments_version`
  ADD PRIMARY KEY (`version`);

--
-- Index pour la table `zrnyg_jcomments_votes`
--
ALTER TABLE `zrnyg_jcomments_votes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_comment` (`commentid`,`userid`),
  ADD KEY `idx_user` (`userid`,`date`);

--
-- Index pour la table `zrnyg_languages`
--
ALTER TABLE `zrnyg_languages`
  ADD PRIMARY KEY (`lang_id`),
  ADD UNIQUE KEY `idx_sef` (`sef`),
  ADD UNIQUE KEY `idx_langcode` (`lang_code`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_ordering` (`ordering`);

--
-- Index pour la table `zrnyg_menu`
--
ALTER TABLE `zrnyg_menu`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idx_client_id_parent_id_alias_language` (`client_id`,`parent_id`,`alias`(100),`language`),
  ADD KEY `idx_componentid` (`component_id`,`menutype`,`published`,`access`),
  ADD KEY `idx_menutype` (`menutype`),
  ADD KEY `idx_left_right` (`lft`,`rgt`),
  ADD KEY `idx_alias` (`alias`(100)),
  ADD KEY `idx_path` (`path`(100)),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_menu_types`
--
ALTER TABLE `zrnyg_menu_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idx_menutype` (`menutype`);

--
-- Index pour la table `zrnyg_messages`
--
ALTER TABLE `zrnyg_messages`
  ADD PRIMARY KEY (`message_id`),
  ADD KEY `useridto_state` (`user_id_to`,`state`);

--
-- Index pour la table `zrnyg_messages_cfg`
--
ALTER TABLE `zrnyg_messages_cfg`
  ADD UNIQUE KEY `idx_user_var_name` (`user_id`,`cfg_name`);

--
-- Index pour la table `zrnyg_modules`
--
ALTER TABLE `zrnyg_modules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `published` (`published`,`access`),
  ADD KEY `newsfeeds` (`module`,`published`),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_modules_menu`
--
ALTER TABLE `zrnyg_modules_menu`
  ADD PRIMARY KEY (`moduleid`,`menuid`);

--
-- Index pour la table `zrnyg_newsfeeds`
--
ALTER TABLE `zrnyg_newsfeeds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_state` (`published`),
  ADD KEY `idx_catid` (`catid`),
  ADD KEY `idx_createdby` (`created_by`),
  ADD KEY `idx_language` (`language`),
  ADD KEY `idx_xreference` (`xreference`);

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

--
-- Index pour la table `zrnyg_postinstall_messages`
--
ALTER TABLE `zrnyg_postinstall_messages`
  ADD PRIMARY KEY (`postinstall_message_id`);

--
-- Index pour la table `zrnyg_privacy_consents`
--
ALTER TABLE `zrnyg_privacy_consents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_id` (`user_id`);

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

--
-- Index pour la table `zrnyg_redirect_links`
--
ALTER TABLE `zrnyg_redirect_links`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_old_url` (`old_url`(100)),
  ADD KEY `idx_link_modifed` (`modified_date`);

--
-- Index pour la table `zrnyg_schemas`
--
ALTER TABLE `zrnyg_schemas`
  ADD PRIMARY KEY (`extension_id`,`version_id`);

--
-- Index pour la table `zrnyg_session`
--
ALTER TABLE `zrnyg_session`
  ADD PRIMARY KEY (`session_id`),
  ADD KEY `userid` (`userid`),
  ADD KEY `time` (`time`),
  ADD KEY `client_id_guest` (`client_id`,`guest`);

--
-- Index pour la table `zrnyg_tags`
--
ALTER TABLE `zrnyg_tags`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tag_idx` (`published`,`access`),
  ADD KEY `idx_access` (`access`),
  ADD KEY `idx_checkout` (`checked_out`),
  ADD KEY `idx_path` (`path`(100)),
  ADD KEY `idx_left_right` (`lft`,`rgt`),
  ADD KEY `idx_alias` (`alias`(100)),
  ADD KEY `idx_language` (`language`);

--
-- Index pour la table `zrnyg_template_styles`
--
ALTER TABLE `zrnyg_template_styles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_template` (`template`),
  ADD KEY `idx_client_id` (`client_id`),
  ADD KEY `idx_client_id_home` (`client_id`,`home`);

--
-- Index pour la table `zrnyg_ucm_base`
--
ALTER TABLE `zrnyg_ucm_base`
  ADD PRIMARY KEY (`ucm_id`),
  ADD KEY `idx_ucm_item_id` (`ucm_item_id`),
  ADD KEY `idx_ucm_type_id` (`ucm_type_id`),
  ADD KEY `idx_ucm_language_id` (`ucm_language_id`);

--
-- Index pour la table `zrnyg_ucm_content`
--
ALTER TABLE `zrnyg_ucm_content`
  ADD PRIMARY KEY (`core_content_id`),
  ADD KEY `tag_idx` (`core_state`,`core_access`),
  ADD KEY `idx_access` (`core_access`),
  ADD KEY `idx_alias` (`core_alias`(100)),
  ADD KEY `idx_language` (`core_language`),
  ADD KEY `idx_title` (`core_title`(100)),
  ADD KEY `idx_modified_time` (`core_modified_time`),
  ADD KEY `idx_created_time` (`core_created_time`),
  ADD KEY `idx_content_type` (`core_type_alias`(100)),
  ADD KEY `idx_core_modified_user_id` (`core_modified_user_id`),
  ADD KEY `idx_core_checked_out_user_id` (`core_checked_out_user_id`),
  ADD KEY `idx_core_created_user_id` (`core_created_user_id`),
  ADD KEY `idx_core_type_id` (`core_type_id`);

--
-- Index pour la table `zrnyg_ucm_history`
--
ALTER TABLE `zrnyg_ucm_history`
  ADD PRIMARY KEY (`version_id`),
  ADD KEY `idx_ucm_item_id` (`ucm_type_id`,`ucm_item_id`),
  ADD KEY `idx_save_date` (`save_date`);

--
-- Index pour la table `zrnyg_updates`
--
ALTER TABLE `zrnyg_updates`
  ADD PRIMARY KEY (`update_id`);

--
-- Index pour la table `zrnyg_update_sites`
--
ALTER TABLE `zrnyg_update_sites`
  ADD PRIMARY KEY (`update_site_id`);

--
-- Index pour la table `zrnyg_update_sites_extensions`
--
ALTER TABLE `zrnyg_update_sites_extensions`
  ADD PRIMARY KEY (`update_site_id`,`extension_id`);

--
-- Index pour la table `zrnyg_usergroups`
--
ALTER TABLE `zrnyg_usergroups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idx_usergroup_parent_title_lookup` (`parent_id`,`title`),
  ADD KEY `idx_usergroup_title_lookup` (`title`),
  ADD KEY `idx_usergroup_adjacency_lookup` (`parent_id`),
  ADD KEY `idx_usergroup_nested_set_lookup` (`lft`,`rgt`) USING BTREE;

--
-- Index pour la table `zrnyg_users`
--
ALTER TABLE `zrnyg_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idx_username` (`username`),
  ADD KEY `idx_name` (`name`(100)),
  ADD KEY `idx_block` (`block`),
  ADD KEY `email` (`email`);

--
-- Index pour la table `zrnyg_user_keys`
--
ALTER TABLE `zrnyg_user_keys`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `series` (`series`),
  ADD KEY `user_id` (`user_id`);

--
-- Index pour la table `zrnyg_user_notes`
--
ALTER TABLE `zrnyg_user_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_id` (`user_id`),
  ADD KEY `idx_category_id` (`catid`);

--
-- Index pour la table `zrnyg_user_profiles`
--
ALTER TABLE `zrnyg_user_profiles`
  ADD UNIQUE KEY `idx_user_id_profile_key` (`user_id`,`profile_key`);

--
-- Index pour la table `zrnyg_user_usergroup_map`
--
ALTER TABLE `zrnyg_user_usergroup_map`
  ADD PRIMARY KEY (`user_id`,`group_id`);

--
-- Index pour la table `zrnyg_viewlevels`
--
ALTER TABLE `zrnyg_viewlevels`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idx_assetgroup_title_lookup` (`title`);

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

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

--
-- AUTO_INCREMENT pour la table `articles`
--
ALTER TABLE `articles`
  MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT pour la table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_advice`
--
ALTER TABLE `pscha_advice`
  MODIFY `id_advice` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_attribute`
--
ALTER TABLE `pscha_attribute`
  MODIFY `id_attribute` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT pour la table `pscha_attribute_group`
--
ALTER TABLE `pscha_attribute_group`
  MODIFY `id_attribute_group` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

--
-- AUTO_INCREMENT pour la table `pscha_authorization_role`
--
ALTER TABLE `pscha_authorization_role`
  MODIFY `id_authorization_role` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=797;

--
-- AUTO_INCREMENT pour la table `pscha_badge`
--
ALTER TABLE `pscha_badge`
  MODIFY `id_badge` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=235;

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_category`
--
ALTER TABLE `pscha_category`
  MODIFY `id_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

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

--
-- AUTO_INCREMENT pour la table `pscha_cms_category`
--
ALTER TABLE `pscha_cms_category`
  MODIFY `id_cms_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pscha_cms_category_shop`
--
ALTER TABLE `pscha_cms_category_shop`
  MODIFY `id_cms_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pscha_cms_role`
--
ALTER TABLE `pscha_cms_role`
  MODIFY `id_cms_role` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT pour la table `pscha_condition`
--
ALTER TABLE `pscha_condition`
  MODIFY `id_condition` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=245;

--
-- AUTO_INCREMENT pour la table `pscha_configuration`
--
ALTER TABLE `pscha_configuration`
  MODIFY `id_configuration` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=387;

--
-- AUTO_INCREMENT pour la table `pscha_configuration_kpi`
--
ALTER TABLE `pscha_configuration_kpi`
  MODIFY `id_configuration_kpi` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT pour la table `pscha_connections`
--
ALTER TABLE `pscha_connections`
  MODIFY `id_connections` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=421;

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

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

--
-- AUTO_INCREMENT pour la table `pscha_country`
--
ALTER TABLE `pscha_country`
  MODIFY `id_country` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=245;

--
-- AUTO_INCREMENT pour la table `pscha_currency`
--
ALTER TABLE `pscha_currency`
  MODIFY `id_currency` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

--
-- AUTO_INCREMENT pour la table `pscha_customer_thread`
--
ALTER TABLE `pscha_customer_thread`
  MODIFY `id_customer_thread` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT pour la table `pscha_customization_field`
--
ALTER TABLE `pscha_customization_field`
  MODIFY `id_customization_field` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_employee`
--
ALTER TABLE `pscha_employee`
  MODIFY `id_employee` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT pour la table `pscha_feature_value`
--
ALTER TABLE `pscha_feature_value`
  MODIFY `id_feature_value` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT pour la table `pscha_gender`
--
ALTER TABLE `pscha_gender`
  MODIFY `id_gender` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT pour la table `pscha_group`
--
ALTER TABLE `pscha_group`
  MODIFY `id_group` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pscha_group_reduction`
--
ALTER TABLE `pscha_group_reduction`
  MODIFY `id_group_reduction` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_guest`
--
ALTER TABLE `pscha_guest`
  MODIFY `id_guest` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=421;

--
-- AUTO_INCREMENT pour la table `pscha_homeslider`
--
ALTER TABLE `pscha_homeslider`
  MODIFY `id_homeslider_slides` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pscha_homeslider_slides`
--
ALTER TABLE `pscha_homeslider_slides`
  MODIFY `id_homeslider_slides` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pscha_hook`
--
ALTER TABLE `pscha_hook`
  MODIFY `id_hook` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=461;

--
-- AUTO_INCREMENT pour la table `pscha_hook_alias`
--
ALTER TABLE `pscha_hook_alias`
  MODIFY `id_hook_alias` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=84;

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

--
-- AUTO_INCREMENT pour la table `pscha_image`
--
ALTER TABLE `pscha_image`
  MODIFY `id_image` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT pour la table `pscha_image_type`
--
ALTER TABLE `pscha_image_type`
  MODIFY `id_image_type` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `pscha_import_match`
--
ALTER TABLE `pscha_import_match`
  MODIFY `id_import_match` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_info`
--
ALTER TABLE `pscha_info`
  MODIFY `id_info` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT pour la table `pscha_layered_category`
--
ALTER TABLE `pscha_layered_category`
  MODIFY `id_layered_category` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=97;

--
-- AUTO_INCREMENT pour la table `pscha_layered_filter`
--
ALTER TABLE `pscha_layered_filter`
  MODIFY `id_layered_filter` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_log`
--
ALTER TABLE `pscha_log`
  MODIFY `id_log` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=225;

--
-- AUTO_INCREMENT pour la table `pscha_mail`
--
ALTER TABLE `pscha_mail`
  MODIFY `id_mail` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT pour la table `pscha_memcached_servers`
--
ALTER TABLE `pscha_memcached_servers`
  MODIFY `id_memcached_server` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT pour la table `pscha_meta`
--
ALTER TABLE `pscha_meta`
  MODIFY `id_meta` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;

--
-- AUTO_INCREMENT pour la table `pscha_module`
--
ALTER TABLE `pscha_module`
  MODIFY `id_module` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64;

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

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

--
-- AUTO_INCREMENT pour la table `pscha_operating_system`
--
ALTER TABLE `pscha_operating_system`
  MODIFY `id_operating_system` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

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

--
-- AUTO_INCREMENT pour la table `pscha_order_carrier`
--
ALTER TABLE `pscha_order_carrier`
  MODIFY `id_order_carrier` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

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

--
-- AUTO_INCREMENT pour la table `pscha_order_detail`
--
ALTER TABLE `pscha_order_detail`
  MODIFY `id_order_detail` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `pscha_order_history`
--
ALTER TABLE `pscha_order_history`
  MODIFY `id_order_history` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `pscha_order_invoice`
--
ALTER TABLE `pscha_order_invoice`
  MODIFY `id_order_invoice` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_order_message`
--
ALTER TABLE `pscha_order_message`
  MODIFY `id_order_message` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_order_state`
--
ALTER TABLE `pscha_order_state`
  MODIFY `id_order_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_product`
--
ALTER TABLE `pscha_product`
  MODIFY `id_product` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT pour la table `pscha_product_attribute`
--
ALTER TABLE `pscha_product_attribute`
  MODIFY `id_product_attribute` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

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

--
-- AUTO_INCREMENT pour la table `pscha_product_supplier`
--
ALTER TABLE `pscha_product_supplier`
  MODIFY `id_product_supplier` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_range_price`
--
ALTER TABLE `pscha_range_price`
  MODIFY `id_range_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pscha_range_weight`
--
ALTER TABLE `pscha_range_weight`
  MODIFY `id_range_weight` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pscha_reassurance`
--
ALTER TABLE `pscha_reassurance`
  MODIFY `id_reassurance` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pscha_reassurance_lang`
--
ALTER TABLE `pscha_reassurance_lang`
  MODIFY `id_reassurance` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_risk`
--
ALTER TABLE `pscha_risk`
  MODIFY `id_risk` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `pscha_search_engine`
--
ALTER TABLE `pscha_search_engine`
  MODIFY `id_search_engine` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT pour la table `pscha_search_word`
--
ALTER TABLE `pscha_search_word`
  MODIFY `id_word` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=687;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_shop_url`
--
ALTER TABLE `pscha_shop_url`
  MODIFY `id_shop_url` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

--
-- AUTO_INCREMENT pour la table `pscha_specific_price_rule_condition`
--
ALTER TABLE `pscha_specific_price_rule_condition`
  MODIFY `id_specific_price_rule_condition` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_specific_price_rule_condition_group`
--
ALTER TABLE `pscha_specific_price_rule_condition_group`
  MODIFY `id_specific_price_rule_condition_group` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_state`
--
ALTER TABLE `pscha_state`
  MODIFY `id_state` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=325;

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

--
-- AUTO_INCREMENT pour la table `pscha_stock`
--
ALTER TABLE `pscha_stock`
  MODIFY `id_stock` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_stock_available`
--
ALTER TABLE `pscha_stock_available`
  MODIFY `id_stock_available` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT pour la table `pscha_stock_mvt`
--
ALTER TABLE `pscha_stock_mvt`
  MODIFY `id_stock_mvt` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_stock_mvt_reason`
--
ALTER TABLE `pscha_stock_mvt_reason`
  MODIFY `id_stock_mvt_reason` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

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

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

--
-- AUTO_INCREMENT pour la table `pscha_supply_order`
--
ALTER TABLE `pscha_supply_order`
  MODIFY `id_supply_order` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_supply_order_detail`
--
ALTER TABLE `pscha_supply_order_detail`
  MODIFY `id_supply_order_detail` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_supply_order_history`
--
ALTER TABLE `pscha_supply_order_history`
  MODIFY `id_supply_order_history` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_supply_order_receipt_history`
--
ALTER TABLE `pscha_supply_order_receipt_history`
  MODIFY `id_supply_order_receipt_history` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_supply_order_state`
--
ALTER TABLE `pscha_supply_order_state`
  MODIFY `id_supply_order_state` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `pscha_tab`
--
ALTER TABLE `pscha_tab`
  MODIFY `id_tab` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=139;

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

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

--
-- AUTO_INCREMENT pour la table `pscha_tax`
--
ALTER TABLE `pscha_tax`
  MODIFY `id_tax` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT pour la table `pscha_tax_rule`
--
ALTER TABLE `pscha_tax_rule`
  MODIFY `id_tax_rule` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=133;

--
-- AUTO_INCREMENT pour la table `pscha_tax_rules_group`
--
ALTER TABLE `pscha_tax_rules_group`
  MODIFY `id_tax_rules_group` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `pscha_timezone`
--
ALTER TABLE `pscha_timezone`
  MODIFY `id_timezone` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=561;

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

--
-- AUTO_INCREMENT pour la table `pscha_warehouse`
--
ALTER TABLE `pscha_warehouse`
  MODIFY `id_warehouse` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pscha_warehouse_product_location`
--
ALTER TABLE `pscha_warehouse_product_location`
  MODIFY `id_warehouse_product_location` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT pour la table `pscha_web_browser`
--
ALTER TABLE `pscha_web_browser`
  MODIFY `id_web_browser` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `pscha_zone`
--
ALTER TABLE `pscha_zone`
  MODIFY `id_zone` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

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

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

--
-- AUTO_INCREMENT pour la table `wpcha_actionscheduler_claims`
--
ALTER TABLE `wpcha_actionscheduler_claims`
  MODIFY `claim_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT pour la table `wpcha_actionscheduler_groups`
--
ALTER TABLE `wpcha_actionscheduler_groups`
  MODIFY `group_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

--
-- AUTO_INCREMENT pour la table `wpcha_comments`
--
ALTER TABLE `wpcha_comments`
  MODIFY `comment_ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

--
-- AUTO_INCREMENT pour la table `wpcha_options`
--
ALTER TABLE `wpcha_options`
  MODIFY `option_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2475;

--
-- AUTO_INCREMENT pour la table `wpcha_postmeta`
--
ALTER TABLE `wpcha_postmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=319;

--
-- AUTO_INCREMENT pour la table `wpcha_posts`
--
ALTER TABLE `wpcha_posts`
  MODIFY `ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT pour la table `wpcha_termmeta`
--
ALTER TABLE `wpcha_termmeta`
  MODIFY `meta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `wpcha_terms`
--
ALTER TABLE `wpcha_terms`
  MODIFY `term_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT pour la table `wpcha_term_taxonomy`
--
ALTER TABLE `wpcha_term_taxonomy`
  MODIFY `term_taxonomy_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT pour la table `wpcha_usermeta`
--
ALTER TABLE `wpcha_usermeta`
  MODIFY `umeta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT pour la table `wpcha_users`
--
ALTER TABLE `wpcha_users`
  MODIFY `ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `wpcha_wc_admin_notes`
--
ALTER TABLE `wpcha_wc_admin_notes`
  MODIFY `note_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

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

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

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

--
-- AUTO_INCREMENT pour la table `wpcha_wc_tax_rate_classes`
--
ALTER TABLE `wpcha_wc_tax_rate_classes`
  MODIFY `tax_rate_class_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `wpcha_woocommerce_shipping_zones`
--
ALTER TABLE `wpcha_woocommerce_shipping_zones`
  MODIFY `zone_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `wpcha_woocommerce_shipping_zone_locations`
--
ALTER TABLE `wpcha_woocommerce_shipping_zone_locations`
  MODIFY `location_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_assets`
--
ALTER TABLE `zrnyg_assets`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=149;

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

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_extensions`
--
ALTER TABLE `zrnyg_extensions`
  MODIFY `extension_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=832;

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_jcomments_custom_bbcodes`
--
ALTER TABLE `zrnyg_jcomments_custom_bbcodes`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

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

--
-- AUTO_INCREMENT pour la table `zrnyg_jcomments_objects`
--
ALTER TABLE `zrnyg_jcomments_objects`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

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

--
-- AUTO_INCREMENT pour la table `zrnyg_jcomments_smilies`
--
ALTER TABLE `zrnyg_jcomments_smilies`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_languages`
--
ALTER TABLE `zrnyg_languages`
  MODIFY `lang_id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_overrider`
--
ALTER TABLE `zrnyg_overrider`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key';

--
-- AUTO_INCREMENT pour la table `zrnyg_postinstall_messages`
--
ALTER TABLE `zrnyg_postinstall_messages`
  MODIFY `postinstall_message_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

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

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

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

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_ucm_content`
--
ALTER TABLE `zrnyg_ucm_content`
  MODIFY `core_content_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `zrnyg_ucm_history`
--
ALTER TABLE `zrnyg_ucm_history`
  MODIFY `version_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=273;

--
-- AUTO_INCREMENT pour la table `zrnyg_updates`
--
ALTER TABLE `zrnyg_updates`
  MODIFY `update_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6120;

--
-- AUTO_INCREMENT pour la table `zrnyg_update_sites`
--
ALTER TABLE `zrnyg_update_sites`
  MODIFY `update_site_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `zrnyg_usergroups`
--
ALTER TABLE `zrnyg_usergroups`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=10;

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

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

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

--
-- AUTO_INCREMENT pour la table `zrnyg_viewlevels`
--
ALTER TABLE `zrnyg_viewlevels`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=7;

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

--
-- Contraintes pour la table `wpcha_wc_download_log`
--
ALTER TABLE `wpcha_wc_download_log`
  ADD CONSTRAINT `fk_wpcha_wc_download_log_permission_id` FOREIGN KEY (`permission_id`) REFERENCES `wpcha_woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE;
COMMIT;

