-- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Serveur: localhost -- Généré le : Mar 03 Août 2010 à 13:59 -- Version du serveur: 5.1.36 -- Version de PHP: 5.3.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Base de données: `achatsenfolie` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__categorie` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__categorie` ( `id` int(11) NOT NULL AUTO_INCREMENT, `titre` varchar(255) NOT NULL, `description` text NOT NULL, `estDansContact` tinyint(1) NOT NULL DEFAULT '1', `id_categorie` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `nom_unique_par_categorie` (`id_categorie`,`titre`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; -- -- Contenu de la table `achatsenfolie__categorie` -- INSERT INTO `achatsenfolie__categorie` (`id`, `titre`, `description`, `estDansContact`, `id_categorie`) VALUES (1, 'Accueil', '', 1, NULL), (2, 'Informatique', '', 1, NULL), (3, 'DVD/CD', '', 1, NULL), (4, 'Musique Livres', '', 1, NULL), (7, 'Jeux Vidéos', '', 1, NULL), (10, 'PC portable', 'Trouvez votre pc portable parmi l''ensemble des produits présents sur le site. Vous pourrez ainsi profiter des bas prix et de la livraison express proposés sur toutes nos marques pour les pc portable. Comparez les pc portable et faites votre choix, en quelques clics, parmi notre large gamme de produits.c''est rapide, pratique et sûr!', 1, 2), (11, 'Ordinateur bureau', '', 1, 2), (12, 'Logiciel informatique', '', 1, 2); -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__champ` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__champ` ( `id` int(11) NOT NULL AUTO_INCREMENT, `titre` varchar(255) NOT NULL, `type` enum('int','float','string','boolean') NOT NULL, `valeur_defaut` text, `id_type_produit` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `champ_type_produit` (`id_type_produit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__champ` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__choisir` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__choisir` ( `id_option` int(11) NOT NULL, `id_produit` int(11) NOT NULL, `id_produit_commande` int(11) NOT NULL, PRIMARY KEY (`id_option`,`id_produit`,`id_produit_commande`), KEY `choix_produit_commande` (`id_produit`,`id_produit_commande`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `achatsenfolie__choisir` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__document_pdf_produit` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__document_pdf_produit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `fichier` varchar(255) NOT NULL, `type` enum('data sheet','diagram sheet') NOT NULL DEFAULT 'data sheet', `id_produit` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `fichier` (`fichier`), KEY `produit_document_pdf` (`id_produit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__document_pdf_produit` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__groupe` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__groupe` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `description` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__groupe` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__illustration_produit` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__illustration_produit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `titre` varchar(255) NOT NULL, `fichier` varchar(255) NOT NULL, `id_produit` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `fichier` (`fichier`), KEY `produit_illutration` (`id_produit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__illustration_produit` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__interesser_produit` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__interesser_produit` ( `message_contact` int(11) NOT NULL, `produit` int(11) NOT NULL, PRIMARY KEY (`message_contact`,`produit`), KEY `produit_interesser_message_contact` (`produit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `achatsenfolie__interesser_produit` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__message_contact` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__message_contact` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `nom_emeteur` varchar(255) DEFAULT NULL, `societe` varchar(255) NOT NULL, `adresse` varchar(255) DEFAULT NULL, `code_postal` varchar(255) DEFAULT NULL, `ville` varchar(255) DEFAULT NULL, `telephone` varchar(255) DEFAULT NULL, `date_envoi` timestamp NULL DEFAULT NULL, `sujet` varchar(255) NOT NULL, `message` text NOT NULL, `etre_contacter` timestamp NULL DEFAULT NULL, `recevoir_devis` tinyint(1) NOT NULL DEFAULT '0', `est_lu` tinyint(1) NOT NULL DEFAULT '0', `est_envoye` tinyint(1) NOT NULL DEFAULT '0', `est_traite` tinyint(1) NOT NULL DEFAULT '0', `id_utilisateur` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `auteur_message` (`id_utilisateur`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__message_contact` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__option` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__option` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `description` text, `prix` float NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__option` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__produit` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__produit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `description` text NOT NULL, `prix` float NOT NULL, `gamme` enum('basse','moyenne','haute') NOT NULL DEFAULT 'moyenne', `date_modification` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `date_creation` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `afficher_dans_nouveautes` tinyint(1) NOT NULL DEFAULT '1', `afficher_dans_contact` tinyint(1) NOT NULL DEFAULT '1', `est_visible` tinyint(1) NOT NULL DEFAULT '1', `est_disponible` tinyint(1) NOT NULL DEFAULT '1', `id_categorie` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `nom_unique_par_categorie` (`id_categorie`,`nom`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Contenu de la table `achatsenfolie__produit` -- INSERT INTO `achatsenfolie__produit` (`id`, `nom`, `description`, `prix`, `gamme`, `date_modification`, `date_creation`, `afficher_dans_nouveautes`, `afficher_dans_contact`, `est_visible`, `est_disponible`, `id_categorie`) VALUES (3, 'ASUS X70AE-TY003V ', 'equipé d''un puissant processeur double coeur, l''ordinateur portable asus x70ae-ty003v exploite tout le potentiel de microsoft Windows® 7 Edition Familiale Premium et des 4 go de sa mémoire vive pour des applications fluides et stables en toute circonstance.\r\n\r\nce portable x70ae-ty003v d''asus vous offre un grand confort visuel grâce à son écran 17,3" haute définition. design, cet ordinateur conjugue son utilité et son ergonomie avec l''esthétique soigné de son châssis d''un noir de jais.\r\n\r\nle pc x70ae-ty003v dispose de multiples solutions de stockage dont un graveur dvd double couche, un disque dur de 500 go et un lecteur de cartes 4 en 1.\r\n\r\ncompatible wifi, l''ordinateur x70ae-ty003v vous permet d''accéder à internet avec une liberté totale via son interface gigabit ethernet et, ainsi, profiter de la webcam intégrée pour des moments conviviaux en ligne.\r\n\r\nun must.', 489, 'moyenne', '2010-07-21 15:50:03', '0000-00-00 00:00:00', 1, 1, 1, 1, 2), (4, 'ACER Aspire 8530G-654G64Mn', 'vélocité du processeur double coeur amd cadencé à 2,1 ghz et stabilité absolue du système microsoft Windows® 7 Edition Familiale Premium, l''ordinateur aspire 8530g-654g64mn d''acer a tout pour vous séduire !compact et léger, cet acer aspire 8530g vous suit dans tous vos déplacements pour vous offrir un plateau des divertissements numériques de qualité. et à la maison, vous profitez de ses très bonnes performances sur grand écran via ses prises vga et hdmi.disque dur de 640 go.', 649, 'moyenne', '2010-07-21 15:51:08', '0000-00-00 00:00:00', 1, 1, 1, 1, 2), (5, 'COMPAQ Presario CQ61-405ef ', 'optez pour des performances à moindre coût avec le presario cq61-405ef de compaq !\r\n\r\ndoté d''un puissant processeur double coeur et du système d''exploitation microsoft Windows® 7 Edition Familiale Premium, le cq61 405ef vous permet de profiter au mieux de vos applications bureautiques et multimédias. son disque dur de 320 go, son lecteur de cartes 5 en 1 et son graveur dvd double couche vous offrent une grande liberté de stockage et une polyvalence indéniable.\r\n\r\nd''autre part, son écran de 15,6 pouces de diagonale vous apporte un grand confort visuel lors de son utilisation, ce qui est très appréciable pour le visionnage de vidéos par exemple. dans un format portable aux finitions soignées, vos films et vos jeux vidéo vont prendre une nouvelle dimension avec le cq61-405ef !\r\n\r\ndoté d''un port hdmi pour bénéficier de la haute définition directement sur votre téléviseur, ce portable cq61-405ef est fourni avec une suite logicielle exhaustive vous permettant d''exploiter toutes les possibilités de ce notebook.\r\n\r\navec sa connexion wifi et sa webcam avec microphone intégré, le presario cq61-405ef de compaq est capable de répondre à toutes vos attentes, tant professionnelles que personnelles !', 319, 'moyenne', '2010-07-21 15:52:19', '0000-00-00 00:00:00', 1, 1, 1, 1, 2); -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__produit_commande` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__produit_commande` ( `id_produit` int(11) NOT NULL, `id` int(11) NOT NULL, PRIMARY KEY (`id_produit`,`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `achatsenfolie__produit_commande` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__proposer` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__proposer` ( `id_produit` int(11) NOT NULL, `id_option` int(11) NOT NULL, PRIMARY KEY (`id_produit`,`id_option`), KEY `option_proposer_produit` (`id_option`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `achatsenfolie__proposer` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__session` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__session` ( `id` varchar(60) NOT NULL, `ip` mediumtext NOT NULL, `host` varchar(255) NOT NULL, `date_derniere_action` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `date_premiere_action` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `donnees` text, `id_utilisateur` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `session_utilisateur` (`id_utilisateur`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `achatsenfolie__session` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__top_ventes` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__top_ventes` ( `id_topventes` int(11) NOT NULL AUTO_INCREMENT, `titre_topventes` varchar(150) NOT NULL, `description_topventes` text NOT NULL, `images_topventes` varchar(250) NOT NULL, PRIMARY KEY (`id_topventes`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Contenu de la table `achatsenfolie__top_ventes` -- INSERT INTO `achatsenfolie__top_ventes` (`id_topventes`, `titre_topventes`, `description_topventes`, `images_topventes`) VALUES (1, 'edition twilight exeptionnel', 'EDITION DVD Ultime 3 DVD DISPONIBLE MERCREDI PROCHAIN !!!', 'twiligt.jpg'), (2, 'jeux promotion speciale', 'promotion spéciale pour jeux en magasin\r\n2 acheté 1 gratuit', 'jeux.jpg'), (3, 'album photos offre speciale', 'album offre spéciale lancement 24 page format a4', 'photos.jpg'); -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__type_produit` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__type_produit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) NOT NULL, `description` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `nom` (`nom`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Contenu de la table `achatsenfolie__type_produit` -- -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__utilisateur` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__utilisateur` ( `id` int(11) NOT NULL AUTO_INCREMENT, `login` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `nom` varchar(255) DEFAULT NULL, `prenom` varchar(255) DEFAULT NULL, `adresse` varchar(255) DEFAULT NULL, `adresse_livraison` varchar(255) DEFAULT NULL, `ftp_login` varchar(255) DEFAULT NULL, `ftp_password` varchar(255) DEFAULT NULL, `tel_fixe` varchar(10) DEFAULT NULL, `tel_mobile` varchar(10) DEFAULT NULL, `est_actif` tinyint(1) DEFAULT NULL, `est_admin` tinyint(1) NOT NULL DEFAULT '0', `date_modification` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `id_groupe` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `login` (`login`), KEY `groupe_utilisateur` (`id_groupe`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Contenu de la table `achatsenfolie__utilisateur` -- INSERT INTO `achatsenfolie__utilisateur` (`id`, `login`, `password`, `email`, `nom`, `prenom`, `adresse`, `adresse_livraison`, `ftp_login`, `ftp_password`, `tel_fixe`, `tel_mobile`, `est_actif`, `est_admin`, `date_modification`, `id_groupe`) VALUES (1, 'admin', '1a1dc91c907325c69271ddf0c944bc72', 'test_dev@toulouseweb.com', 'Dupond', 'Pierre', 'rue', NULL, NULL, NULL, '0123456789', '0123456789', 1, 1, NULL, NULL), (2, 'user', '1a1dc91c907325c69271ddf0c944bc72', 'test_dev@toulouseweb.com', 'Dupont', 'Paul', 'boulevard', NULL, NULL, NULL, '0123456789', '0123456789', 1, 0, NULL, NULL); -- -------------------------------------------------------- -- -- Structure de la table `achatsenfolie__valeur_champ` -- CREATE TABLE IF NOT EXISTS `achatsenfolie__valeur_champ` ( `id_champ` int(11) NOT NULL, `id_produit` int(11) NOT NULL, `valeur` text, PRIMARY KEY (`id_champ`,`id_produit`), KEY `produit_valeur_champ` (`id_produit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Contenu de la table `achatsenfolie__valeur_champ` -- -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `achatsenfolie__categorie` -- ALTER TABLE `achatsenfolie__categorie` ADD CONSTRAINT `sup_categorie` FOREIGN KEY (`id_categorie`) REFERENCES `achatsenfolie__categorie` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__champ` -- ALTER TABLE `achatsenfolie__champ` ADD CONSTRAINT `champ_type_produit` FOREIGN KEY (`id_type_produit`) REFERENCES `achatsenfolie__type_produit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__choisir` -- ALTER TABLE `achatsenfolie__choisir` ADD CONSTRAINT `choix_option` FOREIGN KEY (`id_option`) REFERENCES `achatsenfolie__option` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `choix_produit_commande` FOREIGN KEY (`id_produit`, `id_produit_commande`) REFERENCES `achatsenfolie__produit_commande` (`id_produit`, `id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__document_pdf_produit` -- ALTER TABLE `achatsenfolie__document_pdf_produit` ADD CONSTRAINT `produit_document_pdf` FOREIGN KEY (`id_produit`) REFERENCES `achatsenfolie__produit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__illustration_produit` -- ALTER TABLE `achatsenfolie__illustration_produit` ADD CONSTRAINT `produit_illutration` FOREIGN KEY (`id_produit`) REFERENCES `achatsenfolie__produit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__interesser_produit` -- ALTER TABLE `achatsenfolie__interesser_produit` ADD CONSTRAINT `message_contact_interesser_produit` FOREIGN KEY (`message_contact`) REFERENCES `achatsenfolie__message_contact` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `produit_interesser_message_contact` FOREIGN KEY (`produit`) REFERENCES `achatsenfolie__produit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__message_contact` -- ALTER TABLE `achatsenfolie__message_contact` ADD CONSTRAINT `auteur_message` FOREIGN KEY (`id_utilisateur`) REFERENCES `achatsenfolie__utilisateur` (`id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__produit` -- ALTER TABLE `achatsenfolie__produit` ADD CONSTRAINT `produit_categorie` FOREIGN KEY (`id_categorie`) REFERENCES `achatsenfolie__categorie` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__produit_commande` -- ALTER TABLE `achatsenfolie__produit_commande` ADD CONSTRAINT `produit_commande_id` FOREIGN KEY (`id_produit`) REFERENCES `achatsenfolie__produit` (`id`) ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__proposer` -- ALTER TABLE `achatsenfolie__proposer` ADD CONSTRAINT `option_proposer_produit` FOREIGN KEY (`id_option`) REFERENCES `achatsenfolie__option` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `produit_proposer_option` FOREIGN KEY (`id_produit`) REFERENCES `achatsenfolie__produit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__session` -- ALTER TABLE `achatsenfolie__session` ADD CONSTRAINT `session_utilisateur` FOREIGN KEY (`id_utilisateur`) REFERENCES `achatsenfolie__utilisateur` (`id`) ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__utilisateur` -- ALTER TABLE `achatsenfolie__utilisateur` ADD CONSTRAINT `groupe_utilisateur` FOREIGN KEY (`id_groupe`) REFERENCES `achatsenfolie__groupe` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Contraintes pour la table `achatsenfolie__valeur_champ` -- ALTER TABLE `achatsenfolie__valeur_champ` ADD CONSTRAINT `champ_valeur` FOREIGN KEY (`id_champ`) REFERENCES `achatsenfolie__champ` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `produit_valeur_champ` FOREIGN KEY (`id_produit`) REFERENCES `achatsenfolie__produit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;