-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpos_db.sql
98 lines (78 loc) · 2.69 KB
/
pos_db.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 20, 2019 at 03:18 PM
-- 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: `pos_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE IF NOT EXISTS `category` (
`category_id` int(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`category_id`, `category_name`) VALUES
(1, 'Baby'),
(2, 'Womans Fashion'),
(3, 'Mens Fashion');
-- --------------------------------------------------------
--
-- Table structure for table `product`
--
CREATE TABLE IF NOT EXISTS `product` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`product_name` varchar(100) DEFAULT NULL,
`product_price` int(11) DEFAULT NULL,
`product_category_id` int(11) DEFAULT NULL,
`product_subcategory_id` int(11) DEFAULT NULL,
PRIMARY KEY (`product_id`),
KEY `product_category_id` (`product_category_id`),
KEY `product_subcategory_id` (`product_subcategory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `product`
--
INSERT INTO `product` (`product_id`, `product_name`, `product_price`, `product_category_id`, `product_subcategory_id`) VALUES
(1, 'Hanes Mens Ecosmart Fleece Sweatshirt', 50, 3, 7);
-- --------------------------------------------------------
--
-- Table structure for table `sub_category`
--
CREATE TABLE IF NOT EXISTS `sub_category` (
`subcategory_id` int(11) NOT NULL AUTO_INCREMENT,
`subcategory_name` varchar(100) DEFAULT NULL,
`subcategory_category_id` int(11) DEFAULT NULL,
PRIMARY KEY (`subcategory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `sub_category`
--
INSERT INTO `sub_category` (`subcategory_id`, `subcategory_name`, `subcategory_category_id`) VALUES
(1, 'Baby Care', 1),
(2, 'Baby Stationery', 1),
(3, 'Baby & Toddler Toys', 1),
(4, 'Clothing', 2),
(5, 'Shoes', 2),
(6, 'Jewelry', 2),
(7, 'Clothing', 3),
(8, 'Watches', 3),
(9, 'Contemporary', 3);
/*!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 */;