Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.8.5
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Hôte : localhost:3306
  6. -- Généré le : mar. 23 avr. 2019 à 15:38
  7. -- Version du serveur : 5.7.19
  8. -- Version de PHP : 7.2.2
  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 : `gsb`
  23. --
  24. CREATE DATABASE IF NOT EXISTS `gsb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
  25. USE `gsb`;
  26.  
  27. -- --------------------------------------------------------
  28.  
  29. --
  30. -- Structure de la table `competences`
  31. --
  32.  
  33. CREATE TABLE `competences` (
  34. `comp_id` int(11) NOT NULL,
  35. `comp_userID` int(11) NOT NULL,
  36. `comp_prodID` int(11) NOT NULL,
  37. `comp_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  38. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  39.  
  40. -- --------------------------------------------------------
  41.  
  42. --
  43. -- Structure de la table `formations`
  44. --
  45.  
  46. CREATE TABLE `formations` (
  47. `form_id` int(255) NOT NULL,
  48. `form_prodID` int(11) NOT NULL,
  49. `form_title` varchar(255) NOT NULL,
  50. `form_desc` longtext NOT NULL,
  51. `form_dateDebut` varchar(255) NOT NULL,
  52. `form_dateFin` varchar(255) NOT NULL,
  53. `form_region` varchar(255) NOT NULL,
  54. `form_departement` varchar(255) NOT NULL,
  55. `form_ville` varchar(255) NOT NULL,
  56. `form_finished` int(255) NOT NULL DEFAULT '0',
  57. `form_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  58. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  59.  
  60. -- --------------------------------------------------------
  61.  
  62. --
  63. -- Structure de la table `inscription_formations`
  64. --
  65.  
  66. CREATE TABLE `inscription_formations` (
  67. `ins_id` int(11) NOT NULL,
  68. `ins_formationID` int(11) NOT NULL,
  69. `ins_userID` int(11) NOT NULL,
  70. `ins_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  71. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  72.  
  73. -- --------------------------------------------------------
  74.  
  75. --
  76. -- Structure de la table `logs`
  77. --
  78.  
  79. CREATE TABLE `logs` (
  80. `log_id` int(11) NOT NULL,
  81. `log_userID` int(11) DEFAULT NULL,
  82. `log_action` longtext NOT NULL,
  83. `log_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  84. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  85.  
  86. -- --------------------------------------------------------
  87.  
  88. --
  89. -- Structure de la table `produits`
  90. --
  91.  
  92. CREATE TABLE `produits` (
  93. `prod_id` int(11) NOT NULL,
  94. `prod_name` varchar(255) NOT NULL,
  95. `prod_desc` longtext NOT NULL,
  96. `prod_reference` varchar(255) NOT NULL,
  97. `prod_dureeFormation` varchar(255) NOT NULL,
  98. `prod_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  99. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  100.  
  101. -- --------------------------------------------------------
  102.  
  103. --
  104. -- Structure de la table `roles`
  105. --
  106.  
  107. CREATE TABLE `roles` (
  108. `role_id` int(255) NOT NULL,
  109. `role_name` varchar(255) NOT NULL,
  110. `role_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  111. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  112.  
  113. --
  114. -- Déchargement des données de la table `roles`
  115. --
  116.  
  117. INSERT INTO `roles` (`role_id`, `role_name`, `role_creationDate`) VALUES
  118. (1, 'Administrateur', '2019-04-10 12:59:08'),
  119. (2, 'Moderateur', '2019-04-10 12:59:08'),
  120. (3, 'Visiteur', '2019-04-10 12:59:08'),
  121. (4, 'Chercheur', '2019-04-23 12:41:16');
  122.  
  123. -- --------------------------------------------------------
  124.  
  125. --
  126. -- Structure de la table `utilisateurs`
  127. --
  128.  
  129. CREATE TABLE `utilisateurs` (
  130. `id` int(11) NOT NULL,
  131. `email` varchar(50) NOT NULL,
  132. `login` varchar(50) NOT NULL,
  133. `password` varchar(50) DEFAULT NULL,
  134. `nom` varchar(50) NOT NULL,
  135. `prenom` varchar(50) NOT NULL,
  136. `role_id` int(11) NOT NULL DEFAULT '0',
  137. `region` varchar(50) NOT NULL,
  138. `departement` varchar(50) NOT NULL,
  139. `dateNaissance` varchar(50) NOT NULL,
  140. `firstConnexion` int(11) NOT NULL DEFAULT '0',
  141. `cgu` int(50) NOT NULL DEFAULT '0',
  142. `createdByUser` int(11) DEFAULT NULL,
  143. `creationDate` datetime DEFAULT CURRENT_TIMESTAMP
  144. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  145.  
  146. --
  147. -- Déchargement des données de la table `utilisateurs`
  148. --
  149.  
  150. INSERT INTO `utilisateurs` (`id`, `email`, `login`, `password`, `nom`, `prenom`, `role_id`, `region`, `departement`, `dateNaissance`, `firstConnexion`, `cgu`, `createdByUser`, `creationDate`) VALUES
  151. (2, 'JeSuisunemail@email.com', 'NomPren', 'NomPren', 'JeSuisUnNom', 'JeSuisPrenom', 0, 'île-de-France|11', 'Paris|75', '1994-06-17 22:26:23', 0, 0, 1, '2019-04-06 20:29:09'),
  152. (3, 'Emailunique@gmail.com', '34567GHJ', 'JESUIS', 'Alias', 'Preno', 0, 'île-de-France|11', 'Paris|75', '2019-04-03 22:26:23', 1, 1, 1, '2019-04-07 11:48:11'),
  153. (4, 'jesuisune@mail.com', 'mdpdulogin', 'G!9u2yWV', 'jesuisunnom', 'jesuisunprenom', 0, 'île-de-France|11', 'Paris|75', '2019-04-03 22:26:23', 1, 1, 1, '2019-04-07 14:16:14'),
  154. (5, 'npiplard@gmail.com', 'Nicolas', 'KAqL2cVv7/9qEdUVChSAZLW30fK+wSYk58vq+SZe9WYZjHLJ', 'Piplard', 'Nicolas', 1, 'île-de-France|11', 'Paris|75', '2000-03-23 22:26:23', 1, 1, 1, '2019-04-08 21:42:47'),
  155. (6, 'npiplard@gmail.comm', 'NpiplardM', 'WHK9grWp42sUQQGLHTVGStxGqoPn//XBjMmXfVeZbfeX0Ff1', 'Piplards', 'Nicolass', 1, 'Île-de-France|11', 'Paris|75', '2000-06-24 22:26:23', 0, 0, 1, '2019-04-10 09:00:28'),
  156. (7, 'test@gmail.com', 'NicoTest', 'clyXQC1q/obYLAKmLh4t6Qitbyo/h8WideeKhCkxcGYEm16M', 'hgyehuy', 'iuhiezfze', 0, 'île-de-France|11', 'Paris|75', '2019-03-13 22:26:23', 1, 1, 1, '2019-04-10 09:02:24'),
  157. (8, 'a!bbQ1xS@gmail.com', 'NPTest', 'CSrHLujIewn2fRMRhJREq/Zmw/3MtQ2oLtcSwWmo4Qk9N0+a', 'Npiplard', 'Nicooolas', 0, 'Île-de-France|11', 'Val-d\'Oise|95', '2000-07-08 22:26:23', 1, 1, 1, '2019-04-10 09:26:40'),
  158. (9, 'motdepassedelemail@gmail.com', 'Testdelogin', 'PS9OYYc0VSiMaXHQ7tEcL/zvbP37eYj+TkBwWJUIPDsNAbSV', 'jesuisunnom', 'dzadzadaz', 0, 'île-de-France|11', 'paris|75', '2018-09-27 22:26:23', 0, 0, 1, '2019-04-17 22:20:23');
  159.  
  160. --
  161. -- Index pour les tables déchargées
  162. --
  163.  
  164. --
  165. -- Index pour la table `competences`
  166. --
  167. ALTER TABLE `competences`
  168. ADD PRIMARY KEY (`comp_id`);
  169.  
  170. --
  171. -- Index pour la table `formations`
  172. --
  173. ALTER TABLE `formations`
  174. ADD PRIMARY KEY (`form_id`);
  175.  
  176. --
  177. -- Index pour la table `inscription_formations`
  178. --
  179. ALTER TABLE `inscription_formations`
  180. ADD PRIMARY KEY (`ins_id`);
  181.  
  182. --
  183. -- Index pour la table `logs`
  184. --
  185. ALTER TABLE `logs`
  186. ADD PRIMARY KEY (`log_id`);
  187.  
  188. --
  189. -- Index pour la table `produits`
  190. --
  191. ALTER TABLE `produits`
  192. ADD PRIMARY KEY (`prod_id`);
  193.  
  194. --
  195. -- Index pour la table `roles`
  196. --
  197. ALTER TABLE `roles`
  198. ADD PRIMARY KEY (`role_id`);
  199.  
  200. --
  201. -- Index pour la table `utilisateurs`
  202. --
  203. ALTER TABLE `utilisateurs`
  204. ADD PRIMARY KEY (`id`);
  205.  
  206. --
  207. -- AUTO_INCREMENT pour les tables déchargées
  208. --
  209.  
  210. --
  211. -- AUTO_INCREMENT pour la table `competences`
  212. --
  213. ALTER TABLE `competences`
  214. MODIFY `comp_id` int(11) NOT NULL AUTO_INCREMENT;
  215.  
  216. --
  217. -- AUTO_INCREMENT pour la table `formations`
  218. --
  219. ALTER TABLE `formations`
  220. MODIFY `form_id` int(255) NOT NULL AUTO_INCREMENT;
  221.  
  222. --
  223. -- AUTO_INCREMENT pour la table `inscription_formations`
  224. --
  225. ALTER TABLE `inscription_formations`
  226. MODIFY `ins_id` int(11) NOT NULL AUTO_INCREMENT;
  227.  
  228. --
  229. -- AUTO_INCREMENT pour la table `logs`
  230. --
  231. ALTER TABLE `logs`
  232. MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT;
  233.  
  234. --
  235. -- AUTO_INCREMENT pour la table `produits`
  236. --
  237. ALTER TABLE `produits`
  238. MODIFY `prod_id` int(11) NOT NULL AUTO_INCREMENT;
  239.  
  240. --
  241. -- AUTO_INCREMENT pour la table `roles`
  242. --
  243. ALTER TABLE `roles`
  244. MODIFY `role_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  245.  
  246. --
  247. -- AUTO_INCREMENT pour la table `utilisateurs`
  248. --
  249. ALTER TABLE `utilisateurs`
  250. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  251. COMMIT;
  252.  
  253. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  254. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  255. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement