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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
| phpMyAdmin SQL Dump
-- version 3.3.9.2
-- <a href="http://www.phpmyadmin.net" target="_blank">http://www.phpmyadmin.net</a>
--
-- Serveur: localhost
-- Généré le : Dim 01 Février 2015 à 01:22
-- Version du serveur: 5.5.9
-- Version de PHP: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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: `administrateur`
--
CREATE DATABASE `administrateur` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `administrateur`;
-- --------------------------------------------------------
--
-- Structure de la table `Mouvement`
--
CREATE TABLE `Mouvement` (
`idarticles` int(11) NOT NULL,
`qt_entree` int(11) NOT NULL,
`qt_sortie` int(11) NOT NULL,
`q_rest` int(11) NOT NULL,
PRIMARY KEY (`idarticles`),
KEY `qt_entree` (`qt_entree`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Mouvement`
--
-- --------------------------------------------------------
--
-- Structure de la table `articles`
--
CREATE TABLE `articles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`designation` varchar(35) NOT NULL,
`reference` tinytext NOT NULL,
`categorie` varchar(35) NOT NULL,
`quantite` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`pachat` float NOT NULL,
`put` float NOT NULL,
PRIMARY KEY (`id`),
KEY `quantite` (`quantite`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Contenu de la table `articles`
--
INSERT INTO `articles` VALUES(1, 'webcam', 'pixel2', 'info', 0, '0000-00-00 00:00:00', 12000, 12500);
INSERT INTO `articles` VALUES(2, 'souris', 'sansfil', 'info', 0, '0000-00-00 00:00:00', 7000, 8000);
INSERT INTO `articles` VALUES(3, 'ecrant plat 19', 'samsung 2prise rca + hdi', 'informatique', 0, '0000-00-00 00:00:00', 75000, 75000);
INSERT INTO `articles` VALUES(4, 'woofer qtec', 'radio 5db rouge-noir', 'informatique', 0, '0000-00-00 00:00:00', 25000, 25000);
INSERT INTO `articles` VALUES(5, 'unite centrale', 'HP dual core 1.8Ghz RAM 3Ghz disque dur 250Giga, couleur gris et noir', 'informatique', 25, '2015-01-25 13:52:43', 55000, 75000);
INSERT INTO `articles` VALUES(6, 'web', '5px rouge-vert', 'informatique', 80, '2015-01-30 19:59:27', 3500, 5000);
INSERT INTO `articles` VALUES(7, 'souris sans fil', 'wireless 25cm noir & gris', 'Informatique', 40, '2015-01-30 19:59:27', 7500, 1000);
INSERT INTO `articles` VALUES(8, 'woofer', '2db 4 baffles noir & gris', 'informatique', 75, '2015-01-30 20:01:40', 22500, 35000);
INSERT INTO `articles` VALUES(9, 'wooffer', '50db 8 baffles noir et biege', 'informatique', 80, '2015-01-30 20:01:40', 32500, 50000);
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(15) NOT NULL,
`pass` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Contenu de la table `user`
--
INSERT INTO `user` VALUES(1, 'admin', 'admin');
--
-- Contraintes pour les tables exportées
--
--
-- Contraintes pour la table `Mouvement`
--
ALTER TABLE `Mouvement`
ADD CONSTRAINT `Mouvement_ibfk_1` FOREIGN KEY (`idarticles`) REFERENCES `articles` (`id`),
ADD CONSTRAINT `Mouvement_ibfk_2` FOREIGN KEY (`qt_entree`) REFERENCES `articles` (`quantite`); |
Partager