1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| -- Adminer 3.3.3 MySQL dump
SET NAMES utf8;
SET foreign_key_checks = 0;
SET time_zone = 'SYSTEM';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `batiment`;
CREATE TABLE `batiment` (
`id_batiment` int(11) NOT NULL,
`nombatiment` varchar(7) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `commande`;
CREATE TABLE `commande` (
`refcommande` int(11) NOT NULL AUTO_INCREMENT,
`numcommande` int(11) NOT NULL,
`reffournisseur` int(11) NOT NULL,
`datecommande` date NOT NULL,
`datereception` date NOT NULL,
PRIMARY KEY (`refcommande`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `fournisseur`;
CREATE TABLE `fournisseur` (
`reffournisseur` int(11) NOT NULL AUTO_INCREMENT,
`nomfournisseur` varchar(50) NOT NULL,
PRIMARY KEY (`reffournisseur`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `inventaire`;
CREATE TABLE `inventaire` (
`refinventaire` int(11) NOT NULL AUTO_INCREMENT,
`dateinventaire` date NOT NULL,
`refproduit` int(11) NOT NULL,
`refcommande` int(11) NOT NULL,
`unitescommandees` int(11) NOT NULL,
`unitesrecues` int(11) NOT NULL,
`unitesrestantes` int(11) NOT NULL,
PRIMARY KEY (`refinventaire`),
KEY `refcommande` (`refcommande`),
KEY `refproduit` (`refproduit`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `produit`;
CREATE TABLE `produit` (
`refproduit` int(11) NOT NULL AUTO_INCREMENT,
`nomproduit` varchar(55) NOT NULL,
`descriptionproduit` char(150) NOT NULL,
`reference` varchar(55) NOT NULL,
`lot` varchar(55) NOT NULL,
`prixunitaire` int(11) NOT NULL,
`seuilreaprovisionnement` int(11) NOT NULL,
`id_batiment` varchar(11) NOT NULL,
PRIMARY KEY (`refproduit`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- 2015-05-03 10:39:46 |
Partager