xmenhaxor

Online Shop Dump User By X-m3n

Jul 24th, 2018
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.24 KB | None | 0 0
  1. Online Shop Leak user
  2.  
  3. http://afsf.homeservice.ph
  4.  
  5. -- phpMyAdmin SQL Dump
  6. -- version 4.5.1
  7. -- http://www.phpmyadmin.net
  8. --
  9. -- Host: 127.0.0.1
  10. -- Generation Time: May 09, 2017 at 04:09 PM
  11. -- Server version: 10.1.16-MariaDB
  12. -- PHP Version: 5.6.24
  13.  
  14. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  15. SET time_zone = "+00:00";
  16.  
  17.  
  18. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  19. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  20. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  21. /*!40101 SET NAMES utf8mb4 */;
  22.  
  23. --
  24. -- Database: `onlineshop`
  25. --
  26.  
  27. -- --------------------------------------------------------
  28.  
  29. --
  30. -- Table structure for table `cancel_order`
  31. --
  32.  
  33. CREATE TABLE `cancel_order` (
  34. `cancel_id` int(10) NOT NULL,
  35. `product_id` int(20) NOT NULL,
  36. `quantity` int(5) NOT NULL,
  37. `cancellation_approval` text NOT NULL,
  38. `reason` text NOT NULL,
  39. `date_cancelled` text NOT NULL,
  40. `customer_id` int(10) NOT NULL,
  41. `order_id` int(20) NOT NULL
  42. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  43.  
  44. --
  45. -- Dumping data for table `cancel_order`
  46. --
  47.  
  48. INSERT INTO `cancel_order` (`cancel_id`, `product_id`, `quantity`, `cancellation_approval`, `reason`, `date_cancelled`, `customer_id`, `order_id`) VALUES
  49. (1, 35, 1, 'Waiting', '', 'December 21, 2016', 2, 11),
  50. (2, 35, 1, 'Waiting', 'Item price too high', 'December 21, 2016', 7, 12),
  51. (3, 35, 1, 'Cancelled', 'Found cheaper somewhere else', 'December 21, 2016', 7, 13),
  52. (4, 39, 1, 'Cancelled', 'I order the wrong product', 'December 21, 2016', 7, 14),
  53. (5, 35, 1, 'Cancelled', 'I placed a duplicate order', 'December 24, 2016', 9, 38),
  54. (6, 37, 6, 'Cancelled', 'I placed a duplicate order', 'January 25, 2017', 10, 12),
  55. (7, 35, 1, 'Cancelled', 'Shipping cost too high', 'January 25, 2017', 10, 12),
  56. (8, 35, 1, 'Cancelled', 'Item price too high', 'January 25, 2017', 10, 13);
  57.  
  58. -- --------------------------------------------------------
  59.  
  60. --
  61. -- Table structure for table `cashier_transaction`
  62. --
  63.  
  64. CREATE TABLE `cashier_transaction` (
  65. `transaction_id` int(20) NOT NULL,
  66. `customer_name` text NOT NULL,
  67. `home_address` text NOT NULL,
  68. `employee_id` int(20) NOT NULL,
  69. `order_id` int(20) NOT NULL
  70. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  71.  
  72. --
  73. -- Dumping data for table `cashier_transaction`
  74. --
  75.  
  76. INSERT INTO `cashier_transaction` (`transaction_id`, `customer_name`, `home_address`, `employee_id`, `order_id`) VALUES
  77. (1, 'Jerome Solomon Renia', '', 7, 3),
  78. (2, 'Hanamitchi Dagul Sakuragi', '', 6, 15),
  79. (3, 'Hanamitchi Dagul Sakuragi', '', 6, 16),
  80. (4, 'Hanamitchi Dagul Sakuragi', '', 6, 0),
  81. (5, 'Jhon Marvin Toralba Junio', '', 7, 0),
  82. (6, 'Jerome Solomon Renia', '', 7, 0),
  83. (7, 'Jerome Solomon Renia', '', 7, 0),
  84. (8, 'Jerome Solomon Renia', '', 7, 0),
  85. (9, 'Jerome Solomon Renia', '', 7, 43),
  86. (10, 'Jhon Marvin Toralba Junio', '', 7, 44),
  87. (11, 'Riley Rose Raid', '', 7, 45),
  88. (12, 'mikko', '', 6, 73),
  89. (13, 'mikko', '', 6, 1),
  90. (14, 'Rommel Bato', '', 6, 2),
  91. (15, 'Jerome Solomon Renia', '', 6, 4),
  92. (16, 'Syd Bermz', '', 6, 5),
  93. (17, 'mike', '', 7, 6),
  94. (18, 'Jhon Marvin Toralba Junio', '', 7, 7),
  95. (19, 'Jerome', 'Bayambang', 7, 8),
  96. (20, 'vvvvv', 'gdxdgfgn', 6, 9),
  97. (21, 'fcfcfcfc', 'vgftuj', 6, 10),
  98. (22, 'Jhon Marvin Toralba Junio', 'Malasiqui', 6, 11),
  99. (23, 'lORENZO', 'dUBAI', 6, 14),
  100. (24, 'Samule Uy', 'Bayambang', 6, 17),
  101. (25, 'Jovelyn Bedania', 'Balungao', 7, 18),
  102. (26, 'Kimmy Vans Graner', 'Bugallon', 6, 22),
  103. (27, 'Lea Papa Gilledo', 'Bayambang', 6, 24);
  104.  
  105. -- --------------------------------------------------------
  106.  
  107. --
  108. -- Table structure for table `customer`
  109. --
  110.  
  111. CREATE TABLE `customer` (
  112. `customer_id` int(10) NOT NULL,
  113. `first_name` varchar(20) NOT NULL,
  114. `middle_name` varchar(20) NOT NULL,
  115. `last_name` varchar(20) NOT NULL,
  116. `birth_date` date NOT NULL,
  117. `birth_place` text NOT NULL,
  118. `address` text NOT NULL,
  119. `contact_number` int(15) NOT NULL,
  120. `gender` varchar(6) NOT NULL,
  121. `email_address` varchar(20) NOT NULL,
  122. `customer_password` text NOT NULL
  123. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  124.  
  125. --
  126. -- Dumping data for table `customer`
  127. --
  128.  
  129. INSERT INTO `customer` (`customer_id`, `first_name`, `middle_name`, `last_name`, `birth_date`, `birth_place`, `address`, `contact_number`, `gender`, `email_address`, `customer_password`) VALUES
  130. (2, 'Jhon Marvin', 'Toralba', 'Junio', '1995-11-03', 'Malasiqui, Pangasinan', 'Malasiqui, Pangasinan', 9090, 'Male', 'jm@gmail.com', '3da770cc56ed4407b6aaf10ad4e72b4d'),
  131. (3, 'Abegail', 'abs', 'johnson', '1987-06-21', 'Sa tabi lang', 'Sa tabi lang', 9090909, 'Female', 'abegail@gmail.com', '7eb036d95efd0ec315606393479aec4a'),
  132. (5, 'Riley', 'Rose', 'Raid', '1994-03-21', 'jan lang', 'jan lang', 2147483647, 'Female', 'riley@gmail.com', '8018306cada92212a17e03b4d04f8653'),
  133. (6, 'Kimmy', 'Vans', 'Graner', '1993-08-27', 'Bayambang, Pangasinan', 'bayambang', 2147483647, 'Female', 'kimmy', '9643a919f70460c26cac34b868c94601'),
  134. (7, 'Hanamitchi', 'Dagul', 'Sakuragi', '1993-07-19', 'Japan', 'Tokyo, Japan', 9999, 'Male', 'hanamitchi@gmail.com', '48c909e2a300d8e02678a0de486538bd'),
  135. (8, 'Josh', 'Mars', 'Brandy', '1999-08-26', 'Malabon City', 'bayambang', 999, 'Male', 'josh@gmail.com', 'abb1a9336cff9a7f91fba55a69570d1d'),
  136. (9, 'Gladys', 'Reyes', 'Bermudez', '2002-05-21', 'Tarlac', 'Tarlac', 909090, 'Female', 'syd@gmail.com', '05fe03b494c0f1a7d6cb49f0bf3fd70d'),
  137. (10, 'jayson', 'jayson', 'jayson', '1995-11-18', 'sddsfhsdkh', 'osmsmas', 2147483647, 'Male', 'jayson_delosantos18@', '827ccb0eea8a706c4c34a16891f84e7b'),
  138. (11, 'jayson', 'Tisoy', 'DeloSantos', '2017-01-02', 'm', 'Buayaen', 2147483647, 'Male', 'jayson_delosantos18@', '827ccb0eea8a706c4c34a16891f84e7b'),
  139. (12, 'JOVELYN', 'B', 'BEDENIA', '1997-03-05', 'BALUNGAO', 'bALUNGAO', 2147483647, 'Female', 'jp@yahoo.com', '827ccb0eea8a706c4c34a16891f84e7b'),
  140. (13, 'Lea', 'Papa', 'Gilledo', '1998-04-27', 'Bugallon', 'Bugallon', 2147483647, 'Female', 'gilledolea@gmail.com', 'e10adc3949ba59abbe56e057f20f883e');
  141.  
  142. -- --------------------------------------------------------
  143.  
  144. --
  145. -- Table structure for table `employee`
  146. --
  147.  
  148. CREATE TABLE `employee` (
  149. `employee_id` int(10) NOT NULL,
  150. `emp_first_name` varchar(20) NOT NULL,
  151. `emp_middle_name` varchar(20) NOT NULL,
  152. `emp_last_name` varchar(20) NOT NULL,
  153. `birth_date` date NOT NULL,
  154. `birth_place` varchar(20) NOT NULL,
  155. `job_title` varchar(10) NOT NULL,
  156. `marital_status` varchar(10) NOT NULL,
  157. `address` text NOT NULL,
  158. `email_address` varchar(20) NOT NULL,
  159. `gender` varchar(6) NOT NULL,
  160. `username` text NOT NULL,
  161. `password` text NOT NULL,
  162. `employee_type` text NOT NULL
  163. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  164.  
  165. --
  166. -- Dumping data for table `employee`
  167. --
  168.  
  169. INSERT INTO `employee` (`employee_id`, `emp_first_name`, `emp_middle_name`, `emp_last_name`, `birth_date`, `birth_place`, `job_title`, `marital_status`, `address`, `email_address`, `gender`, `username`, `password`, `employee_type`) VALUES
  170. (6, 'admin', 'admin', 'admin', '1987-12-10', 'Bayambang, Pangasina', 'Administra', 'Single', 'Bayambang, Pangasinan', 'admin@gmail.com', 'Male', 'Admin', '827ccb0eea8a706c4c34a16891f84e7b', 'Admin'),
  171. (7, 'Jerome', 'Solomon', 'Renia', '1995-09-13', 'Bayambang, Pangasina', 'Programmer', 'Single', 'Bayambang, Pangasinan', 'jerome@gmail.com', 'Male', 'jerome', '827ccb0eea8a706c4c34a16891f84e7b', 'Admin');
  172.  
  173. -- --------------------------------------------------------
  174.  
  175. --
  176. -- Table structure for table `invoice`
  177. --
  178.  
  179. CREATE TABLE `invoice` (
  180. `invoice_id` int(11) NOT NULL,
  181. `csi_number` varchar(20) NOT NULL,
  182. `invoice_date` date NOT NULL,
  183. `order_details_id` int(11) NOT NULL
  184. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  185.  
  186. --
  187. -- Dumping data for table `invoice`
  188. --
  189.  
  190. INSERT INTO `invoice` (`invoice_id`, `csi_number`, `invoice_date`, `order_details_id`) VALUES
  191. (2, '09292', '2017-01-22', 3),
  192. (3, '74747', '2017-01-22', 3),
  193. (4, '77777777', '2017-01-22', 3),
  194. (5, '6666666666666666', '2017-01-22', 3),
  195. (6, '88888888888', '2017-01-22', 3),
  196. (7, '99999999999999999999', '2017-01-22', 3),
  197. (8, '66677', '2017-01-22', 3),
  198. (9, '1000', '2017-01-22', 3),
  199. (10, '12300000', '2017-01-23', 6),
  200. (11, '123400000', '2017-01-23', 7),
  201. (12, '123400000', '2017-01-23', 8),
  202. (13, '2900000', '2017-01-23', 9),
  203. (14, '2900000', '2017-01-23', 10),
  204. (16, '5570009', '2017-01-23', 12),
  205. (17, '41421', '2017-01-24', 3),
  206. (18, '41421', '2017-01-24', 3),
  207. (19, '41421', '2017-01-24', 3),
  208. (20, '41234', '2017-01-24', 3),
  209. (21, '32123', '2017-01-24', 13),
  210. (22, '32123', '2017-01-24', 14),
  211. (23, '41421', '2017-01-25', 19),
  212. (24, '41421', '2017-01-25', 19),
  213. (25, '45466', '2017-01-25', 19),
  214. (26, '31211', '2017-01-25', 20),
  215. (27, '32123', '2017-01-27', 21),
  216. (28, '42451', '2017-01-27', 24),
  217. (29, '32123', '2017-01-29', 25),
  218. (30, '32123', '2017-01-29', 26),
  219. (31, '42150', '2017-01-29', 27),
  220. (32, '125400-001', '2017-05-08', 29),
  221. (33, '001-230', '2017-05-08', 30),
  222. (34, '001-2012', '2017-05-09', 32),
  223. (35, '100123', '2017-05-09', 33);
  224.  
  225. -- --------------------------------------------------------
  226.  
  227. --
  228. -- Table structure for table `orders`
  229. --
  230.  
  231. CREATE TABLE `orders` (
  232. `order_id` int(20) NOT NULL,
  233. `date_ordered` date NOT NULL,
  234. `payment` text NOT NULL,
  235. `total` float NOT NULL,
  236. `customer_id` int(10) NOT NULL
  237. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  238.  
  239. --
  240. -- Dumping data for table `orders`
  241. --
  242.  
  243. INSERT INTO `orders` (`order_id`, `date_ordered`, `payment`, `total`, `customer_id`) VALUES
  244. (1, '2017-01-16', 'At Shop', 200, 0),
  245. (2, '2017-01-21', 'At Shop', 3000, 0),
  246. (3, '2017-01-21', 'Cash On Delivery', 9000, 2),
  247. (4, '2017-01-22', 'At Shop', 3000, 1),
  248. (5, '2017-01-22', 'At Shop', 3000, 0),
  249. (6, '2017-01-23', 'At Shop', 3000, 0),
  250. (7, '2017-01-23', 'At Shop', 3200, 0),
  251. (8, '2017-01-23', 'At Shop', 3200, 0),
  252. (9, '2017-01-23', 'At Shop', 3000, 0),
  253. (10, '2017-01-23', 'At Shop', 3000, 0),
  254. (11, '2017-01-24', 'At Shop', 3200, 2),
  255. (12, '2017-01-25', 'Picked Up', 4400, 10),
  256. (13, '2017-01-25', 'Cash On Delivery', 3200, 10),
  257. (14, '2017-01-25', 'At Shop', 3000, 0),
  258. (15, '2017-01-27', 'Cash On Delivery', 3000, 11),
  259. (16, '2017-01-27', 'Picked Up', 200, 11),
  260. (17, '2017-01-27', 'At Shop', 10000000, 0),
  261. (18, '2017-01-29', 'At Shop', 24750, 0),
  262. (19, '2017-01-29', 'Cash On Delivery', 32000, 12),
  263. (20, '2017-01-29', 'Cash On Delivery', 3950, 12),
  264. (21, '2017-05-08', 'Cash On Delivery', 3000, 13),
  265. (22, '2017-05-08', 'At Shop', 1500, 6),
  266. (23, '2017-05-08', 'Cash On Delivery', 22000, 13),
  267. (24, '2017-05-09', 'At Shop', 1500, 13);
  268.  
  269. -- --------------------------------------------------------
  270.  
  271. --
  272. -- Table structure for table `order_details`
  273. --
  274.  
  275. CREATE TABLE `order_details` (
  276. `order_details_id` int(10) NOT NULL,
  277. `quantity` int(10) NOT NULL,
  278. `unit_price` int(10) NOT NULL,
  279. `status` varchar(20) NOT NULL,
  280. `delivery_date` date NOT NULL,
  281. `order_id` int(10) NOT NULL,
  282. `product_id` int(10) NOT NULL
  283. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  284.  
  285. --
  286. -- Dumping data for table `order_details`
  287. --
  288.  
  289. INSERT INTO `order_details` (`order_details_id`, `quantity`, `unit_price`, `status`, `delivery_date`, `order_id`, `product_id`) VALUES
  290. (1, 1, 200, 'Buy at Shop', '0000-00-00', 1, 39),
  291. (10, 1, 200, 'Buy at Shop', '0000-00-00', 8, 39),
  292. (17, 1, 200, 'Picked Up', '2017-01-25', 12, 40),
  293. (19, 1, 200, 'Delivered', '2017-01-27', 13, 39),
  294. (20, 1, 3000, 'Buy at Shop', '0000-00-00', 14, 35),
  295. (21, 1, 3000, 'Delivered', '2017-01-27', 15, 35),
  296. (22, 1, 3000, 'Picked Up', '2017-01-27', 16, 35),
  297. (23, 1, 200, 'processing', '0000-00-00', 16, 39),
  298. (24, 1, 10000000, 'Buy at Shop', '0000-00-00', 17, 42),
  299. (25, 1, 3250, 'Buy at Shop', '0000-00-00', 18, 43),
  300. (26, 1, 21500, 'Buy at Shop', '0000-00-00', 18, 143),
  301. (27, 1, 32000, 'Delivered', '2017-01-29', 19, 144),
  302. (28, 1, 3950, 'processing', '0000-00-00', 20, 47),
  303. (29, 1, 3000, 'Delivered', '2017-05-08', 21, 188),
  304. (30, 1, 1500, 'Buy at Shop', '0000-00-00', 22, 187),
  305. (31, 1, 12000, 'processing', '0000-00-00', 23, 191),
  306. (32, 1, 10000, 'Shipped', '0000-00-00', 23, 190),
  307. (33, 1, 1500, 'Buy at Shop', '0000-00-00', 24, 187);
  308.  
  309. -- --------------------------------------------------------
  310.  
  311. --
  312. -- Table structure for table `pisonet`
  313. --
  314.  
  315. CREATE TABLE `pisonet` (
  316. `pisonet_id` int(20) NOT NULL,
  317. `pisonet_image` text NOT NULL,
  318. `specification` text NOT NULL,
  319. `price` text NOT NULL,
  320. `pisonet_quantity` int(10) NOT NULL
  321. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  322.  
  323. --
  324. -- Dumping data for table `pisonet`
  325. --
  326.  
  327. INSERT INTO `pisonet` (`pisonet_id`, `pisonet_image`, `specification`, `price`, `pisonet_quantity`) VALUES
  328. (6, 'FB_IMG_1491645619652.jpg', '3 chair<br>1 table\n', '1200', 1);
  329.  
  330. -- --------------------------------------------------------
  331.  
  332. --
  333. -- Table structure for table `pisonet_stock`
  334. --
  335.  
  336. CREATE TABLE `pisonet_stock` (
  337. `pisonet_stock_id` int(20) NOT NULL,
  338. `stock_quantity` int(10) NOT NULL,
  339. `date` text NOT NULL,
  340. `pisonet_id` int(20) NOT NULL
  341. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  342.  
  343. --
  344. -- Dumping data for table `pisonet_stock`
  345. --
  346.  
  347. INSERT INTO `pisonet_stock` (`pisonet_stock_id`, `stock_quantity`, `date`, `pisonet_id`) VALUES
  348. (1, 40, 'December 20, 2016', 1);
  349.  
  350. -- --------------------------------------------------------
  351.  
  352. --
  353. -- Table structure for table `product`
  354. --
  355.  
  356. CREATE TABLE `product` (
  357. `product_id` int(10) NOT NULL,
  358. `product_name` varchar(20) NOT NULL,
  359. `product_price` float NOT NULL,
  360. `product_quantity` int(10) NOT NULL,
  361. `product_description` text NOT NULL,
  362. `product_image` text NOT NULL,
  363. `category_id` int(10) NOT NULL
  364. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  365.  
  366. --
  367. -- Dumping data for table `product`
  368. --
  369.  
  370. INSERT INTO `product` (`product_id`, `product_name`, `product_price`, `product_quantity`, `product_description`, `product_image`, `category_id`) VALUES
  371. (187, 'Dining Table', 1500, 2, 'Dining Tables', 'FB_IMG_1491645655021.jpg', 45),
  372. (188, 'Sala Set 2', 3000, 0, 'set two', 'FB_IMG_1492819157196.jpg', 46),
  373. (189, 'Penchair', 5000, 2, 'Pentchair', 'FB_IMG_1491645625703.jpg', 44),
  374. (190, 'Table Set', 10000, 3, 'Tables Set', 'FB_IMG_1491645635020.jpg', 46),
  375. (191, 'Cabinet Set', 12000, 3, 'Cabinet Set', 'FB_IMG_1492730775092.jpg', 46),
  376. (192, 'Aparador Set', 15000, 3, 'Aparador Set', 'FB_IMG_1492730781234.jpg', 46),
  377. (194, 'Tables Set Glass', 12000, 2, 'Four Chair and one table', '2b20e5f2a5379606b071da452ada07ec.jpg', 45),
  378. (195, 'Table Set 3', 2000, 4, 'Table with glass', '10b9da5f0ce46fdfb493f2070b1d3b6d.jpg', 45),
  379. (196, 'Sofa', 13000, 3, 'Soft and refreshing Blah Balah', '053c49f8603b1fddc2bc265cf6d50c0c.jpg', 45),
  380. (197, 'Awesome Table', 4000, 4, 'Bili kana ang ganda ee', 'images (5).jpg', 45),
  381. (198, 'Glass table', 1000000, 1, 'Naks ang design sulit ang bayad haha<br>', 'images (2).jpg', 45);
  382.  
  383. -- --------------------------------------------------------
  384.  
  385. --
  386. -- Table structure for table `product_category`
  387. --
  388.  
  389. CREATE TABLE `product_category` (
  390. `product_category_id` int(10) NOT NULL,
  391. `product_category_name` text NOT NULL,
  392. `product_category_description` text NOT NULL
  393. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  394.  
  395. --
  396. -- Dumping data for table `product_category`
  397. --
  398.  
  399. INSERT INTO `product_category` (`product_category_id`, `product_category_name`, `product_category_description`) VALUES
  400. (44, 'Chair', 'Chair'),
  401. (45, 'Tables', 'Tables'),
  402. (46, 'Furniture set', 'set');
  403.  
  404. -- --------------------------------------------------------
  405.  
  406. --
  407. -- Table structure for table `product_stock`
  408. --
  409.  
  410. CREATE TABLE `product_stock` (
  411. `product_stock_id` int(20) NOT NULL,
  412. `quantity_stock` int(10) NOT NULL,
  413. `last_stock` int(10) NOT NULL,
  414. `date` date NOT NULL,
  415. `product_id` int(20) NOT NULL
  416. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  417.  
  418. --
  419. -- Dumping data for table `product_stock`
  420. --
  421.  
  422. INSERT INTO `product_stock` (`product_stock_id`, `quantity_stock`, `last_stock`, `date`, `product_id`) VALUES
  423. (13, 70, 386, '2016-12-30', 41),
  424. (14, 20, 124, '2016-12-30', 35),
  425. (15, 90, 159, '2016-12-30', 37),
  426. (16, 60, 144, '2016-12-31', 35),
  427. (17, 90, 0, '2017-01-04', 35),
  428. (18, 8, 141, '2017-01-04', 37),
  429. (19, 4, 456, '2017-01-04', 41),
  430. (20, 7, 83, '2017-01-04', 39),
  431. (21, 1, 299, '2017-01-04', 40),
  432. (22, 1, 149, '2017-01-04', 37),
  433. (23, 20, 6, '2017-01-29', 151);
  434.  
  435. -- --------------------------------------------------------
  436.  
  437. --
  438. -- Table structure for table `rent`
  439. --
  440.  
  441. CREATE TABLE `rent` (
  442. `rent_id` int(20) NOT NULL,
  443. `units` int(5) NOT NULL,
  444. `pisonet_id` int(20) NOT NULL,
  445. `request_date` text NOT NULL,
  446. `status` text NOT NULL,
  447. `customer_id` int(20) NOT NULL
  448. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  449.  
  450. --
  451. -- Dumping data for table `rent`
  452. --
  453.  
  454. INSERT INTO `rent` (`rent_id`, `units`, `pisonet_id`, `request_date`, `status`, `customer_id`) VALUES
  455. (1, 50, 1, 'December 20, 2016', 'Cancelled', 2),
  456. (2, 2, 1, 'December 21, 2016', 'Cancelled', 1),
  457. (3, 1, 3, 'December 21, 2016', 'Pulled Out', 1),
  458. (4, 2, 3, 'December 21, 2016', 'Pulled Out', 1),
  459. (5, 1, 3, 'December 21, 2016', 'Pulled Out', 1),
  460. (6, 10, 5, 'December 21, 2016', 'Pulled Out', 2),
  461. (7, 90, 1, 'December 24, 2016', 'Pulled Out', 9),
  462. (8, 8, 1, 'December 24, 2016', 'Cancelled', 9),
  463. (9, 2, 1, 'January 25, 2017', 'Pulled Out', 10),
  464. (10, 2, 2, 'January 25, 2017', 'Pulled Out', 10),
  465. (11, 1, 6, 'May 9, 2017', 'Cancelled', 13);
  466.  
  467. -- --------------------------------------------------------
  468.  
  469. --
  470. -- Table structure for table `requisition`
  471. --
  472.  
  473. CREATE TABLE `requisition` (
  474. `requisition_id` int(11) NOT NULL,
  475. `name` text NOT NULL,
  476. `company` text NOT NULL,
  477. `contact_number` int(15) NOT NULL,
  478. `email` text NOT NULL,
  479. `home_address` text NOT NULL,
  480. `request` text NOT NULL,
  481. `status` varchar(15) NOT NULL
  482. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  483.  
  484. -- --------------------------------------------------------
  485.  
  486. --
  487. -- Table structure for table `requisition_details`
  488. --
  489.  
  490. CREATE TABLE `requisition_details` (
  491. `requisition_details_id` int(11) NOT NULL,
  492. `req_quantity` int(11) NOT NULL,
  493. `req_unit_price` int(11) NOT NULL,
  494. `req_total` date NOT NULL,
  495. `product_id` int(11) NOT NULL,
  496. `requisition_id` int(11) NOT NULL
  497. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  498.  
  499. -- --------------------------------------------------------
  500.  
  501. --
  502. -- Table structure for table `return_order`
  503. --
  504.  
  505. CREATE TABLE `return_order` (
  506. `return_id` int(20) NOT NULL,
  507. `quantity` int(5) NOT NULL,
  508. `reason` text NOT NULL,
  509. `reimbursement` text NOT NULL,
  510. `return_date` text NOT NULL,
  511. `product_id` int(20) NOT NULL,
  512. `customer_id` int(20) NOT NULL,
  513. `order_id` int(20) NOT NULL
  514. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  515.  
  516. --
  517. -- Dumping data for table `return_order`
  518. --
  519.  
  520. INSERT INTO `return_order` (`return_id`, `quantity`, `reason`, `reimbursement`, `return_date`, `product_id`, `customer_id`, `order_id`) VALUES
  521. (1, 1, 'Damage Packaging', '200', 'December 21, 2016', 0, 1, 17),
  522. (2, 1, 'Missing Parts', '200', 'December 21, 2016', 39, 1, 17),
  523. (3, 1, 'Unhappy with the item quality', 'Credit store', 'December 21, 2016', 39, 1, 17),
  524. (4, 1, 'Missing Parts', 'Replace by another product', 'December 22, 2016', 39, 2, 27),
  525. (5, 1, 'Missing Parts', 'Replace by another product', 'December 23, 2016', 35, 9, 36),
  526. (6, 1, 'Missing Parts', 'Replace by another product', 'December 24, 2016', 35, 9, 36),
  527. (7, 1, 'Missing Parts', 'Replace by another product', 'December 24, 2016', 35, 9, 36),
  528. (8, 100, 'Wrong Item', 'Credit store', 'January 3, 2017', 37, 1, 40),
  529. (9, 1, 'Defective item', 'Credit store', 'January 27, 2017', 35, 11, 15),
  530. (10, 1, 'Unhappy with the item quality', 'Replace by another product', 'May 9, 2017', 188, 13, 21);
  531.  
  532. -- --------------------------------------------------------
  533.  
  534. --
  535. -- Table structure for table `sale_discont`
  536. --
  537.  
  538. CREATE TABLE `sale_discont` (
  539. `sale_id` int(10) NOT NULL,
  540. `sale_price` float NOT NULL,
  541. `description` varchar(50) NOT NULL,
  542. `startdate` date NOT NULL,
  543. `enddate` date NOT NULL,
  544. `product_id` int(10) NOT NULL
  545. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  546.  
  547. -- --------------------------------------------------------
  548.  
  549. --
  550. -- Table structure for table `service`
  551. --
  552.  
  553. CREATE TABLE `service` (
  554. `service_id` int(10) NOT NULL,
  555. `service_name` text NOT NULL,
  556. `service_description` text NOT NULL,
  557. `service_price` int(10) NOT NULL,
  558. `service_image` text NOT NULL,
  559. `service_category_id` int(10) NOT NULL
  560. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  561.  
  562. -- --------------------------------------------------------
  563.  
  564. --
  565. -- Table structure for table `service_category`
  566. --
  567.  
  568. CREATE TABLE `service_category` (
  569. `service_category_id` int(10) NOT NULL,
  570. `service_category_name` varchar(50) NOT NULL,
  571. `service_category_description` varchar(50) NOT NULL
  572. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  573.  
  574. -- --------------------------------------------------------
  575.  
  576. --
  577. -- Table structure for table `voucher`
  578. --
  579.  
  580. CREATE TABLE `voucher` (
  581. `voucher_id` int(20) NOT NULL,
  582. `date_issued` text NOT NULL,
  583. `amount` float NOT NULL,
  584. `customer_id` int(11) NOT NULL
  585. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  586.  
  587. --
  588. -- Dumping data for table `voucher`
  589. --
  590.  
  591. INSERT INTO `voucher` (`voucher_id`, `date_issued`, `amount`, `customer_id`) VALUES
  592. (1, 'December 21, 2016', 200, 1),
  593. (2, 'January 3, 2017', 0, 1),
  594. (3, 'January 27, 2017', 0, 11);
  595.  
  596. --
  597. -- Indexes for dumped tables
  598. --
  599.  
  600. --
  601. -- Indexes for table `cancel_order`
  602. --
  603. ALTER TABLE `cancel_order`
  604. ADD PRIMARY KEY (`cancel_id`);
  605.  
  606. --
  607. -- Indexes for table `cashier_transaction`
  608. --
  609. ALTER TABLE `cashier_transaction`
  610. ADD PRIMARY KEY (`transaction_id`);
  611.  
  612. --
  613. -- Indexes for table `customer`
  614. --
  615. ALTER TABLE `customer`
  616. ADD PRIMARY KEY (`customer_id`);
  617.  
  618. --
  619. -- Indexes for table `employee`
  620. --
  621. ALTER TABLE `employee`
  622. ADD PRIMARY KEY (`employee_id`);
  623.  
  624. --
  625. -- Indexes for table `invoice`
  626. --
  627. ALTER TABLE `invoice`
  628. ADD PRIMARY KEY (`invoice_id`);
  629.  
  630. --
  631. -- Indexes for table `orders`
  632. --
  633. ALTER TABLE `orders`
  634. ADD PRIMARY KEY (`order_id`);
  635.  
  636. --
  637. -- Indexes for table `order_details`
  638. --
  639. ALTER TABLE `order_details`
  640. ADD PRIMARY KEY (`order_details_id`);
  641.  
  642. --
  643. -- Indexes for table `pisonet`
  644. --
  645. ALTER TABLE `pisonet`
  646. ADD PRIMARY KEY (`pisonet_id`);
  647.  
  648. --
  649. -- Indexes for table `pisonet_stock`
  650. --
  651. ALTER TABLE `pisonet_stock`
  652. ADD PRIMARY KEY (`pisonet_stock_id`);
  653.  
  654. --
  655. -- Indexes for table `product`
  656. --
  657. ALTER TABLE `product`
  658. ADD PRIMARY KEY (`product_id`);
  659.  
  660. --
  661. -- Indexes for table `product_category`
  662. --
  663. ALTER TABLE `product_category`
  664. ADD PRIMARY KEY (`product_category_id`);
  665.  
  666. --
  667. -- Indexes for table `product_stock`
  668. --
  669. ALTER TABLE `product_stock`
  670. ADD PRIMARY KEY (`product_stock_id`);
  671.  
  672. --
  673. -- Indexes for table `rent`
  674. --
  675. ALTER TABLE `rent`
  676. ADD PRIMARY KEY (`rent_id`);
  677.  
  678. --
  679. -- Indexes for table `requisition`
  680. --
  681. ALTER TABLE `requisition`
  682. ADD PRIMARY KEY (`requisition_id`);
  683.  
  684. --
  685. -- Indexes for table `requisition_details`
  686. --
  687. ALTER TABLE `requisition_details`
  688. ADD PRIMARY KEY (`requisition_details_id`);
  689.  
  690. --
  691. -- Indexes for table `return_order`
  692. --
  693. ALTER TABLE `return_order`
  694. ADD PRIMARY KEY (`return_id`);
  695.  
  696. --
  697. -- Indexes for table `sale_discont`
  698. --
  699. ALTER TABLE `sale_discont`
  700. ADD PRIMARY KEY (`sale_id`);
  701.  
  702. --
  703. -- Indexes for table `service`
  704. --
  705. ALTER TABLE `service`
  706. ADD PRIMARY KEY (`service_id`);
  707.  
  708. --
  709. -- Indexes for table `service_category`
  710. --
  711. ALTER TABLE `service_category`
  712. ADD PRIMARY KEY (`service_category_id`);
  713.  
  714. --
  715. -- Indexes for table `voucher`
  716. --
  717. ALTER TABLE `voucher`
  718. ADD PRIMARY KEY (`voucher_id`);
  719.  
  720. --
  721. -- AUTO_INCREMENT for dumped tables
  722. --
  723.  
  724. --
  725. -- AUTO_INCREMENT for table `cancel_order`
  726. --
  727. ALTER TABLE `cancel_order`
  728. MODIFY `cancel_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
  729. --
  730. -- AUTO_INCREMENT for table `cashier_transaction`
  731. --
  732. ALTER TABLE `cashier_transaction`
  733. MODIFY `transaction_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
  734. --
  735. -- AUTO_INCREMENT for table `customer`
  736. --
  737. ALTER TABLE `customer`
  738. MODIFY `customer_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
  739. --
  740. -- AUTO_INCREMENT for table `employee`
  741. --
  742. ALTER TABLE `employee`
  743. MODIFY `employee_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  744. --
  745. -- AUTO_INCREMENT for table `invoice`
  746. --
  747. ALTER TABLE `invoice`
  748. MODIFY `invoice_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
  749. --
  750. -- AUTO_INCREMENT for table `orders`
  751. --
  752. ALTER TABLE `orders`
  753. MODIFY `order_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
  754. --
  755. -- AUTO_INCREMENT for table `order_details`
  756. --
  757. ALTER TABLE `order_details`
  758. MODIFY `order_details_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
  759. --
  760. -- AUTO_INCREMENT for table `pisonet`
  761. --
  762. ALTER TABLE `pisonet`
  763. MODIFY `pisonet_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  764. --
  765. -- AUTO_INCREMENT for table `pisonet_stock`
  766. --
  767. ALTER TABLE `pisonet_stock`
  768. MODIFY `pisonet_stock_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  769. --
  770. -- AUTO_INCREMENT for table `product`
  771. --
  772. ALTER TABLE `product`
  773. MODIFY `product_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=199;
  774. --
  775. -- AUTO_INCREMENT for table `product_category`
  776. --
  777. ALTER TABLE `product_category`
  778. MODIFY `product_category_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
  779. --
  780. -- AUTO_INCREMENT for table `product_stock`
  781. --
  782. ALTER TABLE `product_stock`
  783. MODIFY `product_stock_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
  784. --
  785. -- AUTO_INCREMENT for table `rent`
  786. --
  787. ALTER TABLE `rent`
  788. MODIFY `rent_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  789. --
  790. -- AUTO_INCREMENT for table `requisition`
  791. --
  792. ALTER TABLE `requisition`
  793. MODIFY `requisition_id` int(11) NOT NULL AUTO_INCREMENT;
  794. --
  795. -- AUTO_INCREMENT for table `requisition_details`
  796. --
  797. ALTER TABLE `requisition_details`
  798. MODIFY `requisition_details_id` int(11) NOT NULL AUTO_INCREMENT;
  799. --
  800. -- AUTO_INCREMENT for table `return_order`
  801. --
  802. ALTER TABLE `return_order`
  803. MODIFY `return_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  804. --
  805. -- AUTO_INCREMENT for table `sale_discont`
  806. --
  807. ALTER TABLE `sale_discont`
  808. MODIFY `sale_id` int(10) NOT NULL AUTO_INCREMENT;
  809. --
  810. -- AUTO_INCREMENT for table `service`
  811. --
  812. ALTER TABLE `service`
  813. MODIFY `service_id` int(10) NOT NULL AUTO_INCREMENT;
  814. --
  815. -- AUTO_INCREMENT for table `service_category`
  816. --
  817. ALTER TABLE `service_category`
  818. MODIFY `service_category_id` int(10) NOT NULL AUTO_INCREMENT;
  819. --
  820. -- AUTO_INCREMENT for table `voucher`
  821. --
  822. ALTER TABLE `voucher`
  823. MODIFY `voucher_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  824. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  825. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  826. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Add Comment
Please, Sign In to add comment