text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: May 02, 2020 at 01:44 AM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.4
  
  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: `gestion de stock`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `fournisseur`
  --
  
  CREATE TABLE `fournisseur` (
    `id` int(11) NOT NULL,
    `nomfour` varchar(200) NOT NULL,
    `mail` varchar(100) NOT NULL,
    `tele` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `produit`
  --
  
  CREATE TABLE `produit` (
    `id` int(11) NOT NULL,
    `nom` varchar(50) NOT NULL,
    `quantite` int(11) NOT NULL,
    `prix` int(50) NOT NULL,
    `id_rayon` int(11) NOT NULL,
    `id_foun` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `rayon`
  --
  
  CREATE TABLE `rayon` (
    `id` int(11) NOT NULL,
    `categorie` varchar(200) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `fournisseur`
  --
  ALTER TABLE `fournisseur`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `produit`
  --
  ALTER TABLE `produit`
    ADD PRIMARY KEY (`id`),
    ADD KEY `id_foun` (`id_foun`),
    ADD KEY `id_rayon` (`id_rayon`);
  
  --
  -- Indexes for table `rayon`
  --
  ALTER TABLE `rayon`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `fournisseur`
  --
  ALTER TABLE `fournisseur`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `produit`
  --
  ALTER TABLE `produit`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `rayon`
  --
  ALTER TABLE `rayon`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `produit`
  --
  ALTER TABLE `produit`
    ADD CONSTRAINT `produit_ibfk_1` FOREIGN KEY (`id_foun`) REFERENCES `fournisseur` (`id`),
    ADD CONSTRAINT `produit_ibfk_2` FOREIGN KEY (`id_rayon`) REFERENCES `rayon` (`id`);
  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 */;
  