-
Notifications
You must be signed in to change notification settings - Fork 0
/
cz_order.sql
39 lines (34 loc) · 1.51 KB
/
cz_order.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
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50617
Source Host : 127.0.0.1:3306
Source Database : shopcz
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2016-08-26 16:46:46
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for cz_order
-- ----------------------------
DROP TABLE IF EXISTS `cz_order`;
CREATE TABLE `cz_order` (
`order_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单ID',
`order_sn` varchar(30) NOT NULL DEFAULT '' COMMENT '订单号',
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`address_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '收货地址id',
`order_status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '订单状态 1 待付款 2 待发货 3 已发货 4 已完成',
`postscripts` varchar(255) NOT NULL DEFAULT '' COMMENT '订单附言',
`shipping_id` tinyint(4) NOT NULL DEFAULT '0' COMMENT '送货方式ID',
`pay_id` tinyint(4) NOT NULL DEFAULT '0' COMMENT '支付方式ID',
`goods_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品总金额',
`order_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单总金额',
`order_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '下单时间',
PRIMARY KEY (`order_id`),
KEY `user_id` (`user_id`),
KEY `address_id` (`address_id`),
KEY `pay_id` (`pay_id`),
KEY `shipping_id` (`shipping_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;