#-----------------创建表--- kj_mall_order
DROP TABLE IF EXISTS `{DB_PRE}mall_order`;
CREATE TABLE IF NOT EXISTS `{DB_PRE}mall_order` (
`order_id` int(10) NOT NULL auto_increment,`order_name` varchar(20) NOT NULL COMMENT '姓名',`order_address` varchar(50) NOT NULL,`order_tel` varchar(20) NOT NULL COMMENT '电话',`order_datetime` datetime NOT NULL COMMENT '下单时间',`order_user_id` int(10) NOT NULL COMMENT '用户id',`order_total_goods` decimal(10,2) default '0.00' COMMENT '合计',`order_sendprice` decimal(10,2) default '0.00' COMMENT '运费',`order_repay` decimal(10,2) default '0.00' COMMENT '预付款',`order_total_pay` decimal(10,2) default '0.00' COMMENT '应付',`order_state` smallint(2) default '0' COMMENT '状态',`order_area` varchar(50) NOT NULL COMMENT '地区3',`order_pay_val` decimal(10,2) default '0.00' COMMENT '支付金额',`order_pay_id` int(10) NOT NULL COMMENT '支付记录id',`order_pay_time` datetime NOT NULL COMMENT '支付时间',`order_pay_method` varchar(20) NOT NULL COMMENT '支付方式',`order_cancel_beta` varchar(50) NOT NULL COMMENT '取消备注',`order_cancel_time` datetime NOT NULL COMMENT '取消时间',`order_beta` varchar(255) NOT NULL COMMENT '备注',`order_detail` text NOT NULL COMMENT '订单明细',`order_sendinfo_id` int(10) default '0' COMMENT '配送方式id',`order_sendtime` datetime NOT NULL COMMENT '发货时间',`order_sendbeta` varchar(100) NOT NULL COMMENT '发货备注',`order_receivetime` datetime NOT NULL COMMENT '收货时间',`order_goods_ids` varchar(500) NOT NULL COMMENT '商品ids',`order_detail_ids` varchar(500) NOT NULL COMMENT '明细ids',`order_arrivetime` varchar(20) NOT NULL COMMENT '要求送达时间',`order_favorable` decimal(10,2) default '0.00' COMMENT '优惠金额',PRIMARY KEY (`order_id`)
) ENGINE=myisam  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1

