-- phpMyAdmin SQL Dump -- version 3.1.3.1 -- http://www.phpmyadmin.net -- -- Serveur: localhost -- Généré le : Mar 16 Juin 2009 à 21:09 -- Version du serveur: 5.1.33 -- Version de PHP: 5.2.9-2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Base de données: `projet_cuisine` -- -- -------------------------------------------------------- -- -- Structure de la table `composer` -- CREATE TABLE IF NOT EXISTS `composer` ( `Recette` int(11) NOT NULL, `Ingredient` int(11) NOT NULL, `Quantite10pers` varchar(5) NOT NULL, KEY `Recette` (`Recette`), KEY `Ingredient` (`Ingredient`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Contenu de la table `composer` -- INSERT INTO `composer` (`Recette`, `Ingredient`, `Quantite10pers`) VALUES (1, 1, ''), (1, 1, ''), (1, 13, ''), (1, 16, ''), (2, 5, ''), (2, 6, ''), (2, 7, ''), (2, 8, ''), (2, 12, ''), (2, 13, ''), (3, 14, ''), (3, 15, ''), (4, 5, ''), (4, 13, ''), (4, 16, ''), (4, 17, ''), (5, 15, ''), (5, 18, ''), (6, 5, ''), (6, 19, ''), (7, 1, ''), (7, 3, ''), (7, 5, ''), (7, 13, ''); -- -------------------------------------------------------- -- -- Structure de la table `ingredient` -- CREATE TABLE IF NOT EXISTS `ingredient` ( `NumIngredient` int(11) NOT NULL AUTO_INCREMENT, `NomIngredient` varchar(35) NOT NULL, `Unite` varchar(10) DEFAULT NULL, PRIMARY KEY (`NumIngredient`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ; -- -- Contenu de la table `ingredient` -- INSERT INTO `ingredient` (`NumIngredient`, `NomIngredient`, `Unite`) VALUES (1, 'Huile', 'Litre'), (2, 'Poulet entier', 'Pièce'), (3, 'Haricots verts', 'Kilo'), (4, 'Beurre en motte', 'kilo'), (5, 'Beurre en portion', 'Portion'), (6, 'Jambon', 'Kilo'), (7, 'Lardons', 'Kilo'), (8, 'Crème fraiche', 'Litre'), (9, 'Fond blanc de volaille', 'Litre'), (10, 'Lait', 'Litre'), (11, 'Farine', 'Kilo'), (12, 'Pates', 'Kilo'), (13, 'Sel', 'Kilo'), (14, 'Café', 'Kilo'), (15, 'Eau', 'Litre'), (16, 'Moutard', 'Kilo'), (17, 'Lapin', 'Pièce'), (18, 'Thé', 'Kilo'), (19, 'Radis', 'Kilo'); -- -------------------------------------------------------- -- -- Structure de la table `recette` -- CREATE TABLE IF NOT EXISTS `recette` ( `NumRecette` int(11) NOT NULL AUTO_INCREMENT, `NomRecette` varchar(35) NOT NULL, PRIMARY KEY (`NumRecette`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; -- -- Contenu de la table `recette` -- INSERT INTO `recette` (`NumRecette`, `NomRecette`) VALUES (1, 'Poulet roti'), (2, 'Pates à la carbonara'), (3, 'Café'), (4, 'Lapin à la moutarde'), (5, 'Thé'), (6, 'Radis au beurre'), (7, 'Haricots rissolés'); -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `composer` -- ALTER TABLE `composer` ADD CONSTRAINT `composer_ibfk_2` FOREIGN KEY (`Ingredient`) REFERENCES `ingredient` (`NumIngredient`), ADD CONSTRAINT `composer_ibfk_1` FOREIGN KEY (`Recette`) REFERENCES `recette` (`NumRecette`);