SMMP/config/bdd.sql

70 lines
1.9 KiB
SQL
Executable File

-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Mer 03 Février 2016 à 23:20
-- Version du serveur: 5.5.47-0ubuntu0.14.04.1
-- Version de PHP: 5.5.9-1ubuntu4.14
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 utf8 */;
--
-- Base de données: `stefproject`
--
-- --------------------------------------------------------
--
-- Structure de la table `history`
--
CREATE TABLE IF NOT EXISTS `history` (
`id_history` int(11) NOT NULL AUTO_INCREMENT,
`action` int(11) NOT NULL,
`id_acteur` varchar(20) NOT NULL,
`id_machine` varchar(20) NOT NULL,
PRIMARY KEY (`id_history`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `machine`
--
CREATE TABLE IF NOT EXISTS `machine` (
`id_machine` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(20) NOT NULL,
`name` int(11) NOT NULL,
PRIMARY KEY (`id_machine`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id_user` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(20) NOT NULL,
`username` varchar(30) NOT NULL,
`firstname` varchar(30) NOT NULL,
`lasname` varchar(30) NOT NULL,
`mail` varchar(50) NOT NULL,
`password` varchar(40) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`id_user`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!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 */;