1. Analysis of the database.
2.maven the pom.xml configuration, project initialization packet structure.
3. Configure git
4.mybatis-generator reverse engineering.
5. Integrated SSM, the log service, ftp service, automatic injection
6. The entire project will be submitted to the git warehouse, divided into two warehouses, a new reservations made after the project can be used, one to continue to write code
A total of eight tables: 1.user: user table; 2.category: Classification; 3.product:. Products table; Table 4 cart cart; 5. payment information table info; 6. Orders table the Order ; 7. Order Details table Order_Item ; 8. The shipping address shipping:
1.user user table:
DROP TABLE IF EXISTS `mmall_user`;: If the table named" mmall_user "delete table
AUTO_INCREMENT: automatic growth
COMMENT 'user table id': add comments to a column
UNIQUE KEY `user_name_unique`: user name is a unique index, a unique value judgment to the database
`password` varchar (50) NOT NULL COMMENT ' user password, the MD5 encryption ': password needs to be encrypted, so that the cleartext password can not see the database
- ---------------------------- - the Table Structure for `mmall_user` - ---------- ------------------ the DROP tABLE `mmall_user` the IF EXISTS; the CREATE tABLE mmall_user`` ( `id` int (. 11) the AUTO_INCREMENT the COMMENT the NOT NULL 'user table ID', ` username` varchar (50) NOT NULL COMMENT ' username', `password` VARCHAR (50) the COMMENT the NOT NULL 'user password, MD5 encryption', ` email` VARCHAR (50) the DEFAULT NULL, `phone` VARCHAR (20 is) the DEFAULT NULL, `question` VARCHAR (100) NULL the DEFAULT the COMMENT 'password recovery problem', ` answer` VARCHAR (100) NULL the DEFAULT the COMMENT 'password recovery answers', `role` int (4) the NOT NULL the COMMENT' role 0- administrator, 1 ordinary user ', `create_time` the NOT NULL datetime the COMMENT' creation time ', `update_time` datetime NOT NULL COMMENT 'last updated' PRIMARY KEY (` id`), UNIQUE KEY `user_name_unique` (`username`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of `mmall_user` -- ---------------------------- BEGIN; INSERT INTO `mmall_user` VALUES
('1', 'admin', '427338237BD929443EC5D48E24FD2B1A', '[email protected]', '13800138000', '问题', '答案', '1', '2016-11-06 16:56:45', '2017-04-04 19:27:36'),
('13', 'geely', '08E9A6EA287E70E7E3F7C982BF7923AC', '[email protected]', '13800138000', '问题', '答案', '0', '2016-11-19 22:19:25', '2016-11-19 22:19:25'),
( '17', 'rosen' , '095AC193FE2212EEC7A93E8FEFF11902', '[email protected]', '13800138000', ' problem', 'the answer', '0', '2017-03-17 10:51:33' '2017-04-09 23:13:26'),
( '21 is', 'soonerbetter', 'DE6D76FE7C40D5A1A8F04213F2BEFBEE', '[email protected]', '13800138000', '105 204', '105 204', '0' , '2017-04-13 21:26:22', '2017-04-13 21:26:22'); a COMMIT;
2. Classification:
`Parent_id`: recursive query may be, when the value is 0, the root node, the end of the recursion.
DEFAULT NULL: default is a null character
- ---------------------------- - the Table Structure for `mmall_category` - ---------- ------------------ the DROP TABLE `mmall_category` the IF EXISTS; the CREATE TABLE mmall_category`` ( `id` int (. 11) the AUTO_INCREMENT the COMMENT the NOT NULL 'category Id', ` the parent_id `int (11) DEFAULT NULL COMMENT ' parent class id id = 0 when the description of the root node, a category', ` name` VARCHAR (50) the COMMENT the DEFAULT NULL 'category name', `status` tinyint (. 1) the DEFAULT '1' COMMENT '1- categories normal state, 2- obsolete', `sort_order` int (. 4) the COMMENT the DEFAULT NULL 'numbering, the same display order, values are equal then the natural order', ` create_time` the COMMENT datetime the DEFAULT NULL ' creation time ', `update_time` the COMMENT datetime NULL the DEFAULT' update ' PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=100032 DEFAULT CHARSET=utf8;
data:
- ---------------------------- - Records of `mmall_category` - ----------- ----------------- the BEGIN; the INSERT the INTO `mmall_category` the VALUES ( '100001', '0', 'household appliances',' 1 ', null, ' 2017-03- 25 16:46:00 ',' 2017-03-25 16:46:00 '), (' 100002 ',' 0 ',' digital 3C ',' 1 ', null ,' 2017-03-25 16: 46:21 ',' 2017-03-25 16:46:21 '), (' 100003 ',' 0 ',' garment bags ',' 1 ', null, ' 2017-03-25 16:49:53 ',' 2017-03-25 16:49:53 '), (' 100004 ',' 0 ',' fresh food ',' 1 ', null, ' 2017-03-25 16:50:19 ', '2017-03-25 16:50:19'), ( '100005', '0', 'drinks',' 1 ', null, ' 2017-03-25 16:50:29 ',' 2017-03-25 16:50:29 '), ' 2017-03-25 16:50:29 ',' 2017-03-25 16:50:29 '), (' 100006 ',' 100001 ',' refrigerator ',' 1 ', null, ' 2017-03-25 16:52:15 ',' 2017-03-25 16:52:15 '), (' 100007 ',' 100001 ',' TV ',' 1 ', null, ' 2017-03-25 16:52:26 ',' 2017-03-25 16:52:26 '), ( '100008', '100001', 'laundry' '. 1', null, '2017-03-25 16:52:39', '2017-03-25 16:52:39'), ( '100009' , '100001', 'conditioned' '. 1', null, '2017-03-25 16:52:45', '2017-03-25 16:52:45'), ( '100010', '100001' , 'water heater' '. 1', null, '2017-03-25 16:52:54', '2017-03-25 16:52:54'), ( '100011', '100002', 'computer ',' 1 ', null,' 2017-03-25 16:53:18 ',' 2017-03-25 16:53:18 '), (' 100012, China ',' 100002 ',' phone ',' 1 ', null,' 2017-03-25 16:53:27 ',' 2017-03-25 16:53:27 '), (' 100013, China ',' 100002 ',' tablet ',' 1 ', null , '2017-03-25 16:53:35', '2017-03-25 16:53:35 '), ( '100014', '100002', 'digital cameras', '1', null, '2017-03-25 16:53:56', '2017-03-25 16:53:56'), (' 100015 ',' 100002 ',' parts. 3C ',' 1 ', null, ' 2017-03-25 16:54:07 ',' 2017-03-25 16:54:07 '), (' 100016 ',' 100003 ',' ladies', '1', null, '2017-03-25 16:54:44', '2017-03-25 16:54:44'), (' 100017, China ',' 100003 ',' caps ','. 1 ', null,' 2017-03-25 16:54:51 ',' 2017-03-25 16:54:51 '), (' 100018 ',' 100003 ',' suitcase ''. 1 ', null,' 2017-03-25 16:55:02 ',' 2017-03-25 16:55:02 '), (' 100019 ',' 100003 ',' handbags', '. 1', null, '2017-03-25 16:55:09', '2017-03-25 16:55:09'), ( '100020', '100003', 'thermal underwear' , '1', null, '2017-03-25 16:55:18', '2017-03-25 16:55:18'), ( '100021', '100004', 'snacks', '1' , null, '2017-03-25 16:55:30', '2017-03-25 16:55:30 '), (' 100022 ',' 100004 ',' fresh ',' 1 ', null, ' 2017-03-25 16:55:37 ',' 2017-03-25 16:55:37 '), (' 100023 ',' 100004 ',' semi-finished food ',' 1 ', null, ' 2017-03-25 16:55:47 ',' 2017-03-25 16:55:47 '), ( '100024', '100004', 'frozen food', '. 1', null, '2017-03-25 16:55:56', '2017-03-25 16:55:56'), ( '100025', '100004', 'imported food', '1', null, '2017-03-25 16:56:06', '2017-03-25 16:56:06'), ( '100026 ',' 100005 ',' wine ','. 1 ', null,' 2017-03-25 16:56:22 ',' 2017-03-25 16:56:22 '), (' 100027 ',' 100005 ',' wine ','. 1 ', null,' 2017-03-25 16:56:30 ',' 2017-03-25 16:56:30 '), (' 100028 ',' 100005 ',' beverage ','. 1 ', null,' 2017-03-25 16:56:37 ',' 2017-03-25 16:56:37 '), (' 100029, China ',' 100005 ',' cocktail ',' 1 ', null,' 2017-03-25 16:56:45 ',' 2017-03-25 16:56:45 '), (' 100030 ',' 100005, China ',' imported wine ',' 1 ', null, '2017-03-25 16:57:05', ' 2017-03-25 16:57:05'); COMMIT;
3. Product table:
`Price` decimal (20,2): the price of using decimal type, (20,2): it means that the 18-digit, 2 digits after the decimal point, to avoid the loss of business computing accuracy
- ---------------------------- - the Table Structure for `mmall_product` - ---------- ------------------ the DROP TABLE `mmall_product` the IF EXISTS; the CREATE TABLE mmall_product`` ( `id` int (. 11) the AUTO_INCREMENT the COMMENT the NOT NULL 'commodity ID', ` category_id `int (11) NOT NULL COMMENT ' classification id, corresponding to the primary key table mmall_category', ` name` VARCHAR (100) the COMMENT the NOT NULL 'product name', 'subtitle` VARCHAR (200 is) the COMMENT the DEFAULT NULL' goods subtitle ', ` main_image` varchar (500) DEFAULT NULL COMMENT ' product picture, url relative address', `sub_images` the COMMENT text 'picture address, JSON format, spreading', ` detail` the COMMENT text 'product Information', `price` decimal ( 20,2) NOT NULL COMMENT 'price per unit - yuan two decimal places' `stock` int (11) NOT NULL COMMENT ' inventory quantity", `status` int (6) DEFAULT ' 1' COMMENT ' in the sale of goods state .1 2- 3- remove the shelf', ` create_time` the COMMENT datetime the DEFAULT NULL 'Created', `update_time` the COMMENT datetime the DEFAULT NULL 'Update time ', a PRIMARY KEY ( `id`) ) = ENGINE the InnoDB the AUTO_INCREMENT the CHARSET = UTF8 the DEFAULT = 30;
4. cart Table: The cart for persistence, rather than just stored in the session
KEY `user_id_index` (` user_id`) USING BTREE: single index increased user_id, more convenient inquiry
-- ---------------------------- -- Table structure for `mmall_cart` -- ---------------------------- DROP TABLE IF EXISTS `mmall_cart`; CREATE TABLE `mmall_cart` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `product_id` int(11) DEFAULT NULL COMMENT '商品id', `quantity` int(11) DEFAULT NULL COMMENT '数量', `checked` int(11) DEFAULT NULL COMMENT '是否选择,1=已勾选,0=未勾选', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `user_id_index` (`user_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=146 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of `mmall_cart` -- ---------------------------- BEGIN; INSERT INTO `mmall_cart` VALUES ('126', '21', '26', '1', '1', '2017-04-13 21:27:06', '2017-04-13 21:27:06'); COMMIT;
5. Payment information table info:
- ---------------------------- - the Table Structure for `mmall_pay_info` - ---------- ------------------ the DROP TABLE `mmall_pay_info` the IF EXISTS; the CREATE TABLE mmall_pay_info`` ( `id` int (. 11) the AUTO_INCREMENT the NOT NULL, ` user_id` int (. 11) DEFAULT NULL COMMENT 'user ID', `order_no` BIGINT (20 is) DEFAULT NULL COMMENT 'Order number', ` pay_platform` int (10) DEFAULT NULL COMMENT 'payment platforms: Alipay 1-, 2- micro-channel', `VARCHAR platform_number` (200) DEFAULT NULL COMMENT 'Alipay serial number', `platform_status` VARCHAR (20) NULL the DEFAULT the COMMENT 'Alipay state', ` create_time` the COMMENT datetime NULL the DEFAULT 'creation time', `update_time` the COMMENT datetime NULL the DEFAULT 'update time ', a PRIMARY KEY ( `id`) ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8;
data:
-- ---------------------------- -- Records of `mmall_pay_info` -- ---------------------------- BEGIN; INSERT INTO `mmall_pay_info` VALUES ('53', '1', '1492090946105', '1', '2017041321001004300200116250', 'WAIT_BUYER_PAY', '2017-04-13 21:42:33', '2017-04-13 21:42:33'), ('54', '1', '1492090946105', '1', '2017041321001004300200116250', 'TRADE_SUCCESS', '2017-04-13 21:42:41', '2017-04-13 21:42:41'), ('55', '1', '1492091003128', '1', '2017041321001004300200116251', 'WAIT_BUYER_PAY', '2017-04-13 21:43:31', '2017-04-13 21:43:31'), ('56', '1', '1492091003128', '1', '2017041321001004300200116251', 'TRADE_SUCCESS', '2017-04-13 21:43:38', '2017-04-13 21:43:38'), ('57', '1', '1492091141269', '1', '2017041321001004300200116252', 'WAIT_BUYER_PAY', '2017-04-13 21:45:59', '2017-04-13 21:45:59'), ('58', '1', '1492091141269', '1', '2017041321001004300200116252', 'TRADE_SUCCESS', '2017-04-13 21:46:07', '2017-04-13 21:46:07'), ('59', '1', '1492091110004', '1', '2017041321001004300200116396', 'WAIT_BUYER_PAY', '2017-04-13 21:55:08', '2017-04-13 21:55:08'), ('60', '1', '1492091110004', '1', '2017041321001004300200116396', 'TRADE_SUCCESS', '2017-04-13 21:55:17', '2017-04-13 21:55:17'); COMMIT;
6. Orders table order
`Shipping_id` int (11) DEFAULT NULL,: corresponds to the order of address
- ---------------------------- - the Table Structure for `mmall_order` - ---------- ------------------ the DROP TABLE `mmall_order` the IF EXISTS; the CREATE TABLE mmall_order`` ( `id` int (. 11) the AUTO_INCREMENT the COMMENT the NOT NULL 'Order ID', ` order_no `bigint (20) DEFAULT NULL COMMENT ' Order number', ` user_id` int (. 11) the COMMENT the DEFAULT NULL 'user ID', `shipping_id` int (. 11) the DEFAULT NULL, ` payment` decimal (20,2) the DEFAULT NULL the COMMENT 'The actual payment amount, the unit is the yuan, to two decimal places', `payment_type` int (4) the DEFAULT NULL the COMMENT' payment types, 1 pay-line ', ` postage` int (10) the DEFAULT NULL the COMMENT' freight units yuan ', `status` int (10) the DEFAULT NULL the COMMENT' Order status: 0 canceled -10- unpaid, paid 20, 40 shipped, 50 successful transaction, the transaction closed 60 ' `payment_time` datetime DEFAULT NULL COMMENT 'time to pay', ` send_time` the COMMENT datetime NULL the DEFAULT 'delivery time', `end_time` the COMMENT datetime NULL the DEFAULT 'completion time', ` close_time` the COMMENT datetime NULL the DEFAULT 'trade off time' , `create_time` the COMMENT datetime the DEFAULT NULL 'created', ` update_time` the COMMENT datetime the DEFAULT NULL 'update', a PRIMARY KEY ( `id`), UNIQUE KEY order_no_index`` ( `order_no`) the USING BTREE ) ENGINE = the InnoDB the AUTO_INCREMENT = 118 DEFAULT CHARSET = utf8;
data:
-- ---------------------------- -- Records of `mmall_order` -- ---------------------------- BEGIN; INSERT INTO `mmall_order` VALUES
('103', '1491753014256', '1', '25', '13998.00', '1', '0', '10', null, null, null, null, '2017-04-09 23:50:14', '2017-04-09 23:50:14'),
('104', '1491830695216', '1', '26', '13998.00', '1', '0', '10', null, null, null, null, '2017-04-10 21:24:55', '2017-04-10 21:24:55'),
('105', '1492089528889', '1', '29', '3299.00', '1', '0', '10', null, null, null, null, '2017-04-13 21:18:48', '2017-04-13 21:18:48'),
( '106', '1492090946105', '1', '29', '27894.00', '1', '0', '20', '2017-04-13 9:42:40 p.m.', null, null, zero, '2017-04-13 9:42:26 p.m.', '2017-04-13 9:42:41 p.m.'),
( '107', '1492091003128', '1', '29', '8597.00', '1', '0', '20', '2017-04-13 9:43:38 p.m.', null, null, zero, '2017-04-13 9:43:23 p.m.', '2017-04-13 9:43:38 p.m.'),
( '108', '1492091051313', '1', '29', '1999.00', '1', '0', '10', null, null, null, null, '2017-04-13 9:44:11 p.m.', '2017-04-13 9:44:11 p.m.'),
( '109 ',' 1492091061513 ',' 1 ',' 29 ',' 6598.00 ',' 1 ',' 0 ',' 10 ', null, null, null, null,' 2017-04-13 9:44:21 p.m. ' , '2017-04-13 9:44:21 p.m.'),
( '110', '1492091069563', '1', '29', '3299.00', '1', '0', '10', null, zero, zero, zero,'2017-04-13 9:44:29 p.m.', '2017-04-13 9:44:29 p.m.'),
( '111', '1492091076073', '1', '29', '4299.00', '1 ',' 0 ',' 10 ', null, null, null, null,' 2017-04-13 9:44:36 p.m. ',' 2017-04-13 9:44:36 p.m. '),
( '112', '1492091083720', '1', '29', '3299.00', '1', '0', '10', null, null, null, null, '2017-04-13 21:44 43 ',' 2017-04-13 9:44:43 p.m. '),
(' 113 ',' 1492091089794 ',' 1 ',' 29 ',' 6999.00 ',' 1 ',' 0 ',' 10 ' , null, null, null, null, '2017-04-13 9:44:49 p.m.', '2017-04-13 9:44:49 p.m.'),
( '114', '1492091096400', '1', ' 29 ',' 6598.00 ',' 1 ',' 0 ',' 10 ', null, null, null, null,' 2017-04-13 9:44:56 p.m. ',' 2017-04-13 9:44 p.m.: 56 '),
(' 115 ',' 1492091102371 ',' 1 ',' 29 ',' 3299.00 ',' 1 ',' 0 ',' 10 ', null, null, null, null,' 2017-04- 13 9:45 p.m.:02 ',' 2017-04-13 9:45:02 p.m. '),
(' 116 ',' 1492091110004 ',' 1 ',' 29 ',' 8598.00 ',' 1 ',' 0 ',' 40 ', '2017-04-13 9:55:16 p.m.', '2017-04-13 9:55:31 p.m.', null, '2017-04-13 9:45:09 p.m.', '2017-04-13 21 : 55: 31 '),
('117', '1492091141269', '1', '29', '22894.00', '1', '0', '20', '2017-04-13 21:46:06', null, null, null, '2017-04-13 21:45:41', '2017-04-13 21:46:07'); COMMIT;
7. Order Details order_item:
user_id` int `(11) the DEFAULT NULL, : redundant columns, for speed up queries
`Order_no` bigint (20) DEFAULT NULL,: used to store the order number
KEY `order_no_index` (` order_no`) USING BTREE,: single index, increased query speed
KEY `order_no_user_id_index` (`user_id`,`order_no`) USING BTREE :组合索引
- ---------------------------- - the Table Structure for `mmall_order_item` - ---------- ------------------ the DROP tABLE `mmall_order_item` the IF EXISTS; the CREATE tABLE mmall_order_item`` ( `id` int (. 11) the AUTO_INCREMENT the COMMENT the NOT NULL 'order sub-table id', int user_id` `(. 11) the DEFAULT NULL, ` order_no` BIGINT (20 is) the DEFAULT NULL, `product_id` int (. 11) the COMMENT the DEFAULT NULL 'commodity ID', ` product_name` VARCHAR (100) the COMMENT the DEFAULT NULL 'product name', `product_image` varchar (500) DEFAULT NULL COMMENT ' picture address', ` current_unit_price` decimal (20, 2) the DEFAULT NULL the COMMENT 'commodity price when the order is generated, the unit is the yuan, to two decimal places', `quantity` int (10) DEFAULT NULL COMMENT 'quantity', `total_price` decimal(20,2) DEFAULT NULL COMMENT '商品总价,单位是元,保留两位小数', `create_time` datetime DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `order_no_index` (`order_no`) USING BTREE, KEY `order_no_user_id_index` (`user_id`,`order_no`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8;
data:
- ---------------------------- - Records of `mmall_order_item` - ----------- ----------------- the BEGIN; the INSERT the INTO `mmall_order_item` the VALUES
( '113', '. 1', '1491753014256', '26 is','. 7 the iPhone the Apple Plus (A1661) 128G rose gold mobile Unicom Telecom 4G mobile phone ',' 241997c4-9e62-4824-b7f0-7425c3c28917.jpeg ', ' 6999.00 ',' 2 ',' 13998.00 ',' 2017-04-09 23:50:14 ',' 23:50:14 2017-04-09 '),
(' 114 ',' 1 ',' 1,491,830,695,216 ',' 26 ',' the Apple the iPhone 7 Plus (A1661) rose gold 128G 4G mobile Unicom Telecom mobile phone ',' 241997c4 -9e62-4824-b7f0-7425c3c28917.jpeg ',' 6999.00 ' ,' 2 ',' 13998.00 ',' 2017-04-10 21:24:55 ',' 2017-04-10 21:24:55 ') ,
( '115', '1' , '1492089528889', '27', 'Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door', 'ac3e571d-13ce-4fad -89e8- c92c2eccf536.jpeg ',' 3299.00 ','. 1 ',' 3299.00 ',' 2017-04-13 21:18:48 ',' 2017-04-13 21:18:48 '),
(' 1 16 ',' 1 ',' 1492090946105 ',' 29 ',' Haier / Haier HJ100-1HU1 10 kilograms drum type washing machine with dryer automatic household washing drying mass integrally ',' 173335a4-5dce-4afd-9f18 -a10623724c4e.jpeg ',' 4299.00 ',' 2 ',' 8598.00 ',' 2017-04-13 21:42:26 ',' 2017-04-13 21:42:26 '),
(' 117 ',' 1 ',' 1492090946105 ' , '28', '4 + 64G bracelet to send / Huawei / Huawei nova phone P9 / P10plus youth', '0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg ', '1999.00', '1', '1999.00', "2017-04-13 21:42:26",'2017-04-13 21:42:26'),
( '1 18', '. 1', '1,492,090,946,105', '27', 'Midea is / beauty BCD-535WKZM (E) double-door refrigerator door frost-free air to smart home ',' ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg ',' 3299.00 ',' 1 ',' 3299.00 ',' 2017-04-13 21:42:26 ',' 2017-04-13 21:42:26 '),
( '119', '1' , '1492090946105', '26', 'Apple iPhone 7 Plus (A1661) 128G Rose Gold Mobile Unicom Telecom 4G mobile phone', '241997c4-9e62-4824-b7f0-7425c3c28917.jpeg', ' 6999.00 ',' 2 ',' 13998.00 ',' 2017-04-13 21:42:26 ',' 2017-04-13 21:42:26 '),
(' 120 ',' 1 ',' 1492091003128 ' , '27', 'Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door', 'ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg', '3299.00', '2' , '6598.00', '2017-04-13 21:43:23', '2017-04-13 21:43:23'),
( '121', '1', '1492091003128', '28', ' 4 + 64G bracelet to send / Huawei / Huawei nova phone P9 / P10plus youth ',' 0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg ',' 1999.00 ',' 1 ',' 1999.00 ',' 2017-04-13 21:43:23 is ',' 2017-04-13 21:43:23 '),
(' 122 ','. 1 ',' 1,492,091,051,313 ',' 28 ',' send bracelet. 4 + 64G / Huawei / Huawei nova phone P9 / P10plus youth ',' 0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg ',' 1999.00 ',' 1 ',' 1999.00 ',' 2017-04-13 21:44:11 ',' 2017-04-13 21: 44:11 '),
( '123', '1' , '1492091061513', '27', 'Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door', 'ac3e571d-13ce-4fad -89e8- c92c2eccf536.jpeg ',' 3299.00 ',' 2 ',' 6598.00 ',' 2017-04-13 21:44:21 ',' 2017-04-13 21:44:21 '),
(' 124 ',' 1 ',' 1492091069563 ',' 27 ',' Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door ',' ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg ',' 3299.00 ',' 1 ',' 3299.00 ',' 2017-04-13 21:44:29 ',' 2017-04-13 21:44:29 '),
(' 125 ',' 1 ',' 1492091076073 ' , '29', 'Haier / Haier HJ100-1HU1 10 kilograms drum type washing machine with dryer automatic household washing drying mass integrally', '173335a4-5dce-4afd-9f18 -a10623724c4e.jpeg', '4299.00', '1' , '4299.00', '2017-04-13 21:44:36', '2017-04-13 21:44:36'),
( '126', '. 1', '1,492,091,083,720', '27', 'Midea is / beauty BCD-535WKZM (E) of the double-door refrigerator door air-cooled Cream smart home ',' ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg ',' 3299.00 ',' 1 ',' 3299.00 ',' 2017-04-13 21:44:43 ',' 2017-04- 13 21:44:43 '),
( '127', '1' , '1492091089794', '26', 'Apple iPhone 7 Plus (A1661) 128G Rose Gold Mobile Unicom Telecom 4G mobile phone', '241997c4-9e62-4824-b7f0-7425c3c28917.jpeg', ' 6999.00 ',' 1 ',' 6999.00 ',' 2017-04-13 21:44:49 ',' 2017-04-13 21:44:49 '),
(' 128 ',' 1 ',' 1492091096400 ' , '27', 'Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door', 'ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg', '3299.00', '2' , '6598.00', '2017-04-13 21:44:56', '2017-04-13 21:44:56'),
( '129', '1', '1492091102371', '27', ' Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door ',' ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg ',' 3299.00 ',' 1 ',' 3299.00 ',' 2017-04-13 21:45:02 ',' 2017-04-13 21:45:02 '),
(' 130. ','. 1 ',' 1,492,091,110,004 ',' 29 ',' Haier / Haier HJ100-1HU1 10 kilograms automatic drum washing machine with dryer large-capacity home washing drying integrally ',' 173335a4-5dce-4afd-9f18 -a10623724c4e.jpeg ',' 4299.00 ',' 2 ',' 8598.00 ',' 2017-04-13 21:45:09 ',' 2017- 04-13 21:45:09 '),
( '131', '1' , '1492091141269', '26', 'Apple iPhone 7 Plus (A1661) 128G Rose Gold Mobile Unicom Telecom 4G mobile phone', '241997c4-9e62-4824-b7f0-7425c3c28917.jpeg', ' 6999.00 ',' 1 ',' 6999.00 ',' 2017-04-13 21:45:41 ',' 2017-04-13 21:45:41 '),
(' 132 ',' 1 ',' 1492091141269 ' , '27', 'Midea / beauty BCD-535WKZM (E) double-door refrigerator smart home frost-free air to the door', 'ac3e571d-13ce-4fad -89e8-c92c2eccf536.jpeg', '3299.00', '1' , '3299.00', '2017-04-13 21:45:41', '2017-04-13 21:45:41'),
( '133', '1', '1492091141269', '29', ' Haier / Haier HJ100-1HU1 10 kilograms drum type washing machine with dryer automatic household washing drying mass integrally ',' 173335a4-5dce-4afd-9f18 -a10623724c4e.jpeg ',' 4299.00 ',' 2 ',' 8598.00 ',' 2017-04-1321:45:41 ',' 2017-04-13 21:45:41 '),
(' 134 ','. 1 ',' 1,492,091,141,269 ',' 28 ',' send bracelet. 4 + 64G / Huawei / Huawei nova phone P9 / P10plus youth ',' 0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg ',' 1999.00 ',' 2 ',' 3998.00 ',' 2017-04-13 21:45:41 ',' 2017-04-13 21:45:41 '); COMMIT;
8. The shipping address shipping:
- ---------------------------- - the Table Structure for `mmall_shipping` - ---------- ------------------ the DROP TABLE `mmall_shipping` the IF EXISTS; the CREATE TABLE mmall_shipping`` ( `id` int (. 11) the AUTO_INCREMENT the NOT NULL, ` user_id` int (. 11) DEFAULT NULL COMMENT 'user ID', `receiver_name` VARCHAR (20 is) DEFAULT NULL COMMENT 'receipt name', ` receiver_phone` VARCHAR (20 is) DEFAULT NULL COMMENT 'fixed telephone receipt', `receiver_mobile` VARCHAR (20 is) the DEFAULT NULL COMMENT 'receipt mobile phone', `receiver_province` VARCHAR (20) the DEFAULT NULL COMMENT 'provinces', ` receiver_city` VARCHAR (20) the DEFAULT NULL COMMENT' city ', (20) the DEFAULT NULL COMMENT' area `receiver_district` varchar / County ' `receiver_address` varchar(200) DEFAULT NULL COMMENT '详细地址', `receiver_zip` varchar(6) DEFAULT NULL COMMENT '邮编', `create_time` datetime DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8;
data:
- ---------------------------- - Records of `mmall_shipping` - ----------- ----------------- the BEGIN; the INSERT the INTO `mmall_shipping` the VALUES
( '. 4', '13 is', 'geely', '010', '18,688,888,888', 'Beijing', 'Beijing' 'Haidian District', 'Zhongguancun', '100,000', '2017-01-22 14:26:25', '2017-01-22 14:26:25'),
( '7', '17', 'Rosen', '13800138000', '13800138000', ' Beijing', 'Beijing', null, 'Zhongguancun', '100000', '2017-03-29 12:11:01', '2017- 03-29 12:11:01 '),
(' 29 ',' 1 ',' lucky ',' 13800138000 ',' 13800138000 ',' Beijing ',' Beijing ',' Haidian District ',' Zhongguancun ' , '100000', '2017-04-09 18:33:32', '2017-04-09 18:33:32'); COMMIT;