-- phpMyAdmin SQL Dump
-- version 2.11.6
-- Serveur: localhost
-- Généré le : Mer 15 Octobre 2008 à 09:13
-- Version du serveur: 5.0.51
-- Version de PHP: 5.2.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Base de données: eurodib
--
-- Structure de la table categorie
CREATE TABLE categorie (
id_cat int(10) unsigned NOT NULL auto_increment,
cat_name varchar(50) NOT NULL,
cat_desc varchar(255) NOT NULL,
PRIMARY KEY (id_cat)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Contenu de la table categorie
INSERT INTO categorie (id_cat, cat_name, cat_desc) VALUES
(1, 'Dishwasher', 'Dishwasher are provided by Lamber and very good.'),
(2, 'Crepes Machine', 'Made in France by Krampouz, that is the original one'),
(3, 'Paninis', 'For good and original sandwichs, choose paninis'),
(4, 'Molds', 'For candy, cake in plenty of differents forms');
--
-- Structure de la table sous_categorie
CREATE TABLE sous_categorie (
id_sous_cat int(10) unsigned NOT NULL auto_increment,
sous_cat_name varchar(50) NOT NULL,
sous_cat_desc varchar(255) NOT NULL,
id_cat int(10) unsigned NOT NULL,
PRIMARY KEY (id_sous_cat),
KEY id_cat (id_cat)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Contenu de la table sous_categorie
INSERT INTO sous_categorie (id_sous_cat, sous_cat_name, sous_cat_desc, id_cat) VALUES
(1, 'Sirman Paninis', 'Original from Italy', 3),
(2, 'Eurodib Paninis', 'Paninis made for Eurodib only', 3),
(3, 'Warner Brother Molds', 'funny and original from WB', 4),
(4, 'Relief Mats', 'For decoration original and funny', 4),
(5, 'Cake Mold', 'For cake of all shape', 4),
(6, 'Jelly Flex Mold', 'For jelly candy', 4),
(7, 'Double Crepes Machines', 'to make it double', 2),
(8, 'Single Crepes Machines', 'one at the time', 2),
(9, 'undercounter dishwasher', 'for undercounter', 1);
--
-- Contraintes pour les tables exportées
--
-- Contraintes pour la table sous_categorie
ALTER TABLE sous_categorie
ADD CONSTRAINT sous_categorie_ibfk_1 FOREIGN KEY (id_cat) REFERENCES categorie (id_cat) ON DELETE CASCADE ON UPDATE CASCADE;