Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.8.5
- -- https://www.phpmyadmin.net/
- --
- -- Hôte : localhost:3306
- -- Généré le : mar. 23 avr. 2019 à 15:38
- -- Version du serveur : 5.7.19
- -- Version de PHP : 7.2.2
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- START TRANSACTION;
- SET time_zone = "+00:00";
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8mb4 */;
- --
- -- Base de données : `gsb`
- --
- CREATE DATABASE IF NOT EXISTS `gsb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
- USE `gsb`;
- -- --------------------------------------------------------
- --
- -- Structure de la table `competences`
- --
- CREATE TABLE `competences` (
- `comp_id` int(11) NOT NULL,
- `comp_userID` int(11) NOT NULL,
- `comp_prodID` int(11) NOT NULL,
- `comp_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Structure de la table `formations`
- --
- CREATE TABLE `formations` (
- `form_id` int(255) NOT NULL,
- `form_prodID` int(11) NOT NULL,
- `form_title` varchar(255) NOT NULL,
- `form_desc` longtext NOT NULL,
- `form_dateDebut` varchar(255) NOT NULL,
- `form_dateFin` varchar(255) NOT NULL,
- `form_region` varchar(255) NOT NULL,
- `form_departement` varchar(255) NOT NULL,
- `form_ville` varchar(255) NOT NULL,
- `form_finished` int(255) NOT NULL DEFAULT '0',
- `form_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Structure de la table `inscription_formations`
- --
- CREATE TABLE `inscription_formations` (
- `ins_id` int(11) NOT NULL,
- `ins_formationID` int(11) NOT NULL,
- `ins_userID` int(11) NOT NULL,
- `ins_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Structure de la table `logs`
- --
- CREATE TABLE `logs` (
- `log_id` int(11) NOT NULL,
- `log_userID` int(11) DEFAULT NULL,
- `log_action` longtext NOT NULL,
- `log_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Structure de la table `produits`
- --
- CREATE TABLE `produits` (
- `prod_id` int(11) NOT NULL,
- `prod_name` varchar(255) NOT NULL,
- `prod_desc` longtext NOT NULL,
- `prod_reference` varchar(255) NOT NULL,
- `prod_dureeFormation` varchar(255) NOT NULL,
- `prod_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Structure de la table `roles`
- --
- CREATE TABLE `roles` (
- `role_id` int(255) NOT NULL,
- `role_name` varchar(255) NOT NULL,
- `role_creationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- --
- -- Déchargement des données de la table `roles`
- --
- INSERT INTO `roles` (`role_id`, `role_name`, `role_creationDate`) VALUES
- (1, 'Administrateur', '2019-04-10 12:59:08'),
- (2, 'Moderateur', '2019-04-10 12:59:08'),
- (3, 'Visiteur', '2019-04-10 12:59:08'),
- (4, 'Chercheur', '2019-04-23 12:41:16');
- -- --------------------------------------------------------
- --
- -- Structure de la table `utilisateurs`
- --
- CREATE TABLE `utilisateurs` (
- `id` int(11) NOT NULL,
- `email` varchar(50) NOT NULL,
- `login` varchar(50) NOT NULL,
- `password` varchar(50) DEFAULT NULL,
- `nom` varchar(50) NOT NULL,
- `prenom` varchar(50) NOT NULL,
- `role_id` int(11) NOT NULL DEFAULT '0',
- `region` varchar(50) NOT NULL,
- `departement` varchar(50) NOT NULL,
- `dateNaissance` varchar(50) NOT NULL,
- `firstConnexion` int(11) NOT NULL DEFAULT '0',
- `cgu` int(50) NOT NULL DEFAULT '0',
- `createdByUser` int(11) DEFAULT NULL,
- `creationDate` datetime DEFAULT CURRENT_TIMESTAMP
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- --
- -- Déchargement des données de la table `utilisateurs`
- --
- INSERT INTO `utilisateurs` (`id`, `email`, `login`, `password`, `nom`, `prenom`, `role_id`, `region`, `departement`, `dateNaissance`, `firstConnexion`, `cgu`, `createdByUser`, `creationDate`) VALUES
- (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'),
- (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'),
- (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'),
- (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'),
- (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'),
- (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'),
- (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'),
- (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');
- --
- -- Index pour les tables déchargées
- --
- --
- -- Index pour la table `competences`
- --
- ALTER TABLE `competences`
- ADD PRIMARY KEY (`comp_id`);
- --
- -- Index pour la table `formations`
- --
- ALTER TABLE `formations`
- ADD PRIMARY KEY (`form_id`);
- --
- -- Index pour la table `inscription_formations`
- --
- ALTER TABLE `inscription_formations`
- ADD PRIMARY KEY (`ins_id`);
- --
- -- Index pour la table `logs`
- --
- ALTER TABLE `logs`
- ADD PRIMARY KEY (`log_id`);
- --
- -- Index pour la table `produits`
- --
- ALTER TABLE `produits`
- ADD PRIMARY KEY (`prod_id`);
- --
- -- Index pour la table `roles`
- --
- ALTER TABLE `roles`
- ADD PRIMARY KEY (`role_id`);
- --
- -- Index pour la table `utilisateurs`
- --
- ALTER TABLE `utilisateurs`
- ADD PRIMARY KEY (`id`);
- --
- -- AUTO_INCREMENT pour les tables déchargées
- --
- --
- -- AUTO_INCREMENT pour la table `competences`
- --
- ALTER TABLE `competences`
- MODIFY `comp_id` int(11) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT pour la table `formations`
- --
- ALTER TABLE `formations`
- MODIFY `form_id` int(255) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT pour la table `inscription_formations`
- --
- ALTER TABLE `inscription_formations`
- MODIFY `ins_id` int(11) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT pour la table `logs`
- --
- ALTER TABLE `logs`
- MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT pour la table `produits`
- --
- ALTER TABLE `produits`
- MODIFY `prod_id` int(11) NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT pour la table `roles`
- --
- ALTER TABLE `roles`
- MODIFY `role_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
- --
- -- AUTO_INCREMENT pour la table `utilisateurs`
- --
- ALTER TABLE `utilisateurs`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
- COMMIT;
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
- /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
- /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement