text: -- phpMyAdmin SQL Dump
  -- version 4.5.4.1deb2ubuntu2
  -- http://www.phpmyadmin.net
  --
  -- Host: localhost
  -- Generation Time: Apr 04, 2018 at 12:42 PM
  -- Server version: 5.7.21-0ubuntu0.16.04.1
  -- PHP Version: 7.0.28-0ubuntu0.16.04.1
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `store`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `brands`
  --
  
  CREATE TABLE `brands` (
    `brand_id` int(11) NOT NULL,
    `brand_name` varchar(255) NOT NULL,
    `brand_active` int(11) NOT NULL DEFAULT '0',
    `brand_status` int(11) NOT NULL DEFAULT '0'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `categories`
  --
  
  CREATE TABLE `categories` (
    `categories_id` int(11) NOT NULL,
    `categories_name` varchar(255) NOT NULL,
    `categories_active` int(11) NOT NULL DEFAULT '0',
    `categories_status` int(11) NOT NULL DEFAULT '0'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `orders`
  --
  
  CREATE TABLE `orders` (
    `order_id` int(11) NOT NULL,
    `order_date` date NOT NULL,
    `client_name` varchar(255) NOT NULL,
    `client_contact` varchar(255) NOT NULL,
    `sub_total` varchar(255) NOT NULL,
    `vat` varchar(255) NOT NULL,
    `total_amount` varchar(255) NOT NULL,
    `discount` varchar(255) NOT NULL,
    `grand_total` varchar(255) NOT NULL,
    `paid` varchar(255) NOT NULL,
    `due` varchar(255) NOT NULL,
    `payment_type` int(11) NOT NULL,
    `payment_status` int(11) NOT NULL,
    `payment_place` int(11) NOT NULL,
    `gstn` varchar(255) NOT NULL,
    `order_status` int(11) NOT NULL DEFAULT '0',
    `user_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `order_item`
  --
  
  CREATE TABLE `order_item` (
    `order_item_id` int(11) NOT NULL,
    `order_id` int(11) NOT NULL DEFAULT '0',
    `product_id` int(11) NOT NULL DEFAULT '0',
    `quantity` varchar(255) NOT NULL,
    `rate` varchar(255) NOT NULL,
    `total` varchar(255) NOT NULL,
    `order_item_status` int(11) NOT NULL DEFAULT '0'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `product`
  --
  
  CREATE TABLE `product` (
    `product_id` int(11) NOT NULL,
    `product_name` varchar(255) NOT NULL,
    `product_image` text NOT NULL,
    `brand_id` int(11) NOT NULL,
    `categories_id` int(11) NOT NULL,
    `quantity` varchar(255) NOT NULL,
    `rate` varchar(255) NOT NULL,
    `active` int(11) NOT NULL DEFAULT '0',
    `status` int(11) NOT NULL DEFAULT '0'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `user_id` int(11) NOT NULL,
    `username` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`user_id`, `username`, `password`, `email`) VALUES
  (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `brands`
  --
  ALTER TABLE `brands`
    ADD PRIMARY KEY (`brand_id`);
  
  --
  -- Indexes for table `categories`
  --
  ALTER TABLE `categories`
    ADD PRIMARY KEY (`categories_id`);
  
  --
  -- Indexes for table `orders`
  --
  ALTER TABLE `orders`
    ADD PRIMARY KEY (`order_id`);
  
  --
  -- Indexes for table `order_item`
  --
  ALTER TABLE `order_item`
    ADD PRIMARY KEY (`order_item_id`);
  
  --
  -- Indexes for table `product`
  --
  ALTER TABLE `product`
    ADD PRIMARY KEY (`product_id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`user_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `brands`
  --
  ALTER TABLE `brands`
    MODIFY `brand_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `categories`
  --
  ALTER TABLE `categories`
    MODIFY `categories_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `orders`
  --
  ALTER TABLE `orders`
    MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `order_item`
  --
  ALTER TABLE `order_item`
    MODIFY `order_item_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `product`
  --
  ALTER TABLE `product`
    MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT;
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  /*!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 */;
  