Browse Source

Database added

Ieshi 3 months ago
parent
commit
56c4af7c63
1 changed files with 366 additions and 0 deletions
  1. 366 0
      lemdb.sql

+ 366 - 0
lemdb.sql

@@ -0,0 +1,366 @@
+-- phpMyAdmin SQL Dump
+-- version 4.7.9
+-- https://www.phpmyadmin.net/
+--
+-- Hôte : 127.0.0.1
+-- Généré le :  Dim 16 fév. 2020 à 19:33
+-- Version du serveur :  10.1.31-MariaDB
+-- Version de PHP :  7.2.3
+
+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 :  `lemdb`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `admins`
+--
+
+CREATE TABLE `admins` (
+  `idAdmin` int(11) NOT NULL,
+  `nom` varchar(255) NOT NULL,
+  `prenom` varchar(255) NOT NULL,
+  `pseudo` varchar(255) NOT NULL,
+  `password` varchar(255) NOT NULL,
+  `statut` varchar(10) NOT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `admins`
+--
+
+INSERT INTO `admins` (`idAdmin`, `nom`, `prenom`, `pseudo`, `password`, `statut`) VALUES
+(1, 'CODJO', 'Peniella', 'pcodjo', 'Calais62100', 'SuperAdmin'),
+(2, 'DUPONT', 'Jean', 'jdupont', 'Lieusaint', 'Admin'),
+(5, 'MAMA', 'Pierre', 'pmama', 'Lille', 'Admin'),
+(6, 'papa', 'popo', 'ppapa', 'galle', 'Admin'),
+(7, 'phone', 'pc', 'pphone', 'eilco', 'Admin'),
+(8, 'KOKO', 'Jack', 'jkoko', 'long', 'SuperAdmin'),
+(9, 'bobo', 'baba', 'bbobo', 'Osnelle98@', 'SuperAdmin'),
+(10, 'allo', 'papa', 'babo', 'Myb@by12', 'SuperAdmin');
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `choixreponse`
+--
+
+CREATE TABLE `choixreponse` (
+  `choixreponse_id` int(11) NOT NULL,
+  `libelle` varchar(255) NOT NULL,
+  `question_id` int(11) NOT NULL,
+  `questionnaire_id` int(11) NOT NULL,
+  `question_suivante_id` int(11) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `choixreponse`
+--
+
+INSERT INTO `choixreponse` (`choixreponse_id`, `libelle`, `question_id`, `questionnaire_id`, `question_suivante_id`) VALUES
+(1, 'Oui', 3, 1, 4),
+(2, 'Non', 3, 1, 4),
+(3, 'Basketball', 4, 1, 5),
+(4, 'Football', 4, 1, 5),
+(5, 'Hondball', 4, 1, 5),
+(6, 'estrdrt', 6, 5, 6),
+(7, '\'(e\'rdtrd', 6, 5, 7),
+(8, 'sfkjsemdlfk', 8, 6, 3),
+(9, 'lfehjesflkfs', 8, 6, 3),
+(10, 'eirjzekfcknsf', 9, 6, 4),
+(11, 'zmdl;qùesfl', 9, 6, 4);
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `questionnaires`
+--
+
+CREATE TABLE `questionnaires` (
+  `questionnaire_id` int(11) NOT NULL,
+  `titre` varchar(150) NOT NULL,
+  `dateCreation` datetime NOT NULL,
+  `publie` int(1) NOT NULL,
+  `datePublication` datetime NOT NULL DEFAULT '0001-01-01 00:00:00'
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `questionnaires`
+--
+
+INSERT INTO `questionnaires` (`questionnaire_id`, `titre`, `dateCreation`, `publie`, `datePublication`) VALUES
+(1, 'Questionnaire santé', '2020-01-22 05:00:00', 1, '0001-01-01 00:00:00'),
+(2, 'Questionnaire éducation', '2020-01-15 05:14:00', 1, '0001-01-01 00:00:00'),
+(3, 'Questionnaire eco', '2020-01-11 00:00:00', 1, '0001-01-01 00:00:00'),
+(4, 'dghgjhjk:', '2020-02-14 13:21:52', 1, '3120-06-05 00:00:00'),
+(5, 'mlkmlkmkmlk', '2020-02-14 13:53:04', 1, '2020-02-02 00:00:00'),
+(6, 'testt', '2020-02-16 12:45:04', 1, '2020-02-09 12:48:00');
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `questionnaires_user`
+--
+
+CREATE TABLE `questionnaires_user` (
+  `id` int(11) NOT NULL,
+  `id_questionnaire` int(11) NOT NULL,
+  `id_user` int(11) NOT NULL,
+  `repondu` int(1) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `questionnaires_user`
+--
+
+INSERT INTO `questionnaires_user` (`id`, `id_questionnaire`, `id_user`, `repondu`) VALUES
+(1, 1, 3, 0),
+(2, 2, 3, 0),
+(3, 3, 3, 1),
+(4, 4, 3, 0),
+(5, 5, 3, 0),
+(6, 6, 3, 1),
+(7, 6, 4, 0),
+(8, 6, 5, 0),
+(9, 6, 6, 0),
+(10, 6, 7, 0),
+(11, 6, 8, 0),
+(12, 6, 9, 0),
+(13, 6, 10, 0),
+(14, 6, 11, 0),
+(15, 6, 12, 0),
+(16, 6, 13, 0),
+(17, 6, 14, 0),
+(18, 6, 15, 0),
+(19, 6, 16, 0),
+(20, 6, 17, 0),
+(21, 6, 18, 0),
+(22, 6, 19, 0),
+(23, 6, 20, 0),
+(24, 6, 21, 0),
+(25, 6, 22, 0),
+(26, 6, 23, 0),
+(27, 6, 25, 0),
+(28, 6, 26, 0),
+(29, 6, 27, 0),
+(30, 6, 28, 0),
+(31, 6, 29, 0),
+(32, 6, 30, 0),
+(33, 6, 31, 0),
+(34, 6, 32, 0);
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `questions`
+--
+
+CREATE TABLE `questions` (
+  `question_id` int(11) NOT NULL,
+  `intitule` varchar(255) NOT NULL,
+  `type` int(11) NOT NULL,
+  `ordre` int(11) NOT NULL,
+  `questionnaire_id` int(11) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `questions`
+--
+
+INSERT INTO `questions` (`question_id`, `intitule`, `type`, `ordre`, `questionnaire_id`) VALUES
+(1, 'Exprimez votre ressenti en ce moment.', 1, 1, 1),
+(2, 'En quoi consiste votre repas?', 1, 2, 1),
+(3, 'Etes vous stressé ?', 2, 3, 1),
+(4, 'Quelles activités sportives pratiquez vous?', 3, 4, 1),
+(5, 'lkjklmlk', 1, 1, 5),
+(6, 'lmkmlkmlkml', 3, 2, 5),
+(7, 'blablaaaa', 1, 1, 6),
+(8, 'cooco', 3, 2, 6),
+(9, 'elfesjfnksdlng', 2, 3, 6);
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `reponseuser`
+--
+
+CREATE TABLE `reponseuser` (
+  `reponseuser_id` int(11) NOT NULL,
+  `intitule` text NOT NULL,
+  `question_id` int(11) NOT NULL,
+  `choixreponse_id` int(11) NOT NULL DEFAULT '0',
+  `user_id` int(11) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `reponseuser`
+--
+
+INSERT INTO `reponseuser` (`reponseuser_id`, `intitule`, `question_id`, `choixreponse_id`, `user_id`) VALUES
+(12, 'Non', 3, 2, 3),
+(13, 'Football', 4, 4, 3),
+(14, 'fghjkl', 1, 0, 3),
+(15, 'Basketball', 4, 3, 3),
+(16, 'tyuio', 2, 0, 3),
+(17, 'thj', 2, 0, 3),
+(18, 'Football', 4, 4, 3),
+(19, 'Oui', 3, 1, 3),
+(20, 'Basketball', 4, 3, 3),
+(21, 'erghjk', 1, 0, 3),
+(22, 'Non', 3, 2, 3),
+(23, 'fbn,', 1, 0, 3),
+(24, 'Hondball', 4, 5, 3),
+(25, 'vgh', 2, 0, 3),
+(0, 'lfehjesflkfs', 8, 9, 3),
+(0, 'hhhhh', 7, 0, 3),
+(0, 'zmdl;qùesfl', 9, 11, 3);
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `users`
+--
+
+CREATE TABLE `users` (
+  `user_id` int(11) NOT NULL,
+  `nom` varchar(30) NOT NULL,
+  `prenom` varchar(30) NOT NULL,
+  `sexe` varchar(10) NOT NULL,
+  `categorie` varchar(10) NOT NULL DEFAULT 'ND',
+  `email` varchar(320) NOT NULL,
+  `pass` varchar(40) NOT NULL,
+  `date_creation` datetime NOT NULL,
+  `actif` int(1) NOT NULL DEFAULT '1'
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Déchargement des données de la table `users`
+--
+
+INSERT INTO `users` (`user_id`, `nom`, `prenom`, `sexe`, `categorie`, `email`, `pass`, `date_creation`, `actif`) VALUES
+(3, 'Berrada', 'Z', 'Homme', 'ND', 'test@test.tst', '147538da338b770b61e592afc92b1ee6', '2020-01-17 08:51:49', 1),
+(4, 'rrr', 'hhh', 'femme', 'ND', 'dddd', 'oooo', '2020-01-17 09:37:10', 1),
+(5, 'eee', 'ffff', 'Homme', 'ND', 'ssss', '670da91be64127c', '2020-01-17 10:05:09', 1),
+(6, 'rr', 'rr', 'Homme', 'ND', 'ee@uyy.fr', '437599f1ea3514f', '2020-01-17 11:57:49', 1),
+(7, 'dd', 'ddd', 'Homme', 'ND', 'jlkds@ijo.dss', '50f84daf3a6dfd6', '2020-01-17 18:36:44', 1),
+(8, 'dd', 'ddd', 'Homme', 'ND', 'jlkds@ijo.dss', '50f84daf3a6dfd6', '2020-01-17 18:38:24', 1),
+(9, 'wwww', 'ffffff', 'Femme', 'ND', 'eeeee@fff.mm', '86871b9b1ab33b0', '2020-01-18 08:44:17', 1),
+(10, 'wwww', 'ffffff', 'Femme', 'ND', 'eeeee@fff.mm', '86871b9b1ab33b0', '2020-01-18 08:46:41', 1),
+(11, 'tt', 'tt', 'Femme', 'ND', 'tt@tt.tt', '6cee4618fc4960d', '2020-01-18 08:47:48', 1),
+(12, 'gjkj', 'mklkl', 'Femme', 'ND', 'uhoij@uyg.fr', '594f803b380a413', '2020-01-18 09:48:06', 1),
+(13, 'gjkj', 'mklkl', 'Femme', 'ND', 'uhoij@uyg.fr', '594f803b380a413', '2020-01-18 09:51:23', 1),
+(14, 'aaaz', 'eaze', 'Femme', 'ND', 'ezaaaae@eaaza.fr', '594f803b380a413', '2020-01-18 09:54:12', 1),
+(15, 'fffff', 'rzer', 'Femme', 'ND', 'rzerze@ezrfze.ze', '594f803b380a413', '2020-01-18 09:55:23', 1),
+(16, 'rtyhujikl', 'sdfghjk', 'Femme', 'ND', 'sdfghj@dfghj.hhh', '594f803b380a413', '2020-01-18 10:09:15', 1),
+(17, 'pic1', 'picprenom', 'Homme', 'ND', 'pic@pic.pic', 'pic2019', '2020-01-22 17:15:40', 1),
+(18, 'pppp', 'pppptest', 'Homme', 'ND', 'testy@test.tst', '4d42bf9c18cb041', '2020-01-22 17:23:57', 1),
+(19, 'tttest', 'test', 'Homme', 'ND', 'testt@test.tt', 'testtt', '2020-01-22 18:17:22', 1),
+(20, 'ghjk', 'rtygyh', 'Homme', 'ND', 'fghjbj@rdfgh.hh', 'aaaaaa', '2020-01-25 04:24:16', 1),
+(21, 'rtyuik', 'tyuio', 'Femme', 'ND', 'ttttt@ttt.tt', 'ttttt', '2020-01-25 04:31:55', 1),
+(22, 'sdfghj', 'zqesredfhgvh', 'Homme', 'ND', 'fhgbj@dfhgbh.ft', 'ttttt', '2020-01-26 21:32:29', 1),
+(23, 'dzqdsqs', 'fsdfds', 'Femme', 'ND', 'rzez@fersd.fds', 'testt', '2020-02-05 17:07:51', 1),
+(25, 'ZoneTest', 'ZoneTestP', 'Femme', 'ND', 'testyy@test.tst', '147538da338b770b61e592afc92b1ee6', '2020-02-06 05:13:35', 1),
+(26, 'BTest', 'ZTets', 'Homme', 'ND', 'test2@test.tst', '147538da338b770b61e592afc92b1ee6', '2020-02-06 19:42:27', 0),
+(27, 'tttfvbx', 'hkjhi', 'Femme', 'ND', 'tesnodfgj@gbhnj.ttt', '6cee4618fc4960d184eb7efbd0aa27b5', '2020-02-06 20:07:45', 1),
+(28, 'tttfvbx', 'hkjhi', 'Femme', 'ND', 'tesnodfgj@gbhnj.ttt', '6cee4618fc4960d184eb7efbd0aa27b5', '2020-02-06 20:08:45', 1),
+(29, 'tttfvbx', 'hkjhi', 'Femme', 'ND', 'tesnohjkdfgj@gbhnj.ttt', '6cee4618fc4960d184eb7efbd0aa27b5', '2020-02-06 20:09:18', 1),
+(30, 'ttt', 'dssq', 'Femme', 'ND', 'test3@test.tst', '147538da338b770b61e592afc92b1ee6', '2020-02-07 10:01:14', 1),
+(31, 'testtt', 'efswx', 'Homme', 'ND', 'testt@test.tst', '0decca0a594d4ee80de53226f30f9e99', '2020-02-08 06:42:05', 1),
+(32, 'retrhtjyuhj', 'tytujykuhjk', 'Homme', 'ND', 'tyrtjykguhj@txyjtyujh.ts', '6cee4618fc4960d184eb7efbd0aa27b5', '2020-02-09 16:34:29', 1);
+
+--
+-- Index pour les tables déchargées
+--
+
+--
+-- Index pour la table `admins`
+--
+ALTER TABLE `admins`
+  ADD PRIMARY KEY (`idAdmin`);
+
+--
+-- Index pour la table `choixreponse`
+--
+ALTER TABLE `choixreponse`
+  ADD PRIMARY KEY (`choixreponse_id`);
+
+--
+-- Index pour la table `questionnaires`
+--
+ALTER TABLE `questionnaires`
+  ADD PRIMARY KEY (`questionnaire_id`);
+
+--
+-- Index pour la table `questionnaires_user`
+--
+ALTER TABLE `questionnaires_user`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- Index pour la table `questions`
+--
+ALTER TABLE `questions`
+  ADD PRIMARY KEY (`question_id`);
+
+--
+-- Index pour la table `users`
+--
+ALTER TABLE `users`
+  ADD PRIMARY KEY (`user_id`);
+
+--
+-- AUTO_INCREMENT pour les tables déchargées
+--
+
+--
+-- AUTO_INCREMENT pour la table `admins`
+--
+ALTER TABLE `admins`
+  MODIFY `idAdmin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
+
+--
+-- AUTO_INCREMENT pour la table `choixreponse`
+--
+ALTER TABLE `choixreponse`
+  MODIFY `choixreponse_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
+
+--
+-- AUTO_INCREMENT pour la table `questionnaires`
+--
+ALTER TABLE `questionnaires`
+  MODIFY `questionnaire_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
+
+--
+-- AUTO_INCREMENT pour la table `questionnaires_user`
+--
+ALTER TABLE `questionnaires_user`
+  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
+
+--
+-- AUTO_INCREMENT pour la table `questions`
+--
+ALTER TABLE `questions`
+  MODIFY `question_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
+
+--
+-- AUTO_INCREMENT pour la table `users`
+--
+ALTER TABLE `users`
+  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
+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 */;