0% found this document useful (0 votes)
5 views6 pages

Message

This document is a SQL dump for an 'ecommerce' database, created using phpMyAdmin version 5.2.0. It includes the structure and data for several tables: 'categorie', 'commande', 'ligne_commande', 'produit', and 'utilisateur', along with their respective indexes and constraints. The dump was generated on December 4, 2022, and contains various entries for categories, orders, order lines, products, and users.

Uploaded by

alaindelon0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views6 pages

Message

This document is a SQL dump for an 'ecommerce' database, created using phpMyAdmin version 5.2.0. It includes the structure and data for several tables: 'categorie', 'commande', 'ligne_commande', 'produit', and 'utilisateur', along with their respective indexes and constraints. The dump was generated on December 4, 2022, and contains various entries for categories, orders, order lines, products, and users.

Uploaded by

alaindelon0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

-- phpMyAdmin SQL Dump

-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 04, 2022 at 04:05 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.29

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


START TRANSACTION;
SET time_zone = "+00:00";

/*!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 utf8mb4 */;

--
-- Database: `ecommerce`
--

-- --------------------------------------------------------

--
-- Table structure for table `categorie`
--

CREATE TABLE `categorie` (


`id` int(11) NOT NULL,
`libelle` varchar(100) NOT NULL,
`description` varchar(255) NOT NULL,
`date_creation` datetime NOT NULL DEFAULT current_timestamp(),
`icone` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `categorie`
--

INSERT INTO `categorie` (`id`, `libelle`, `description`, `date_creation`, `icone`)


VALUES
(1, 'Fruits', 'La catégorie des fruits.', '2022-10-31 20:51:03', 'fa-solid fa-
apple-whole'),
(3, 'Produits laitiers', 'Produits laitiers', '2022-11-02 19:41:49', 'fa-light fa-
cow'),
(6, 'TV', 'Catégorie télévision', '2022-11-11 20:08:52', 'fa-thin fa-tv'),
(7, 'Café', 'Catégorie pour café', '2022-11-14 21:00:51', 'fa-light fa-mug-hot'),
(8, 'Cosmetic/maquillage', 'maquillage', '2022-11-17 16:33:29', 'fa-solid fa-spa'),
(9, 'Légumes', 'Catégorie pour les légumes', '2022-11-18 18:47:26', 'fa-solid fa-
carrot');

-- --------------------------------------------------------

--
-- Table structure for table `commande`
--
CREATE TABLE `commande` (
`id` int(11) NOT NULL,
`id_client` int(11) NOT NULL,
`total` decimal(10,0) NOT NULL,
`valide` int(11) NOT NULL DEFAULT 0,
`date_creation` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `commande`
--

INSERT INTO `commande` (`id`, `id_client`, `total`, `valide`, `date_creation`)


VALUES
(1, 3, '7500', 0, '2022-12-03 16:34:00'),
(2, 3, '7500', 0, '2022-12-03 16:34:03'),
(3, 3, '7500', 0, '2022-12-03 16:34:06'),
(4, 3, '7500', 0, '2022-12-03 16:43:09'),
(5, 3, '32700', 0, '2022-12-03 16:43:34'),
(6, 3, '6300', 0, '2022-12-03 16:44:04'),
(7, 3, '6300', 0, '2022-12-03 17:02:19'),
(8, 3, '6300', 0, '2022-12-03 17:03:15'),
(9, 3, '6300', 0, '2022-12-03 17:04:57'),
(10, 3, '6300', 0, '2022-12-03 17:05:06'),
(11, 3, '6300', 0, '2022-12-03 17:29:10'),
(12, 3, '18900', 0, '2022-12-03 17:31:32'),
(13, 3, '25200', 0, '2022-12-03 17:31:43'),
(14, 3, '25200', 0, '2022-12-03 17:33:06'),
(15, 3, '25200', 0, '2022-12-03 17:33:15'),
(16, 3, '25200', 0, '2022-12-03 17:33:30'),
(17, 3, '25200', 0, '2022-12-03 17:34:09'),
(18, 3, '25200', 0, '2022-12-03 17:34:37'),
(19, 3, '25200', 0, '2022-12-03 17:34:52'),
(20, 3, '25200', 0, '2022-12-03 17:35:28'),
(21, 3, '25200', 0, '2022-12-03 17:35:50'),
(22, 3, '25200', 0, '2022-12-03 17:35:57'),
(23, 3, '25200', 0, '2022-12-03 17:36:21'),
(24, 3, '25200', 0, '2022-12-03 17:36:29'),
(25, 3, '75', 0, '2022-12-03 20:20:42'),
(26, 3, '75', 0, '2022-12-03 20:22:00'),
(27, 3, '75', 0, '2022-12-03 20:27:57'),
(28, 3, '75', 0, '2022-12-03 20:28:24'),
(29, 3, '99450', 0, '2022-12-04 13:51:39');

-- --------------------------------------------------------

--
-- Table structure for table `ligne_commande`
--

CREATE TABLE `ligne_commande` (


`id` int(11) NOT NULL,
`id_produit` int(11) NOT NULL,
`id_commande` int(11) NOT NULL,
`prix` decimal(10,0) NOT NULL,
`quantite` int(11) NOT NULL,
`total` decimal(10,0) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `ligne_commande`
--

INSERT INTO `ligne_commande` (`id`, `id_produit`, `id_commande`, `prix`,


`quantite`, `total`) VALUES
(1, 6, 4, '6000', 1, '6000'),
(2, 7, 4, '300', 5, '1500'),
(3, 6, 5, '6000', 5, '30000'),
(4, 7, 5, '300', 9, '2700'),
(5, 6, 6, '6000', 1, '6000'),
(6, 7, 6, '300', 1, '300'),
(7, 6, 23, '6000', 4, '24000'),
(8, 7, 23, '300', 4, '1200'),
(9, 6, 24, '6000', 4, '24000'),
(10, 7, 24, '300', 4, '1200'),
(11, 13, 25, '75', 1, '75'),
(12, 13, 26, '75', 1, '75'),
(13, 13, 27, '75', 1, '75'),
(14, 13, 28, '75', 1, '75'),
(15, 6, 29, '6000', 5, '30000'),
(16, 11, 29, '7000', 3, '21000'),
(17, 12, 29, '12000', 4, '48000'),
(18, 13, 29, '75', 6, '450');

-- --------------------------------------------------------

--
-- Table structure for table `produit`
--

CREATE TABLE `produit` (


`id` int(11) NOT NULL,
`libelle` varchar(100) NOT NULL,
`prix` decimal(10,0) NOT NULL,
`discount` int(11) NOT NULL,
`id_categorie` int(11) NOT NULL,
`date_creation` datetime NOT NULL,
`description` varchar(255) NOT NULL,
`image` varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `produit`
--

INSERT INTO `produit` (`id`, `libelle`, `prix`, `discount`, `id_categorie`,


`date_creation`, `description`, `image`) VALUES
(5, 'SAMSUNG SERIE 9', '7500', 0, 6, '2022-11-14 00:00:00', '',
'637659041d180produit.png'),
(6, 'SAMSUNG S8', '6000', 0, 6, '2022-11-17 00:00:00', 'Samsung TV',
'6376527e74813Television-43″-SAMSUNG-43AU9075-Smart-4K-Crystal-UHD-–-Serie-9-–-
Bluetooth-–-Recepteur-Integre.jpg'),
(7, 'Coconut', '300', 0, 8, '2022-11-17 00:00:00', 'Maquillage',
'6376546d32bd5images.jfif'),
(8, 'Rouge a lèvres', '200', 0, 8, '2022-11-17 00:00:00', 'Rouge a lèvres',
'63765918499b1produit.png'),
(10, 'Danone', '2', 24, 3, '2022-11-17 00:00:00', 'Danone ', '637658729b712Danone-
Logo.png'),
(11, 'LG OLED evo C2 Smart TV Resolution 4K 42 pouces', '7000', 0, 6, '2022-11-18
00:00:00', 'Noir parfait (contraste infini), Fidélité des couleurs à 100 %',
'6377c736816d6medium01.webp'),
(12, 'LG NANO79 Smart TV Resolution 4K 86 pouces', '12000', 6, 6, '2022-11-18
00:00:00', 'Téléviseur 4K NanoCell IPS avec Local Dimming pour des couleurs pures
et des angles de vision larges\r\n\r\nProcesseur α7 Gen4 4K avec réduction du bruit
en deux étapes et AI Sound, AI Picture\r\n', '6377c776dfe8f350-1.webp'),
(13, 'Semillas Graines de fraises', '75', 0, 1, '2022-11-18 00:00:00', 'Marque:
Semillas | Produits similaires par Semillas', '6377cb360a23f1.jpg');

-- --------------------------------------------------------

--
-- Table structure for table `utilisateur`
--

CREATE TABLE `utilisateur` (


`id` int(11) NOT NULL,
`login` varchar(100) NOT NULL,
`password` varchar(150) NOT NULL,
`date_creation` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `utilisateur`
--

INSERT INTO `utilisateur` (`id`, `login`, `password`, `date_creation`) VALUES


(1, 'mjamaoui', '123456', '2022-10-30'),
(2, 'admin', '123456789', '2022-10-30'),
(3, 'mjamaoui', 'mjamaoui', '2022-11-02'),
(4, 'mjamaoui', 'mjamaoui', '2022-11-04'),
(5, 'mjamaoui', '123456', '2022-11-11'),
(6, 'mjamaoui', '123456', '2022-11-14');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `categorie`
--
ALTER TABLE `categorie`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `commande`
--
ALTER TABLE `commande`
ADD PRIMARY KEY (`id`),
ADD KEY `id_client` (`id_client`);

--
-- Indexes for table `ligne_commande`
--
ALTER TABLE `ligne_commande`
ADD PRIMARY KEY (`id`),
ADD KEY `id_produit` (`id_produit`),
ADD KEY `id_commande` (`id_commande`);
--
-- Indexes for table `produit`
--
ALTER TABLE `produit`
ADD PRIMARY KEY (`id`),
ADD KEY `id_categorie` (`id_categorie`);

--
-- Indexes for table `utilisateur`
--
ALTER TABLE `utilisateur`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `categorie`
--
ALTER TABLE `categorie`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `commande`
--
ALTER TABLE `commande`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `ligne_commande`
--
ALTER TABLE `ligne_commande`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `produit`
--
ALTER TABLE `produit`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `utilisateur`
--
ALTER TABLE `utilisateur`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `ligne_commande`
--
ALTER TABLE `ligne_commande`
ADD CONSTRAINT `ligne_commande_ibfk_1` FOREIGN KEY (`id_produit`) REFERENCES
`produit` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `ligne_commande_ibfk_2` FOREIGN KEY (`id_commande`) REFERENCES
`commande` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;


/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

You might also like