-- phpMyAdmin SQL Dump
-- version 5.1.3
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : sam. 28 juin 2025 à 17:59
-- Version du serveur : 10.4.24-MariaDB
-- Version de PHP : 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 */;

--
-- Base de données : `ecom`
--

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

--
-- Structure de la table `categorie`
--

CREATE TABLE `categorie` (
  `id` int(11) NOT NULL,
  `libelle_fr` varchar(255) DEFAULT NULL,
  `libelle_en` varchar(255) DEFAULT NULL,
  `image_categorie` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `categorie`
--

INSERT INTO `categorie` (`id`, `libelle_fr`, `libelle_en`, `image_categorie`) VALUES
(1, 'Analgésiques', 'Analgesics', 'Image_categorie/1746986129_vv.jpeg'),
(2, 'Antibiotiques', 'Antibiotics', 'Image_categorie/1746986074_kk.jpeg'),
(3, 'Antituberculose', 'Antituberculosis', 'Image_categorie/1746986103_5.jpeg'),
(4, 'Antifongiques', 'Antifungals', 'Image_categorie/1746985857_bbb.jpeg'),
(5, 'Antivirales', 'Antivirals', 'Image_categorie/1746985618_nnkl.jpeg'),
(6, 'Cardiologie', 'Cardiology', 'Image_categorie/1746985565_17.jpeg'),
(7, 'Dermatologie', 'Dermatology', 'Image_categorie/1746985509_der.png'),
(8, 'Diététique & Nutrition', 'Dietetics & Nutrition', 'Image_categorie/1746985471_diass.jpeg'),
(9, 'Anti-inflammatoires', 'Anti-inflammatories', 'Image_categorie/1746985439_tt.jpeg');

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

--
-- Structure de la table `client`
--

CREATE TABLE `client` (
  `id` int(11) NOT NULL,
  `nom` varchar(255) DEFAULT NULL,
  `prenom` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `profil` varchar(255) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `adresse` varchar(255) DEFAULT NULL,
  `raison_sociale` varchar(255) DEFAULT NULL,
  `profile` varchar(100) DEFAULT NULL,
  `ville` varchar(100) DEFAULT NULL,
  `pays` varchar(255) DEFAULT NULL,
  `etat` varchar(100) DEFAULT NULL,
  `tel` varchar(100) DEFAULT NULL,
  `roles` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `client`
--

INSERT INTO `client` (`id`, `nom`, `prenom`, `password`, `email`, `profil`, `code`, `adresse`, `raison_sociale`, `profile`, `ville`, `pays`, `etat`, `tel`, `roles`) VALUES
(1, 'ZOUNON', 'Al', '6512bd43d9caa6e02c990b0a82652dca', 'elom5828@gmail.com', 'Client', '43488', 'Adakpamé Chez maman', NULL, NULL, 'Lomé', 'Togo', NULL, '90875241', 1),
(2, 'AKAKPO', 'Alphonse Hubert', 'e10adc3949ba59abbe56e057f20f883e', 'azerty@gmail.com', 'Vendeur', NULL, 'LOME', '', 'Personne physique', NULL, NULL, 'Actif', NULL, 1),
(3, 'AKAKPO', 'komla', '202cb962ac59075b964b07152d234b70', 'komla@yahoo.fr', 'Client', '63730', 'LOME', NULL, NULL, NULL, NULL, NULL, '90766543', 1);

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

--
-- Structure de la table `commande`
--

CREATE TABLE `commande` (
  `id` int(11) NOT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `etat` varchar(100) DEFAULT NULL,
  `etat1` varchar(100) DEFAULT NULL,
  `datecmde` date DEFAULT NULL,
  `montant` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `commande`
--

INSERT INTO `commande` (`id`, `reference`, `client_id`, `etat`, `etat1`, `datecmde`, `montant`) VALUES
(1, '0001/COMMANDE', 1, 'Validé', 'Traitée', '2025-05-10', 5000),
(2, '0002/COMMANDE', 3, 'Validé', 'Traitée', '2025-05-10', 4000),
(3, '0003/COMMANDE', 3, 'Validé', 'Non traitée', '2025-05-10', 4000),
(4, '0004/COMMANDE', 1, 'Validé', 'Non traitée', '2025-05-10', 3000),
(5, '0005/COMMANDE', 1, 'Validé', 'Non traitée', '2025-05-13', 3000),
(6, '0006/COMMANDE', 1, 'Validé', 'Non traitée', '2025-05-15', 11000),
(7, '0007/COMMANDE', 1, 'Validé', 'Non traitée', '2025-05-15', 8500),
(9, '0009/COMMANDE', 1, 'Validé', 'Traitée', '2025-05-17', 500),
(10, '0010/COMMANDE', 1, 'Validé', 'Traitée', '2025-05-18', 1000),
(11, '0011/COMMANDE', 1, 'Validé', 'Traitée', '2025-05-19', 11000),
(12, '0012/COMMANDE', 1, 'En cours', 'Non traitée', '2025-06-28', 3000);

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

--
-- Structure de la table `information`
--

CREATE TABLE `information` (
  `id` int(11) NOT NULL,
  `adresse` varchar(255) DEFAULT NULL,
  `telephone1` varchar(255) DEFAULT NULL,
  `telephone2` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `slogan` text DEFAULT NULL,
  `nom_logo` varchar(255) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `information`
--

INSERT INTO `information` (`id`, `adresse`, `telephone1`, `telephone2`, `email`, `slogan`, `nom_logo`, `logo`) VALUES
(1, 'Washington 122 Street Black', '+ 1 5239745994', '+ 1 5237788995', 'pharmacope@gmail.com', 'We deliver, you\'re the boss!', '1746999241_logg.png', 'Image_logo/1747320991_1746999241_logg.png');

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

--
-- Structure de la table `ligne_commande`
--

CREATE TABLE `ligne_commande` (
  `id` int(11) NOT NULL,
  `commande_id` int(11) DEFAULT NULL,
  `produit_id` int(11) DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `qte` int(11) DEFAULT NULL,
  `etat` varchar(100) DEFAULT NULL,
  `somligne` double DEFAULT NULL,
  `etat1` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `ligne_commande`
--

INSERT INTO `ligne_commande` (`id`, `commande_id`, `produit_id`, `client_id`, `qte`, `etat`, `somligne`, `etat1`) VALUES
(1, 1, 2, 1, 2, 'Validé', 4000, 'Traitée'),
(3, 2, 4, 3, 1, 'Validé', 2000, 'Traitée'),
(4, 1, 3, 1, 1, 'Validé', 1000, 'Traitée'),
(5, 2, 2, 3, 1, 'Validé', 2000, 'Traitée'),
(6, 3, 2, 3, 2, 'Validé', 4000, 'Non traitée'),
(7, 4, 5, 1, 1, 'Validé', 3000, 'Non traitée'),
(8, 5, 21, 1, 1, 'Validé', 1000, 'Non traitée'),
(9, 5, 7, 1, 1, 'Validé', 1000, 'Non traitée'),
(10, 5, 16, 1, 1, 'Validé', 1000, 'Non traitée'),
(11, 6, 19, 1, 1, 'Validé', 500, 'Non traitée'),
(12, 6, 20, 1, 1, 'Validé', 500, 'Non traitée'),
(13, 6, 7, 1, 1, 'Validé', 1000, 'Non traitée'),
(14, 6, 23, 1, 3, 'Validé', 9000, 'Non traitée'),
(15, 7, 7, 1, 1, 'Validé', 1000, 'Non traitée'),
(16, 7, 10, 1, 3, 'Validé', 6000, 'Non traitée'),
(17, 7, 8, 1, 1, 'Validé', 1000, 'Non traitée'),
(18, 7, 6, 1, 1, 'Validé', 500, 'Non traitée'),
(22, 9, 19, 1, 1, 'Validé', 500, 'Traitée'),
(23, 10, 16, 1, 1, 'Validé', 1000, 'Traitée'),
(24, 11, 16, 1, 1, 'Validé', 1000, 'Traitée'),
(25, 11, 11, 1, 2, 'Validé', 10000, 'Traitée'),
(26, 12, 14, 1, 1, 'En cours', 3000, NULL);

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

--
-- Structure de la table `ligne_permission`
--

CREATE TABLE `ligne_permission` (
  `id` int(11) NOT NULL,
  `permission_id` int(11) DEFAULT NULL,
  `vue_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `typepermission_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `ligne_permission`
--

INSERT INTO `ligne_permission` (`id`, `permission_id`, `vue_id`, `role_id`, `typepermission_id`) VALUES
(6, 1, 1, 1, 1),
(7, 1, 2, 1, 1);

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

--
-- Structure de la table `permission`
--

CREATE TABLE `permission` (
  `id` int(11) NOT NULL,
  `role_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `permission`
--

INSERT INTO `permission` (`id`, `role_id`) VALUES
(1, 1);

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

--
-- Structure de la table `produit`
--

CREATE TABLE `produit` (
  `id` int(11) NOT NULL,
  `designation_en` varchar(255) DEFAULT NULL,
  `image_produit` varchar(255) DEFAULT NULL,
  `nom_image_produit` varchar(255) DEFAULT NULL,
  `categorie_id` int(11) DEFAULT NULL,
  `designation_fr` varchar(255) DEFAULT NULL,
  `description_fr` varchar(255) DEFAULT NULL,
  `description_en` varchar(255) DEFAULT NULL,
  `prix` double DEFAULT NULL,
  `etat_dispo` varchar(100) DEFAULT NULL,
  `etat_pub` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `produit`
--

INSERT INTO `produit` (`id`, `designation_en`, `image_produit`, `nom_image_produit`, `categorie_id`, `designation_fr`, `description_fr`, `description_en`, `prix`, `etat_dispo`, `etat_pub`) VALUES
(1, 'Potato', 'Image_produit/1746611074_1746611074.1626354987_category2.png', '1746611074.1626354987_category2.png', 8, 'Pomme de terre', 'Choco', 'Be cool', 15000, 'Vente', 'Publié'),
(2, 'Carrot', 'Image_produit/1746611268_1746611268.1626354224_category4.png', '1746611268.1626354224_category4.png', 8, 'Carrotte', 'Bien cool', 'Be cool', 2000, 'Vente', 'Publié'),
(3, 'Ginger', 'Image_produit/1746611309_1746611309.1626355017_category7.png', '1746611309.1626355017_category7.png', 8, 'Gingembre', 'Choco', 'Cool', 1000, 'Vente', 'Publié'),
(4, 'Croissant', 'Image_produit/1746611358_1746611358.1746606562_1626354819_category6.png', '1746611358.1746606562_1626354819_category6.png', 8, 'Croissant', 'Bien cool', 'Be cool', 2000, 'Vente', 'Publié'),
(5, 'Dairy', 'Image_produit/1746611477_1746611477.1687591678_category5.png', '1746611477.1687591678_category5.png', 8, 'Laiture', 'Pato cool', 'Be cool', 3000, 'Vente', 'Publié'),
(6, 'Nifluril', 'Image_produit/1747004592_1747004592.3.jpeg', '1747004592.3.jpeg', 9, 'Nifluril', 'Bien cool', 'Be cool', 500, 'Vente', 'Publié'),
(7, 'Paracemol', 'Image_produit/1747004697_1747004697.10.jpeg', '1747004697.10.jpeg', 9, 'Paracemol', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(8, 'Doliprane', 'Image_produit/1747004733_1747004733.1.jpeg', '1747004733.1.jpeg', 9, 'Doliprane', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(9, 'Antifluri', 'Image_produit/1747004783_1747004783.6.jpeg', '1747004783.6.jpeg', 9, 'Antifluri', 'Bien cool', 'Be cool', 2000, 'Vente', 'Publié'),
(10, 'Xomehil', 'Image_produit/1747004904_1747004904.45.jpeg', '1747004904.45.jpeg', 9, 'Xomehil', 'Bien cool', 'Be cool', 2000, 'Vente', 'Publié'),
(11, 'MagnesiHJ', 'Image_produit/1747005119_1747005119.13.jpeg', '1747005119.13.jpeg', 9, 'MagnesiHJ', 'Bien cool', 'Be cool', 5000, 'Vente', 'Publié'),
(12, 'Vogliril', 'Image_produit/1747005208_1747005208.gg.jpeg', '1747005208.gg.jpeg', 1, 'Vogliril', 'Choco', 'Be cool', 500, 'Vente', 'Publié'),
(13, 'Lithacold', 'Image_produit/1747005377_1747005377.24.jpeg', '1747005377.24.jpeg', 1, 'Lithacold', 'Choco', 'Be cool', 300, 'Vente', 'Publié'),
(14, 'Diasepam', 'Image_produit/1747005423_1747005423.nn.jpeg', '1747005423.nn.jpeg', 2, 'Diasepam', 'Choco', 'Be cool', 3000, 'Vente', 'Publié'),
(15, 'Zynewell', 'Image_produit/1747008656_1747008656.15.jpeg', '1747008656.15.jpeg', 1, 'Zynewell', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(16, 'Gbebedol', 'Image_produit/1747125930_1747125930.7.jpeg', '1747125930.7.jpeg', 9, 'Gbebedol', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(17, 'Upradone', 'Image_produit/1747126024_1747126024.xx.jpeg', '1747126024.xx.jpeg', 6, 'Upradone', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(18, 'Setronax', 'Image_produit/1747126080_1747126080.6.jpeg', '1747126080.6.jpeg', 4, 'Setronax', 'Pato cool', 'Be cool', 3000, 'Vente', 'Publié'),
(19, 'Fedate', 'Image_produit/1747126131_1747126131.4.jpeg', '1747126131.4.jpeg', 3, 'Fedate', 'Bien cool', 'Be cool', 500, 'Vente', 'Publié'),
(20, 'Vita Vit', 'Image_produit/1747126171_1747126171.14.jpeg', '1747126171.14.jpeg', 5, 'Vita Vit', 'Bien cool', 'Be cool', 500, 'Vente', 'Publié'),
(21, 'Adione', 'Image_produit/1747126206_1747126206.5.jpeg', '1747126206.5.jpeg', 9, 'Adione', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(22, 'Viscéralgine', 'Image_produit/1747126256_1747126256.gg.jpeg', '1747126256.gg.jpeg', 4, 'Viscéralgine', 'Bien cool', 'Be cool', 1000, 'Vente', 'Publié'),
(23, 'Calmag', 'Image_produit/1747126330_1747126330.nnkl.jpeg', '1747126330.nnkl.jpeg', 6, 'Calmag', 'Bien cool', 'Be cool', 3000, 'Vente', 'Publié'),
(24, 'Allergica', 'Image_produit/1747126367_1747126367.vv.jpeg', '1747126367.vv.jpeg', 4, 'Allergica', 'Choco', 'Cool', 5000, 'Vente', 'Publié'),
(25, 'Upsa-C', 'Image_produit/1747126433_1747126433.bb.jpeg', '1747126433.bb.jpeg', 3, 'Upsa-C', 'Bien cool', 'Be cool', 2000, 'Vente', 'Publié'),
(26, 'Magoril', 'Image_produit/1747126543_1747126543.20.jpeg', '1747126543.20.jpeg', 2, 'Magoril', 'Bien cool', 'Be cool', 15000, 'Vente', 'Publié'),
(27, 'Izofril', 'Image_produit/1747126595_1747126595.gggggg.jpeg', '1747126595.gggggg.jpeg', 5, 'Izofril', 'Bien cool', 'Be cool', 3000, 'Vente', 'Publié');

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

--
-- Structure de la table `role`
--

CREATE TABLE `role` (
  `id` int(11) NOT NULL,
  `lib` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `role`
--

INSERT INTO `role` (`id`, `lib`) VALUES
(1, 'Utilisateur');

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

--
-- Structure de la table `seller`
--

CREATE TABLE `seller` (
  `id` int(11) NOT NULL,
  `produit_id` int(11) DEFAULT NULL,
  `qte_vendu` int(11) DEFAULT NULL,
  `commande_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `seller`
--

INSERT INTO `seller` (`id`, `produit_id`, `qte_vendu`, `commande_id`) VALUES
(1, 4, 1, 2),
(2, 2, 6, 2),
(3, 3, 1, 1),
(4, 5, 1, 4),
(5, 21, 1, 5),
(6, 7, 4, 5),
(7, 16, 7, 5),
(8, 19, 3, 6),
(9, 20, 2, 6),
(10, 23, 6, 6),
(11, 10, 3, 7),
(12, 8, 1, 7),
(13, 6, 1, 7),
(16, 11, 6, 11);

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

--
-- Structure de la table `similaire`
--

CREATE TABLE `similaire` (
  `id` int(11) NOT NULL,
  `produit_id` int(11) DEFAULT NULL,
  `img` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `similaire`
--

INSERT INTO `similaire` (`id`, `produit_id`, `img`) VALUES
(1, 3, 'Image_produit/1746891770_1626354987_category2.png'),
(2, 3, 'Image_produit/1746891780_1626354987_category2.png'),
(3, 3, 'Image_produit/1746891780_1626354987_category2.png');

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

--
-- Structure de la table `transaction`
--

CREATE TABLE `transaction` (
  `id` int(11) NOT NULL,
  `commande_id` int(11) DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `montant` double DEFAULT NULL,
  `datecmde` date DEFAULT NULL,
  `stripe_id` varchar(255) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `status` varchar(50) DEFAULT NULL,
  `nom` varchar(255) DEFAULT NULL,
  `datepaie` date DEFAULT NULL,
  `heurepaie` time DEFAULT NULL,
  `payment` varchar(255) DEFAULT NULL,
  `paypal_id` varchar(255) DEFAULT NULL,
  `fichier_preuve` varchar(255) DEFAULT NULL,
  `zelle_id` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `transaction`
--

INSERT INTO `transaction` (`id`, `commande_id`, `client_id`, `montant`, `datecmde`, `stripe_id`, `email`, `status`, `nom`, `datepaie`, `heurepaie`, `payment`, `paypal_id`, `fichier_preuve`, `zelle_id`) VALUES
(1, 2, 3, 4000, '2025-05-10', 'pi_3RNDmFPtlDAtK6NU1yyGeAKV', 'komla@yahoo.fr', 'Terminé', 'AKAKPO KOMLA', '2025-05-10', '14:50:32', 'Stripe', NULL, NULL, NULL),
(2, 1, 1, 5000, '2025-05-10', 'pi_3RNDqcPtlDAtK6NU1dG8t4fe', 'elom5828@gmail.com', 'Terminé', 'ZOUNON komla elom', '2025-05-10', '15:50:32', 'Stripe', NULL, NULL, NULL),
(3, 3, 3, 4000, '2025-05-10', 'pi_3RNFS6PtlDAtK6NU1lqoX7sx', 'azerty@gmail.com', 'Terminé', 'zounon afi', '2025-05-10', '16:14:01', 'Stripe', NULL, NULL, NULL),
(4, 4, 1, 3000, '2025-05-10', 'pi_3RNGBVPtlDAtK6NU2rrpy3iS', 'elom5828@gmail.com', 'Terminé', 'zounon komla elom', '2025-05-10', '15:22:59', 'Stripe', NULL, NULL, NULL),
(6, 5, 1, 3000, '2025-05-13', NULL, 'sb-dlicg41842206@personal.example.com', 'Terminé', 'John Doe', '2025-05-14', '23:50:21', 'Paypal', 'RK7Q3TJBUPVAY', NULL, NULL),
(7, 6, 1, 11000, '2025-05-15', NULL, 'sb-dlicg41842206@personal.example.com', 'Terminé', 'John Doe', '2025-05-15', '13:30:59', 'Paypal', 'RK7Q3TJBUPVAY', NULL, NULL),
(8, 7, 1, 8500, '2025-05-15', NULL, 'sb-dlicg41842206@personal.example.com', 'Terminé', 'John Doe', '2025-05-15', '13:47:23', 'Paypal', 'RK7Q3TJBUPVAY', NULL, NULL),
(13, 9, 1, 500, '2025-05-17', NULL, 'elom5828@gmail.com', 'Terminé', 'ZOUNON Al', '2025-05-17', '13:54:21', 'Virement bancaire', NULL, '[\"paiements\\/s6xcBPQl2KFInkKLiXQmiAIDRS3yaIJMvVr8Hbml.pdf\"]', NULL),
(14, 10, 1, 1000, '2025-05-18', NULL, 'elom5828@gmail.com', 'Terminé', 'ZOUNON Al', '2025-05-18', '08:51:35', 'Zelle', NULL, '[\"paiements\\/HJwQEBQ1S6iLhKlznGzUCD2IRrJUI3GhstVxQNV3.pdf\"]', '123546789ID'),
(17, 11, 1, 11000, '2025-05-19', NULL, 'elom5828@gmail.com', 'Terminé', 'ZOUNON Al', '2025-05-19', '13:20:27', 'Espèce', NULL, NULL, NULL);

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

--
-- Structure de la table `type_permission`
--

CREATE TABLE `type_permission` (
  `id` int(11) NOT NULL,
  `lib` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `type_permission`
--

INSERT INTO `type_permission` (`id`, `lib`) VALUES
(1, 'Activer');

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

--
-- Structure de la table `user`
--

CREATE TABLE `user` (
  `id` int(11) NOT NULL,
  `login` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `role` varchar(255) DEFAULT NULL,
  `nom_user` varchar(255) DEFAULT NULL,
  `prenom` varchar(255) DEFAULT NULL,
  `sexe` varchar(255) DEFAULT NULL,
  `adresse` varchar(255) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `tel` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `user`
--

INSERT INTO `user` (`id`, `login`, `password`, `role`, `nom_user`, `prenom`, `sexe`, `adresse`, `photo`, `tel`) VALUES
(1, 'admin', 'b4b147bc522828731f1a016bfa72c073', 'Super admin', 'Super', 'Admin', NULL, NULL, NULL, NULL);

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

--
-- Structure de la table `vue`
--

CREATE TABLE `vue` (
  `id` int(11) NOT NULL,
  `lib` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Déchargement des données de la table `vue`
--

INSERT INTO `vue` (`id`, `lib`) VALUES
(1, 'Paiement en ligne'),
(2, 'Paiement hors ligne');

--
-- Index pour les tables déchargées
--

--
-- Index pour la table `categorie`
--
ALTER TABLE `categorie`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `client`
--
ALTER TABLE `client`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `commande`
--
ALTER TABLE `commande`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `information`
--
ALTER TABLE `information`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `ligne_commande`
--
ALTER TABLE `ligne_commande`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `ligne_permission`
--
ALTER TABLE `ligne_permission`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `permission`
--
ALTER TABLE `permission`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `produit`
--
ALTER TABLE `produit`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `role`
--
ALTER TABLE `role`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `seller`
--
ALTER TABLE `seller`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `similaire`
--
ALTER TABLE `similaire`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `transaction`
--
ALTER TABLE `transaction`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `type_permission`
--
ALTER TABLE `type_permission`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `vue`
--
ALTER TABLE `vue`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT pour les tables déchargées
--

--
-- AUTO_INCREMENT pour la table `categorie`
--
ALTER TABLE `categorie`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT pour la table `client`
--
ALTER TABLE `client`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `commande`
--
ALTER TABLE `commande`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT pour la table `information`
--
ALTER TABLE `information`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `ligne_commande`
--
ALTER TABLE `ligne_commande`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT pour la table `ligne_permission`
--
ALTER TABLE `ligne_permission`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `permission`
--
ALTER TABLE `permission`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `produit`
--
ALTER TABLE `produit`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT pour la table `role`
--
ALTER TABLE `role`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT pour la table `seller`
--
ALTER TABLE `seller`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT pour la table `similaire`
--
ALTER TABLE `similaire`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `transaction`
--
ALTER TABLE `transaction`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT pour la table `type_permission`
--
ALTER TABLE `type_permission`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `user`
--
ALTER TABLE `user`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `vue`
--
ALTER TABLE `vue`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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 */;
