Guest User

Tables User Joomla 3.8.1

a guest
Oct 22nd, 2017
448
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.7.0
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Hôte : localhost
  6. -- Généré le :  Dim 22 oct. 2017 à 22:58
  7. -- Version du serveur :  10.1.25-MariaDB
  8. -- Version de PHP :  7.1.7
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET AUTOCOMMIT = 0;
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14.  
  15.  
  16. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  17. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  18. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  19. /*!40101 SET NAMES utf8mb4 */;
  20.  
  21. --
  22. -- Base de données :  `joomla`
  23. --
  24.  
  25. -- --------------------------------------------------------
  26.  
  27. --
  28. -- Structure de la table `jv3_usergroups`
  29. --
  30.  
  31. CREATE TABLE `jv3_usergroups` (
  32.   `id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
  33.   `parent_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Adjacency List Reference Id',
  34.   `lft` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
  35.   `rgt` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
  36.   `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  38.  
  39. --
  40. -- Déchargement des données de la table `jv3_usergroups`
  41. --
  42.  
  43. INSERT INTO `jv3_usergroups` (`id`, `parent_id`, `lft`, `rgt`, `title`) VALUES
  44. (1, 0, 1, 18, 'Public'),
  45. (2, 1, 8, 15, 'Enregistré'),
  46. (3, 2, 9, 14, 'Auteur'),
  47. (4, 3, 10, 13, 'Rédacteur'),
  48. (5, 4, 11, 12, 'Validateur'),
  49. (6, 1, 4, 7, 'Gestionnaire'),
  50. (7, 6, 5, 6, 'Administrateur'),
  51. (8, 1, 16, 17, 'Super Utilisateur'),
  52. (9, 1, 2, 3, 'Invité');
  53.  
  54. -- --------------------------------------------------------
  55.  
  56. --
  57. -- Structure de la table `jv3_users`
  58. --
  59.  
  60. CREATE TABLE `jv3_users` (
  61.   `id` int(11) NOT NULL,
  62.   `name` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  63.   `username` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  64.   `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  65.   `password` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  66.   `block` tinyint(4) NOT NULL DEFAULT '0',
  67.   `sendEmail` tinyint(4) DEFAULT '0',
  68.   `registerDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  69.   `lastvisitDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  70.   `activation` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  71.   `params` text COLLATE utf8mb4_unicode_ci NOT NULL,
  72.   `lastResetTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Date of last password reset',
  73.   `resetCount` int(11) NOT NULL DEFAULT '0' COMMENT 'Count of password resets since lastResetTime',
  74.   `otpKey` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Two factor authentication encrypted keys',
  75.   `otep` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'One time emergency passwords',
  76.   `requireReset` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Require user to reset password on next login'
  77. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  78.  
  79. --
  80. -- Déchargement des données de la table `jv3_users`
  81. -- Login : root / Password : root
  82.  
  83. INSERT INTO `jv3_users` (`id`, `name`, `username`, `email`, `password`, `block`, `sendEmail`, `registerDate`, `lastvisitDate`, `activation`, `params`, `lastResetTime`, `resetCount`, `otpKey`, `otep`, `requireReset`) VALUES
  84. (339, 'Super Utilisateur', 'root', 'mail@domaine.com', '$2y$10$XmOIXujzMKRIw2Vy0f50C.d17QCyQu0K/l0f0vrbttqwHal0wjSXe', 0, 1, '2017-10-19 13:36:18', '2017-10-22 22:33:52', '0', '', '0000-00-00 00:00:00', 0, '', '', 0);
  85.  
  86. -- --------------------------------------------------------
  87.  
  88. --
  89. -- Structure de la table `jv3_user_keys`
  90. --
  91.  
  92. CREATE TABLE `jv3_user_keys` (
  93.   `id` int(10) UNSIGNED NOT NULL,
  94.   `user_id` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
  95.   `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  96.   `series` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  97.   `invalid` tinyint(4) NOT NULL,
  98.   `time` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
  99.   `uastring` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
  100. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  101.  
  102. -- --------------------------------------------------------
  103.  
  104. --
  105. -- Structure de la table `jv3_user_notes`
  106. --
  107.  
  108. CREATE TABLE `jv3_user_notes` (
  109.   `id` int(10) UNSIGNED NOT NULL,
  110.   `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  111.   `catid` int(10) UNSIGNED NOT NULL DEFAULT '0',
  112.   `subject` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  113.   `body` text COLLATE utf8mb4_unicode_ci NOT NULL,
  114.   `state` tinyint(3) NOT NULL DEFAULT '0',
  115.   `checked_out` int(10) UNSIGNED NOT NULL DEFAULT '0',
  116.   `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  117.   `created_user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  118.   `created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  119.   `modified_user_id` int(10) UNSIGNED NOT NULL,
  120.   `modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  121.   `review_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  122.   `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  123.   `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'
  124. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  125.  
  126. -- --------------------------------------------------------
  127.  
  128. --
  129. -- Structure de la table `jv3_user_profiles`
  130. --
  131.  
  132. CREATE TABLE `jv3_user_profiles` (
  133.   `user_id` int(11) NOT NULL,
  134.   `profile_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  135.   `profile_value` text COLLATE utf8mb4_unicode_ci NOT NULL,
  136.   `ordering` int(11) NOT NULL DEFAULT '0'
  137. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Simple user profile storage table';
  138.  
  139. -- --------------------------------------------------------
  140.  
  141. --
  142. -- Structure de la table `jv3_user_usergroup_map`
  143. --
  144.  
  145. CREATE TABLE `jv3_user_usergroup_map` (
  146.   `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Foreign Key to #__users.id',
  147.   `group_id` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Foreign Key to #__usergroups.id'
  148. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  149.  
  150. --
  151. -- Déchargement des données de la table `jv3_user_usergroup_map`
  152. --
  153.  
  154. INSERT INTO `jv3_user_usergroup_map` (`user_id`, `group_id`) VALUES
  155. (339, 8);
  156.  
  157. --
  158. -- Index pour les tables déchargées
  159. --
  160.  
  161. --
  162. -- Index pour la table `jv3_usergroups`
  163. --
  164. ALTER TABLE `jv3_usergroups`
  165.   ADD PRIMARY KEY (`id`),
  166.   ADD UNIQUE KEY `idx_usergroup_parent_title_lookup` (`parent_id`,`title`),
  167.   ADD KEY `idx_usergroup_title_lookup` (`title`),
  168.   ADD KEY `idx_usergroup_adjacency_lookup` (`parent_id`),
  169.   ADD KEY `idx_usergroup_nested_set_lookup` (`lft`,`rgt`) USING BTREE;
  170.  
  171. --
  172. -- Index pour la table `jv3_users`
  173. --
  174. ALTER TABLE `jv3_users`
  175.   ADD PRIMARY KEY (`id`),
  176.   ADD KEY `idx_name` (`name`(100)),
  177.   ADD KEY `idx_block` (`block`),
  178.   ADD KEY `username` (`username`),
  179.   ADD KEY `email` (`email`);
  180.  
  181. --
  182. -- Index pour la table `jv3_user_keys`
  183. --
  184. ALTER TABLE `jv3_user_keys`
  185.   ADD PRIMARY KEY (`id`),
  186.   ADD UNIQUE KEY `series` (`series`),
  187.   ADD UNIQUE KEY `series_2` (`series`),
  188.   ADD UNIQUE KEY `series_3` (`series`),
  189.   ADD KEY `user_id` (`user_id`);
  190.  
  191. --
  192. -- Index pour la table `jv3_user_notes`
  193. --
  194. ALTER TABLE `jv3_user_notes`
  195.   ADD PRIMARY KEY (`id`),
  196.   ADD KEY `idx_user_id` (`user_id`),
  197.   ADD KEY `idx_category_id` (`catid`);
  198.  
  199. --
  200. -- Index pour la table `jv3_user_profiles`
  201. --
  202. ALTER TABLE `jv3_user_profiles`
  203.   ADD UNIQUE KEY `idx_user_id_profile_key` (`user_id`,`profile_key`);
  204.  
  205. --
  206. -- Index pour la table `jv3_user_usergroup_map`
  207. --
  208. ALTER TABLE `jv3_user_usergroup_map`
  209.   ADD PRIMARY KEY (`user_id`,`group_id`);
  210.  
  211. --
  212. -- AUTO_INCREMENT pour les tables déchargées
  213. --
  214.  
  215. --
  216. -- AUTO_INCREMENT pour la table `jv3_usergroups`
  217. --
  218. ALTER TABLE `jv3_usergroups`
  219.   MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', AUTO_INCREMENT=10;
  220. --
  221. -- AUTO_INCREMENT pour la table `jv3_users`
  222. --
  223. ALTER TABLE `jv3_users`
  224.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=340;
  225. --
  226. -- AUTO_INCREMENT pour la table `jv3_user_keys`
  227. --
  228. ALTER TABLE `jv3_user_keys`
  229.   MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
  230. --
  231. -- AUTO_INCREMENT pour la table `jv3_user_notes`
  232. --
  233. ALTER TABLE `jv3_user_notes`
  234.   MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;COMMIT;
  235.  
  236. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  237. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  238. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
RAW Paste Data