Commit 29dcb5c8 authored by thibaut-felten's avatar thibaut-felten

creationBase

parent f1e32d21
SET foreign_key_checks = 0;
drop table if exists USER;
create table USER
(
USER_ID smallint not null AUTO_INCREMENT,
USER_LOGIN varchar(25) not null,
USER_EMAIL varchar(255) not null,
USER_PASSWORD varchar(255),
USER_FIRSTNAME varchar(50) not null,
USER_LASTNAME varchar(50) not null,
USER_ROLE smallint not null,
primary key (USER_ID)
) DEFAULT CHARSET=utf8;
\ No newline at end of file
-- phpMyAdmin SQL Dump
-- version 4.5.4.1
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Lun 23 Novembre 2020 à 11:48
-- Version du serveur : 5.7.11
-- Version de PHP : 7.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 : `dbtest`
--
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE `user` (
`USER_ID` smallint(6) NOT NULL,
`USER_LOGIN` varchar(25) NOT NULL,
`USER_EMAIL` varchar(255) NOT NULL,
`USER_PASSWORD` varchar(255) NOT NULL,
`USER_FIRSTNAME` varchar(50) NOT NULL,
`USER_LASTNAME` varchar(50) NOT NULL,
`USER_ROLE` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Contenu de la table `user`
--
INSERT INTO `user` (`USER_ID`, `USER_LOGIN`, `USER_EMAIL`, `USER_PASSWORD`, `USER_FIRSTNAME`, `USER_LASTNAME`, `USER_ROLE`) VALUES
(1, 'loginRoot3', 'toto@gmail.com', '$2y$12$d.e18TWr661D9/spQRbE/u5HwK1yNUCDSyAlQwVGZLckBZAOofCmy', 'root', 'root', 1),
(4, 'test', 'test@gmail.com', 'test', 'test', 'test', 1),
(5, 'test2', 'test@gmail.com', 'test2', 'test2', 'test2', 1),
(6, 'test2', 'test@gmail.com', 'test2', 'test2', 'test2', 1),
(7, 'test2', 'test@gmail.com', 'test2', 'test2', 'test2', 1),
(8, 'test2', 'test@gmail.com', 'test2', 'test2', 'test2', 1);
--
-- Index pour les tables exportées
--
--
-- Index pour la table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`USER_ID`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `user`
--
ALTER TABLE `user`
MODIFY `USER_ID` smallint(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
/*!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 */;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment