From 60f12b4a898f66e7024fd430b453ca108ae22a1c Mon Sep 17 00:00:00 2001 From: vbochet <vbochet@gmail.com> Date: Thu, 31 Mar 2016 20:44:40 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20fichier=20de=20cr=C3=A9ation=20de?= =?UTF-8?q?=20la=20BDD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projweb.sql | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 projweb.sql diff --git a/projweb.sql b/projweb.sql new file mode 100644 index 0000000..ce73c38 --- /dev/null +++ b/projweb.sql @@ -0,0 +1,69 @@ +-- phpMyAdmin SQL Dump +-- version 4.5.2 +-- http://www.phpmyadmin.net +-- +-- Client : 127.0.0.1 +-- Généré le : Jeu 31 Mars 2016 à 18:43 +-- Version du serveur : 5.7.9 +-- Version de PHP : 7.0.0 + +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 : `projweb` +-- + +-- -------------------------------------------------------- + +-- +-- Structure de la table `jeux` +-- + +DROP TABLE IF EXISTS `jeux`; +CREATE TABLE IF NOT EXISTS `jeux` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nom` varchar(150) NOT NULL, + `description` varchar(250) NOT NULL, + `slug` varchar(32) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; + +-- +-- Contenu de la table `jeux` +-- + +INSERT INTO `jeux` (`id`, `nom`, `description`, `slug`) VALUES +(1, 'Rencontre Cosmique', 'Jeu de plateau de 3 à 5 joueurs', 'rencontre-cosmique'), +(2, 'Echec', 'Jeu de plateau de 2 joueurs', 'echec'); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `profils` +-- + +DROP TABLE IF EXISTS `profils`; +CREATE TABLE IF NOT EXISTS `profils` ( + `slug` varchar(80) NOT NULL, + `pseudo` varchar(120) NOT NULL, + PRIMARY KEY (`slug`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Contenu de la table `profils` +-- + +INSERT INTO `profils` (`slug`, `pseudo`) VALUES +('nestor', 'Nestor'), +('test', 'Un pseudo de test'); + +/*!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 */; -- GitLab