-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 13, 2018 at 04:21 AM
-- Server version: 5.6.17
-- PHP Version: 5.5.12

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 utf8 */;

--
-- Database: `myuni`
--

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

--
-- Table structure for table `tbl_product`
--

CREATE TABLE IF NOT EXISTS `tbl_product` (
  `product_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_name` text NOT NULL,
  `product_price` int(11) NOT NULL,
  `product_pic` text NOT NULL,
  `shop_id` text NOT NULL,
  PRIMARY KEY (`product_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=98 ;

--
-- Dumping data for table `tbl_product`
--

INSERT INTO `tbl_product` (`product_id`, `product_name`, `product_price`, `product_pic`, `shop_id`) VALUES
(95, 'Reebok ', 120, 'a181213031042r3.jpeg', 'a'),
(96, 'Reebok ', 110, 'a181213031119re.jpeg', 'a'),
(97, 'Nike', 160, 'a181213031137c.jpg', 'a');

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

--
-- Table structure for table `tbl_purchase`
--

CREATE TABLE IF NOT EXISTS `tbl_purchase` (
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` text NOT NULL,
  `tid` text NOT NULL,
  `total_payment` text NOT NULL,
  `ccn` text NOT NULL,
  `cvv` text NOT NULL,
  `name_of_card` text NOT NULL,
  `exp_month` text NOT NULL,
  `exp_year` text NOT NULL,
  PRIMARY KEY (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `tbl_purchase_detail_temp`
--

CREATE TABLE IF NOT EXISTS `tbl_purchase_detail_temp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` text NOT NULL,
  `product_id` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

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

--
-- Table structure for table `tbl_rating`
--

CREATE TABLE IF NOT EXISTS `tbl_rating` (
  `rating` text NOT NULL,
  `user_id` text NOT NULL,
  `product_id` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `tbl_review`
--

CREATE TABLE IF NOT EXISTS `tbl_review` (
  `review_id` bigint(11) NOT NULL AUTO_INCREMENT,
  `review_name` text NOT NULL,
  `review_comment` text NOT NULL,
  PRIMARY KEY (`review_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

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

--
-- Table structure for table `tbl_shop`
--

CREATE TABLE IF NOT EXISTS `tbl_shop` (
  `shop_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` text NOT NULL,
  `address` text NOT NULL,
  `phone` text NOT NULL,
  `about` longtext NOT NULL,
  `email` text NOT NULL,
  `user_id` text NOT NULL,
  `profile` text NOT NULL,
  PRIMARY KEY (`shop_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;

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

--
-- Table structure for table `tbl_user`
--

CREATE TABLE IF NOT EXISTS `tbl_user` (
  `user_id` int(11) NOT NULL AUTO_INCREMENT,
  `name` text NOT NULL,
  `email` text NOT NULL,
  `category` text NOT NULL,
  `address` longtext NOT NULL,
  `phone` text NOT NULL,
  `password` text NOT NULL,
  `status` int(11) NOT NULL,
  `university` text NOT NULL,
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=46 ;

--
-- Dumping data for table `tbl_user`
--

INSERT INTO `tbl_user` (`user_id`, `name`, `email`, `category`, `address`, `phone`, `password`, `status`, `university`) VALUES
(10, 'admin', 'admin', '3', 'admin', 'admin', '123', 1, ''),
(37, 'abc', 'aa', '2', 'machang kelantan', '0194666210', '11', 1, ''),
(39, 'bb', 'bb', '1', 'bb', '0194666210', 'bb', 1, ''),
(43, 'Kamal bin Ariff', 'a', '2', 'Kampung Kil, 09300 Kota Bharu', '0194666210', '1', 0, 'University Kebangsaan Malaysia'),
(44, 'daus', 'vv@gmail.com', '2', '1w', '1', '1', 0, 'Universiti Teknologi Mara'),
(45, 's', 's', '1', 'ss', 's', 's', 1, 'Universiti Kebangsaan Malaysia');

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