-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheshopper.sql
128 lines (105 loc) · 3.23 KB
/
eshopper.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 15, 2015 at 11:52 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
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: `eshopper`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_products`
--
CREATE TABLE IF NOT EXISTS `tbl_products` (
`p_id` int(11) NOT NULL AUTO_INCREMENT,
`p_name` varchar(255) NOT NULL,
`p_img` varchar(255) NOT NULL,
`p_details` text NOT NULL,
`p_price` varchar(10) NOT NULL,
`p_cat_id` int(11) NOT NULL,
`p_subcat_id` int(11) NOT NULL,
`p_brand_id` int(11) NOT NULL,
`p_small` varchar(255) NOT NULL,
`p_medium` varchar(255) NOT NULL,
`p_large` varchar(255) NOT NULL,
`p_arival_date` varchar(10) NOT NULL,
PRIMARY KEY (`p_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_products_brand`
--
CREATE TABLE IF NOT EXISTS `tbl_products_brand` (
`p_brand_id` int(11) NOT NULL AUTO_INCREMENT,
`p_brand_name` varchar(255) NOT NULL,
PRIMARY KEY (`p_brand_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
--
-- Dumping data for table `tbl_products_brand`
--
INSERT INTO `tbl_products_brand` (`p_brand_id`, `p_brand_name`) VALUES
(1, 'Lotto'),
(2, 'Fusion'),
(3, 'Easy'),
(4, 'OutLook'),
(5, 'Arong'),
(6, 'Galliver'),
(7, 'Raymond'),
(8, 'Test 123');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_products_category`
--
CREATE TABLE IF NOT EXISTS `tbl_products_category` (
`p_cat_id` int(11) NOT NULL AUTO_INCREMENT,
`p_cat_name` varchar(255) NOT NULL,
PRIMARY KEY (`p_cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `tbl_products_category`
--
INSERT INTO `tbl_products_category` (`p_cat_id`, `p_cat_name`) VALUES
(1, 'Womens'),
(2, 'Mens'),
(3, 'Kids'),
(5, 'Winter'),
(6, 'Accessoris'),
(7, 'Fast Food');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_products_subcategory`
--
CREATE TABLE IF NOT EXISTS `tbl_products_subcategory` (
`p_subcat_id` int(11) NOT NULL AUTO_INCREMENT,
`p_subcat_name` varchar(255) NOT NULL,
`p_cat_id` int(11) NOT NULL,
PRIMARY KEY (`p_subcat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
--
-- Dumping data for table `tbl_products_subcategory`
--
INSERT INTO `tbl_products_subcategory` (`p_subcat_id`, `p_subcat_name`, `p_cat_id`) VALUES
(2, '3-Pieces', 1),
(3, 'T-Shirt', 1),
(4, 'Borkha', 1),
(5, 'Body Spary', 1),
(6, 'T-Shirt', 2),
(7, 'Full Pants', 2),
(8, 'Formal Shirt', 2),
(9, 'Body Spary', 2),
(10, 'For Women', 5),
(11, 'For Men', 5),
(12, 'Mobile', 6),
(13, 'Laptop', 6);
/*!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 */;