-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 15, 2018 at 04:12 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: `extrastorage`
--

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

--
-- Table structure for table `admin`
--

CREATE TABLE IF NOT EXISTS `admin` (
  `admin_id` int(11) NOT NULL AUTO_INCREMENT,
  `admin_name` text NOT NULL,
  `admin_password` text NOT NULL,
  `admin_email` text NOT NULL,
  PRIMARY KEY (`admin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `company`
--

CREATE TABLE IF NOT EXISTS `company` (
  `company_id` int(11) NOT NULL,
  `company_name` text NOT NULL,
  `company_telephone` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `customer`
--

CREATE TABLE IF NOT EXISTS `customer` (
  `customer_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_name` text NOT NULL,
  `customer_ic` varchar(12) NOT NULL,
  `customer_add1` text NOT NULL,
  `customer_add2` text NOT NULL,
  `customer_postcode` varchar(7) NOT NULL,
  `customer_city` varchar(50) NOT NULL,
  `customer_state` varchar(50) NOT NULL,
  `customer_email` text NOT NULL,
  `customer_phone` varchar(16) NOT NULL,
  `customer_password` text NOT NULL,
  `status` text NOT NULL,
  PRIMARY KEY (`customer_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1119 ;

--
-- Dumping data for table `customer`
--

INSERT INTO `customer` (`customer_id`, `customer_name`, `customer_ic`, `customer_add1`, `customer_add2`, `customer_postcode`, `customer_city`, `customer_state`, `customer_email`, `customer_phone`, `customer_password`, `status`) VALUES
(4, 'Nur Syahira Rasid', '971215115116', '2503, JLN SEK NURUL ITTIFAQ,', 'KG SRI KEMUNTING,', '22300', 'KUALA BESUT', 'Terengganu', 'syahira', '0105745619', '1111', 'USER'),
(5, 'NUR SYAHIRA BINTI AB RASID', '911215115116', '2503, JLN SEK NURUL ITTIFAQ', 'KG SRI KEMUNTING,', '22300', 'KUALA BESUT', 'TERENGGANU', 'syahira@yahoo.com', '0145449152', '1111', ''),
(1111, 'NUR SYAHIRA RASID', '961215115117', '2503, JLN SEKOLAH', 'KG SRI KEMUNTING', '22200', 'BESUT', 'TERENGGANU', 'nursyahirarasid@gmail.com', '60145449102', 'Abc1234', 'USER'),
(1112, 'nur', '990418115602', 'umk,kelantan', '', '17600', 'jeli', 'kelantan', 'nursyafika257@yahoo.com', '0199976949', 'ak41749', ''),
(1113, 'tyra', '96512453', '2', '34', '23242', 'kn', 'ty', 'tyra@yahoo.com', '0193791826', '1234', ''),
(1115, 'syafika', '990418035602', 'umk', 'jeli', '11890', 'jeli', 'kelantan', 'nsyafika@gmail.com', '01234567896', '1111', ''),
(1116, 'afiqah', '961514012346', 'Jln Bukit', 'Changloon', '23109', 'Changloon', 'Kedah', 'afiqah@yahoo.com', '0187098755', '1234', ''),
(1117, 'admin', 'admin', 'admin', 'admin', 'admin', 'admin', 'admin', 'admin', 'admin', 'a', 'ADMIN'),
(1118, 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x@x', 'x', 'x', 'USER');

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

--
-- Table structure for table `customer_registration`
--

CREATE TABLE IF NOT EXISTS `customer_registration` (
  `registration_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `login_id` bigint(20) NOT NULL,
  `customer_id` bigint(20) NOT NULL,
  `storage_id` bigint(20) NOT NULL,
  PRIMARY KEY (`registration_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `image`
--

CREATE TABLE IF NOT EXISTS `image` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `pic` blob NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `movement log`
--

CREATE TABLE IF NOT EXISTS `movement log` (
  `movement_id` int(11) NOT NULL,
  `movement_name` text NOT NULL,
  `movement_period` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `order1`
--

CREATE TABLE IF NOT EXISTS `order1` (
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
  `customer_order` text NOT NULL,
  `order_name` text NOT NULL,
  `order_price` text NOT NULL,
  `order_picture` blob NOT NULL,
  PRIMARY KEY (`order_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

--
-- Dumping data for table `order1`
--

INSERT INTO `order1` (`order_id`, `customer_order`, `order_name`, `order_price`, `order_picture`) VALUES
(1, '', 'Storage 10*10', '150', 0x6e757273796168697261726173696440676d61696c2e636f6d3138313230353038323533345f77616c6c70617065725f5f6e63745f755f6c756361735f62795f74686573616c6c6f792d64633438376b662e706e67),
(2, '', 'Storage 20*20', '100', 0x6e757273796168697261726173696440676d61696c2e636f6d31383132313230343339303473746f726167652d6c6f636b65722d6261636b67726f756e642e706e67),
(3, '', 'Storage 10*10', '100', 0x61646d696e31383132313330313538303131302e504e47),
(4, '', 'Storage 20*20', '150', 0x61646d696e31383132313330323034313232302e504e47),
(5, '', 'Storage 40*40', '200', 0x61646d696e31383132313330323035343734302e504e47),
(6, '', 'Storage 50*50', '250', 0x61646d696e31383132313330323036313135302e504e47),
(7, '', 'Storage 50*50', '300', 0x61646d696e31383132313330323036333535302e504e47),
(8, '', 'Storage 80*80', '400', 0x61646d696e31383132313330323036353638302038302e706e67),
(9, '', 'Storage 100*100', '1000', 0x61646d696e3138313231333032303732363130302e504e47);

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

--
-- Table structure for table `payment`
--

CREATE TABLE IF NOT EXISTS `payment` (
  `payment_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `customer_id` text NOT NULL,
  `payment_amount` decimal(10,0) DEFAULT NULL,
  `payment_date` date NOT NULL,
  `payment_time` time NOT NULL,
  `product_id` text NOT NULL,
  `ccn` text NOT NULL,
  `cvv` text NOT NULL,
  PRIMARY KEY (`payment_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `payment`
--

INSERT INTO `payment` (`payment_id`, `customer_id`, `payment_amount`, `payment_date`, `payment_time`, `product_id`, `ccn`, `cvv`) VALUES
(4, 'nursyahirarasid@gmail.com', '150', '2018-12-12', '00:00:00', '1', '3242342', '234'),
(5, 'nursyahirarasid@gmail.com', '150', '2018-12-12', '00:00:00', '1', '3242342', '234'),
(6, 'nursyahirarasid@gmail.com', '150', '2018-12-12', '00:00:00', '1', '3242342', '234'),
(7, 'nursyahirarasid@gmail.com', '100', '2018-12-12', '00:00:00', '2', '3242342', '234'),
(8, 'x@x', '300', '2018-12-14', '00:00:00', '7', 'sAS', 'asAS');

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

--
-- Table structure for table `rating`
--

CREATE TABLE IF NOT EXISTS `rating` (
  `rating_id` int(11) NOT NULL AUTO_INCREMENT,
  `rating_date` date NOT NULL,
  `rating_time` time NOT NULL,
  `customer_rating` varchar(10) NOT NULL,
  `order_id` text NOT NULL,
  PRIMARY KEY (`rating_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `rating`
--

INSERT INTO `rating` (`rating_id`, `rating_date`, `rating_time`, `customer_rating`, `order_id`) VALUES
(1, '0000-00-00', '00:00:04', 'nursyahira', ''),
(2, '0000-00-00', '00:00:03', 'nursyahira', '1'),
(3, '0000-00-00', '00:00:00', '3', '1'),
(4, '0000-00-00', '00:00:00', '5', '1'),
(5, '0000-00-00', '00:00:00', '4', '1'),
(6, '0000-00-00', '00:00:00', '4', '1'),
(7, '0000-00-00', '00:00:00', '4', '1'),
(8, '0000-00-00', '00:00:00', '1', '1'),
(9, '0000-00-00', '00:00:00', '1', '1'),
(10, '0000-00-00', '00:00:00', '1', '1'),
(11, '0000-00-00', '00:00:00', '1', '1'),
(12, '0000-00-00', '00:00:00', '1', '1'),
(13, '0000-00-00', '00:00:00', '1', '2'),
(14, '0000-00-00', '00:00:00', '1', '3'),
(15, '0000-00-00', '00:00:00', '1', '1'),
(16, '0000-00-00', '00:00:00', '1', '1'),
(17, '0000-00-00', '00:00:00', '1', '1'),
(18, '0000-00-00', '00:00:00', '1', '1'),
(19, '0000-00-00', '00:00:00', '1', '1'),
(20, '0000-00-00', '00:00:00', '3', '3');

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

--
-- Table structure for table `storage`
--

CREATE TABLE IF NOT EXISTS `storage` (
  `storage_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `storage_name` text NOT NULL,
  `storage_size` varchar(20) NOT NULL,
  `storage_type` text NOT NULL,
  `storage_status` text NOT NULL,
  `storage_picture` blob NOT NULL,
  `storage_quantity` int(11) NOT NULL,
  `storage_price` text NOT NULL,
  PRIMARY KEY (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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