-
Notifications
You must be signed in to change notification settings - Fork 0
/
myshop.sql
245 lines (210 loc) · 16.3 KB
/
myshop.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 19, 2014 at 03:31 PM
-- Server version: 5.6.12-log
-- PHP Version: 5.4.16
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: `myshop`
--
CREATE DATABASE IF NOT EXISTS `myshop` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `myshop`;
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE IF NOT EXISTS `category` (
`cat_id` int(11) NOT NULL AUTO_INCREMENT,
`cat_name` varchar(20) NOT NULL DEFAULT '',
`dscrpt` varchar(100) DEFAULT NULL,
`parent_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`cat_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`cat_id`, `cat_name`, `dscrpt`, `parent_id`) VALUES
(1, '男士正装', '男士正装', 0),
(2, '西装', '西装', 1),
(3, '衬衫', '衬衫', 1),
(4, '女士正装', '女士正装', 0),
(5, '套装', '套装', 4),
(6, '衬衫', '衬衫', 4),
(7, '正装鞋', '正装鞋', 0),
(8, '男士皮鞋', '男士皮鞋', 7),
(9, '女士皮鞋', '女士皮鞋', 7),
(10, '配饰', '配饰', 0),
(11, '领带', '领带', 10),
(12, '皮带', '皮带', 10);
-- --------------------------------------------------------
--
-- Table structure for table `goods`
--
CREATE TABLE IF NOT EXISTS `goods` (
`goods_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`goods_sn` char(15) NOT NULL DEFAULT '',
`cat_id` smallint(6) NOT NULL DEFAULT '0',
`brand_id` smallint(6) NOT NULL DEFAULT '0',
`goods_name` varchar(60) NOT NULL DEFAULT '',
`shop_price` decimal(9,2) NOT NULL DEFAULT '0.00',
`market_price` decimal(9,2) NOT NULL DEFAULT '0.00',
`goods_number` smallint(6) NOT NULL DEFAULT '1',
`click_count` mediumint(9) NOT NULL DEFAULT '0',
`goods_weight` decimal(6,3) NOT NULL DEFAULT '0.000',
`goods_brief` varchar(100) NOT NULL DEFAULT '',
`goods_desc` text NOT NULL,
`thumb_img` varchar(100) NOT NULL DEFAULT '',
`goods_img` varchar(100) NOT NULL DEFAULT '',
`ori_img` varchar(100) NOT NULL DEFAULT '',
`is_on_sale` tinyint(4) NOT NULL DEFAULT '1',
`is_delete` tinyint(4) NOT NULL DEFAULT '0',
`is_best` tinyint(4) NOT NULL DEFAULT '0',
`is_new` tinyint(4) NOT NULL DEFAULT '0',
`is_hot` tinyint(4) NOT NULL DEFAULT '0',
`add_time` int(10) unsigned NOT NULL DEFAULT '0',
`last_update` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`goods_id`),
UNIQUE KEY `goods_sn` (`goods_sn`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=28 ;
--
-- Dumping data for table `goods`
--
INSERT INTO `goods` (`goods_id`, `goods_sn`, `cat_id`, `brand_id`, `goods_name`, `shop_price`, `market_price`, `goods_number`, `click_count`, `goods_weight`, `goods_brief`, `goods_desc`, `thumb_img`, `goods_img`, `ori_img`, `is_on_sale`, `is_delete`, `is_best`, `is_new`, `is_hot`, `add_time`, `last_update`) VALUES
(1, 'BL2012121939587', 2, 0, '两扣双开衩平驳头斜兜男士西服套装3312/纯藏青色人字纹/羊毛+涤纶', '799.00', '1598.00', 15, 0, '0.000', '', '', 'data/images/201212/19/thumb_aifwnt.JPG', 'data/images/201212/19/goods_aifwnt.JPG', 'data/images/201212/19/aifwnt.JPG', 1, 0, 0, 1, 0, 1355915283, 0),
(2, 'BL2012121913673', 2, 0, '纯羊毛一粒扣枪驳领纯黑西服套装', '999.00', '1325.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_z2gd86.JPG', 'data/images/201212/19/goods_z2gd86.JPG', 'data/images/201212/19/z2gd86.JPG', 1, 0, 0, 0, 0, 1355915493, 0),
(3, 'BL2012121919874', 2, 0, '两扣平驳领棕色格纹男士休闲单西D6959', '1490.00', '1643.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_dx9ghq.JPG', 'data/images/201212/19/goods_dx9ghq.JPG', 'data/images/201212/19/dx9ghq.JPG', 1, 0, 0, 0, 0, 1355915572, 0),
(4, 'BL2012121970923', 3, 0, '蓝黑竖条纹男士休闲衬衫', '199.00', '238.00', 19, 0, '0.000', '', '', 'data/images/201212/19/thumb_juir8s.JPG', 'data/images/201212/19/goods_juir8s.JPG', 'data/images/201212/19/juir8s.JPG', 1, 0, 0, 1, 0, 1355915656, 0),
(5, 'BL2012121980647', 3, 0, '蓝底提花咖色竖条纹修身正装衬衫', '199.00', '234.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_rad3wq.JPG', 'data/images/201212/19/goods_rad3wq.JPG', 'data/images/201212/19/rad3wq.JPG', 1, 0, 0, 0, 0, 1355915689, 0),
(6, 'BL2012121956217', 3, 0, '男士短袖衬衫A52D/纯白暗竖纹/莫代尔棉', '45.00', '54.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_3fckzt.jpg', 'data/images/201212/19/goods_3fckzt.jpg', 'data/images/201212/19/3fckzt.jpg', 1, 0, 0, 1, 0, 1355915726, 0),
(7, 'BL2012121936338', 5, 0, '枪驳大领面后开叉短款两扣女士正装', '567.00', '1324.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_wcri9z.JPG', 'data/images/201212/19/goods_wcri9z.JPG', 'data/images/201212/19/wcri9z.JPG', 1, 0, 0, 0, 0, 1355915834, 0),
(8, 'BL2012121994403', 5, 0, '泡泡袖后领色丁拼接平驳领一扣女士正装套裤/黑色', '482.00', '897.00', 19, 0, '0.000', '', '', 'data/images/201212/19/thumb_5tsyhu.JPG', 'data/images/201212/19/goods_5tsyhu.JPG', 'data/images/201212/19/5tsyhu.JPG', 1, 0, 0, 0, 0, 1355915895, 0),
(9, 'BL2012121977239', 5, 0, '本白压褶下摆短袖套裙', '318.00', '564.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_ay86zh.JPG', 'data/images/201212/19/goods_ay86zh.JPG', 'data/images/201212/19/ay86zh.JPG', 1, 0, 0, 0, 0, 1355915936, 0),
(10, 'BL2012121941490', 5, 0, '枪驳大领面1扣女士正装/亮咖色', '499.00', '675.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_n29dmp.JPG', 'data/images/201212/19/goods_n29dmp.JPG', 'data/images/201212/19/n29dmp.JPG', 1, 0, 0, 0, 0, 1355915993, 0),
(11, 'BL2012121985783', 6, 0, '纯白斜条棉涤女士衬衫', '42.00', '67.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_byadc8.JPG', 'data/images/201212/19/goods_byadc8.JPG', 'data/images/201212/19/byadc8.JPG', 1, 0, 0, 0, 0, 1355916069, 0),
(12, 'BL2012121952838', 6, 0, '女士长袖衬衫165/蓝条纹/莫代尔棉V领花边', '99.00', '134.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_2mhjt4.JPG', 'data/images/201212/19/goods_2mhjt4.JPG', 'data/images/201212/19/2mhjt4.JPG', 1, 0, 0, 0, 0, 1355916106, 0),
(13, 'BL2012121982746', 6, 0, '白色暗竖纹V领莫代尔棉衬衫', '89.00', '156.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_fys85v.JPG', 'data/images/201212/19/goods_fys85v.JPG', 'data/images/201212/19/fys85v.JPG', 1, 0, 0, 0, 0, 1355916157, 0),
(14, 'BL2012121992429', 8, 0, '男士系带正装鞋/黑色/牛皮', '150.00', '250.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_yvwnc9.JPG', 'data/images/201212/19/goods_yvwnc9.JPG', 'data/images/201212/19/yvwnc9.JPG', 1, 0, 0, 1, 0, 1355916281, 0),
(15, 'BL2012121971035', 8, 0, '滑轮添奴男士系带正装鞋/牛皮', '150.00', '250.00', 16, 0, '0.000', '', '', 'data/images/201212/19/thumb_dh2yxm.JPG', 'data/images/201212/19/goods_dh2yxm.JPG', 'data/images/201212/19/dh2yxm.JPG', 1, 0, 0, 1, 0, 1355916549, 0),
(16, 'BL2012121977793', 8, 0, '全牛皮小圆头正装鞋', '199.00', '234.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_iu5xgq.JPG', 'data/images/201212/19/goods_iu5xgq.JPG', 'data/images/201212/19/iu5xgq.JPG', 1, 0, 0, 0, 0, 1355916612, 0),
(17, 'BL2012121952414', 0, 0, '鞋面三扣装饰胎牛皮带绒中跟踝靴/黑色', '299.00', '399.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_i7pqy8.JPG', 'data/images/201212/19/goods_i7pqy8.JPG', 'data/images/201212/19/i7pqy8.JPG', 1, 0, 0, 0, 0, 1355916746, 0),
(18, 'BL2012121957666', 9, 0, '简约中跟女士正装鞋黑色', '199.00', '399.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_fsuh7j.JPG', 'data/images/201212/19/goods_fsuh7j.JPG', 'data/images/201212/19/fsuh7j.JPG', 1, 0, 0, 1, 0, 1355916792, 0),
(19, 'BL2012121917277', 9, 0, '单侧镶钻漆皮中跟正装鞋/黑色', '145.00', '234.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_uigxw5.JPG', 'data/images/201212/19/goods_uigxw5.JPG', 'data/images/201212/19/uigxw5.JPG', 1, 0, 0, 1, 0, 1355916829, 0),
(20, 'BL2012121993042', 11, 0, '深蓝纯色领带', '89.00', '139.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_cbnrqe.JPG', 'data/images/201212/19/goods_cbnrqe.JPG', 'data/images/201212/19/cbnrqe.JPG', 1, 0, 0, 0, 0, 1355916948, 0),
(21, 'BL2012121965862', 11, 0, '100%桑蚕丝天蓝底黑斜纹领带', '128.00', '234.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_uc9n7f.JPG', 'data/images/201212/19/goods_uc9n7f.JPG', 'data/images/201212/19/uc9n7f.JPG', 1, 0, 0, 0, 0, 1355916979, 0),
(22, 'BL2012121940360', 11, 0, '100%桑蚕丝灰黑斜条纹领带', '128.00', '234.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_m5qd2j.JPG', 'data/images/201212/19/goods_m5qd2j.JPG', 'data/images/201212/19/m5qd2j.JPG', 1, 0, 0, 0, 0, 1355917010, 0),
(23, 'BL2012121939272', 12, 0, '不锈钢自动扣荔枝纹牛皮正装腰带', '69.00', '129.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_kixvwy.JPG', 'data/images/201212/19/goods_kixvwy.JPG', 'data/images/201212/19/kixvwy.JPG', 1, 0, 0, 0, 0, 1355917090, 0),
(24, 'BL2012121926113', 12, 0, '黑色烤漆不锈钢自动扣细纹牛皮正装腰带', '89.00', '169.00', 19, 0, '0.000', '', '', 'data/images/201212/19/thumb_avkfd4.JPG', 'data/images/201212/19/goods_avkfd4.JPG', 'data/images/201212/19/avkfd4.JPG', 1, 0, 0, 0, 0, 1355917125, 0),
(25, 'BL2012121943041', 12, 0, '银色不锈钢针扣头层小牛皮二层同色皮底正装腰带', '99.00', '169.00', 20, 0, '0.000', '', '', 'data/images/201212/19/thumb_nv7cas.JPG', 'data/images/201212/19/goods_nv7cas.JPG', 'data/images/201212/19/nv7cas.JPG', 1, 0, 0, 0, 0, 1355917162, 0),
(26, 'GD1412056287477', 11, 0, '女士吊带领带', '80.00', '100.00', 20, 0, '0.100', '领带用于打高尔夫时使用', '<p>不可不看的领带,男女都可以使用</p><p> <img src="/ueditor/php/upload/image/20140930/1412056151119959.jpg" title="1412056151119959.jpg" alt="u=3314328220,2687043264&fm=23&gp=0.jpg"/> <img src="/ueditor/php/upload/image/20140930/1412056198266883.jpg" alt="535827119231746857.jpg" width="305" height="292" style="width: 305px; height: 292px;"/></p>', 'data/uploads/201409/30/thumb_hhfk2a.jpg', 'data/uploads/201409/30/goods_hhfk2a.jpg', 'data/uploads/201409/30/hhfk2a.jpg', 1, 0, 1, 1, 1, 1412056287, 0),
(27, 'GD1413732193491', 2, 0, '测试回收站', '1111.00', '11111.00', 12, 0, '20.000', 'meiyoushenmemiaosu', '<p>这是一个拜读文本文件</p>', '', '', '', 1, 1, 0, 1, 1, 1413732193, 0);
-- --------------------------------------------------------
--
-- Table structure for table `goodscomments`
--
CREATE TABLE IF NOT EXISTS `goodscomments` (
`comments_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`goods_id` int(10) unsigned NOT NULL DEFAULT '0',
`goods_name` varchar(30) NOT NULL DEFAULT '',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`username` varchar(20) NOT NULL DEFAULT '',
`email` varchar(100) NOT NULL DEFAULT '',
`clevel` tinyint(1) NOT NULL DEFAULT '0',
`ccontent` varchar(500) NOT NULL DEFAULT '',
`add_time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`comments_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `goodscomments`
--
INSERT INTO `goodscomments` (`comments_id`, `goods_id`, `goods_name`, `user_id`, `username`, `email`, `clevel`, `ccontent`, `add_time`) VALUES
(1, 6, '男士短袖衬衫A52D/纯白暗竖纹/莫代尔棉', 2, 'qiushuiqs', '[email protected]', 5, 'sdddd', 1413730228),
(2, 6, '男士短袖衬衫A52D/纯白暗竖纹/莫代尔棉', 2, 'qiushuiqs', '[email protected]', 5, 'sdddd', 1413730237),
(3, 4, '蓝黑竖条纹男士休闲衬衫', 2, 'qiushuiqs', '[email protected]', 1, '非常好的衣服', 1413730673),
(4, 4, '蓝黑竖条纹男士休闲衬衫', 0, 'annonnymous', '[email protected]', 2, '好想买这个商品', 1413731195);
-- --------------------------------------------------------
--
-- Table structure for table `orderinfo`
--
CREATE TABLE IF NOT EXISTS `orderinfo` (
`order_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`order_sn` char(15) NOT NULL DEFAULT '',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`username` varchar(20) NOT NULL DEFAULT '',
`zone` varchar(30) NOT NULL DEFAULT '',
`address` varchar(60) NOT NULL DEFAULT '',
`postcode` char(6) NOT NULL DEFAULT '',
`receiver` varchar(10) NOT NULL DEFAULT '',
`email` varchar(100) NOT NULL DEFAULT '',
`tel` varchar(20) NOT NULL DEFAULT '',
`mobile` char(11) NOT NULL DEFAULT '',
`building` varchar(30) NOT NULL DEFAULT '',
`best_time` varchar(10) NOT NULL DEFAULT '',
`add_time` int(10) unsigned NOT NULL DEFAULT '0',
`order_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
`pay_method` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`order_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `orderinfo`
--
INSERT INTO `orderinfo` (`order_id`, `order_sn`, `user_id`, `username`, `zone`, `address`, `postcode`, `receiver`, `email`, `tel`, `mobile`, `building`, `best_time`, `add_time`, `order_amount`, `pay_method`) VALUES
(1, 'OD1411894651591', 0, 'anonymous', '北京', '不知道地址', '21000', '张晓萌', '[email protected]', '1344232222', '232322233', 'TIANMEN', '', 1411894651, '4627.00', 4),
(2, 'OD1411895662192', 0, 'anonymous', 'wewe', 'Room 205, Unit 16, No.88 Darwin Road', '200000', 'weeew', '[email protected]', '', '', '', '', 1411895662, '150.00', 4),
(3, 'OD1413732475507', 0, 'anonymous', '河南', '河南驻马店市虹口区太平路87号', '100000', '张三', '[email protected]', '', '13823224312', '', '', 1413732475, '438.00', 4);
-- --------------------------------------------------------
--
-- Table structure for table `transactinfo`
--
CREATE TABLE IF NOT EXISTS `transactinfo` (
`trans_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`order_id` int(10) unsigned NOT NULL DEFAULT '0',
`order_sn` char(15) NOT NULL DEFAULT '',
`goods_id` int(10) unsigned NOT NULL DEFAULT '0',
`goods_name` varchar(30) NOT NULL DEFAULT '',
`goods_number` smallint(6) NOT NULL DEFAULT '1',
`shop_price` decimal(9,2) NOT NULL DEFAULT '0.00',
`subtotal` decimal(9,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`trans_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `transactinfo`
--
INSERT INTO `transactinfo` (`trans_id`, `order_id`, `order_sn`, `goods_id`, `goods_name`, `goods_number`, `shop_price`, `subtotal`) VALUES
(1, 1, 'OD1411894651591', 15, '滑轮添奴男士系带正装鞋/牛皮', 1, '150.00', '150.00'),
(2, 1, 'OD1411894651591', 1, '两扣双开衩平驳头斜兜男士西服套装3312/纯藏青色人字纹/羊', 5, '799.00', '3995.00'),
(3, 1, 'OD1411894651591', 8, '泡泡袖后领色丁拼接平驳领一扣女士正装套裤/黑色', 1, '482.00', '482.00'),
(4, 2, 'OD1411895662192', 15, '滑轮添奴男士系带正装鞋/牛皮', 1, '150.00', '150.00'),
(5, 3, 'OD1413732475507', 24, '黑色烤漆不锈钢自动扣细纹牛皮正装腰带', 1, '89.00', '89.00'),
(6, 3, 'OD1413732475507', 15, '滑轮添奴男士系带正装鞋/牛皮', 1, '150.00', '150.00'),
(7, 3, 'OD1413732475507', 4, '蓝黑竖条纹男士休闲衬衫', 1, '199.00', '199.00');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL DEFAULT '',
`email` varchar(100) NOT NULL DEFAULT '',
`password` char(32) NOT NULL DEFAULT '',
`regtime` int(10) unsigned NOT NULL DEFAULT '0',
`lastlogin` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`user_id`, `username`, `email`, `password`, `regtime`, `lastlogin`) VALUES
(1, 'sdsd', 'sdsd', 'sdsd', 0, 0),
(2, 'qiushuiqs', '[email protected]', '6df2406fa64fa4c156f2603518413dc5', 1413456341, 0),
(3, 'tom123', '[email protected]', '5caf72868c94f184650f43413092e82c', 1413606274, 0);
/*!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 */;