标签:种类 queue primary org str signed tab mobile comm
CREATE TABLE `deliver_order` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT ‘主键列‘, `order_num` varchar(24) NOT NULL COMMENT ‘订单号‘, `package_bar_code` varchar(50) DEFAULT NULL COMMENT ‘包裹号‘, `package_count` int(4) DEFAULT NULL COMMENT ‘包裹数‘, `pre_station_code` varchar(32) DEFAULT NULL COMMENT ‘预分拣站点‘, `pre_station_name` varchar(100) DEFAULT NULL COMMENT ‘预分拣站点名称‘, `station_code` varchar(32) NOT NULL COMMENT ‘站点名称‘, `shelfNo` varchar(50) DEFAULT NULL COMMENT ‘货架号‘, `subType` int(4) DEFAULT NULL COMMENT ‘站点类型‘, `deviece_id` varchar(16) DEFAULT NULL COMMENT ‘自提柜设备id,目前是12位字符串‘, `order_status` tinyint(4) DEFAULT NULL COMMENT ‘配送系统传送的订单状态‘, `distribute_type` int(4) DEFAULT NULL COMMENT ‘配送方式‘, `sender_account` varchar(32) DEFAULT NULL COMMENT ‘上架操作人账号‘, `sender_id` varchar(32) DEFAULT NULL COMMENT ‘上架操作员id‘, `sender_name` varchar(32) DEFAULT NULL COMMENT ‘上架操作人名称‘, `send_time` datetime NOT NULL COMMENT ‘不太确定时间‘, `schedule_time` datetime DEFAULT NULL COMMENT ‘运单生成时间‘, `notify_time` datetime DEFAULT NULL COMMENT ‘分拣中心发货时间‘, `site_check_time` datetime DEFAULT NULL COMMENT ‘站点验货时间‘, `switch_time` datetime DEFAULT NULL COMMENT ‘转投时间‘, `delivery_time` datetime DEFAULT NULL COMMENT ‘投递时间‘, `pickup_time` datetime DEFAULT NULL COMMENT ‘妥投时间‘, `overdue_time` datetime DEFAULT NULL COMMENT ‘根据投递时间算出(超期时间)‘, `overdue_remark` varchar(100) DEFAULT NULL COMMENT ‘超期备注‘, `exc_reg_time` datetime DEFAULT NULL, `reclaim_time` datetime DEFAULT NULL COMMENT ‘拒收时间‘, `order_yn` tinyint(4) DEFAULT NULL, `delivery_pw` varchar(64) DEFAULT NULL COMMENT ‘验证码(加密后)‘, `box_num` int(11) DEFAULT NULL, `boxstatus` tinyint(4) DEFAULT NULL, `type` tinyint(4) DEFAULT NULL, `payment` int(11) DEFAULT NULL, `shoulePrice` decimal(12,2) DEFAULT NULL, `create_time` datetime DEFAULT NULL COMMENT ‘创建日期‘, `update_time` datetime DEFAULT NULL COMMENT ‘更新日期‘, `ts` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `yn` tinyint(4) NOT NULL DEFAULT ‘1‘ COMMENT ‘删除标志位‘, `sendpay` varchar(550) DEFAULT NULL, `urge_order` tinyint(4) DEFAULT NULL, `receiver_mobile` varchar(100) DEFAULT NULL COMMENT ‘收货人手机号‘, `receiver_address` varchar(500) DEFAULT NULL COMMENT ‘收货人地址‘, `station_name` varchar(100) DEFAULT NULL COMMENT ‘站点名称‘, `queue_id` tinyint(4) DEFAULT NULL COMMENT ‘队列号(无用)‘, `member_id` varchar(100) DEFAULT NULL COMMENT ‘下单账号‘, `customer_name` varchar(30) DEFAULT NULL COMMENT ‘收货人姓名‘, `org_id` int(11) DEFAULT NULL COMMENT ‘运单机构‘, `waybill_type` int(9) DEFAULT ‘0‘ COMMENT ‘运单种类‘, `waybill_status` int(5) DEFAULT NULL COMMENT ‘运单状态‘, `pick_code` varchar(50) DEFAULT ‘‘ COMMENT ‘提货码‘, `vender_id` varchar(100) DEFAULT NULL, `order_return_flag` tinyint(1) DEFAULT ‘0‘ COMMENT ‘0为默认值、1为直投、2为转投‘, `waybill_sign` varchar(200) DEFAULT NULL, `recovery_flag` tinyint(1) DEFAULT NULL COMMENT ‘是否回收,1已回收‘, `psy_id` int(11) DEFAULT NULL, `psy_name` varchar(50) DEFAULT NULL, `district` varchar(6) DEFAULT NULL COMMENT ‘区域code‘, `district_literal` varchar(32) DEFAULT NULL COMMENT ‘区域name‘, `area` varchar(6) DEFAULT NULL COMMENT ‘片区‘, `area_literal` varchar(50) DEFAULT NULL COMMENT ‘片区名称‘, `province` varchar(6) DEFAULT NULL COMMENT ‘省code‘, `province_literal` varchar(32) DEFAULT NULL COMMENT ‘省名称‘, `city` varchar(6) DEFAULT NULL COMMENT ‘市code‘, `city_literal` varchar(32) DEFAULT NULL COMMENT ‘市名称‘, `county` varchar(6) DEFAULT NULL COMMENT ‘县‘, `county_literal` varchar(32) DEFAULT NULL COMMENT ‘县名称‘, PRIMARY KEY (`id`), KEY `idx_code_send_time` (`station_code`,`send_time`), KEY `idx_deliver_order_ts` (`ts`), KEY `order_num _index` (`order_num`), KEY `idx_type_time` (`type`,`delivery_time`) USING BTREE, KEY `idx_memberId_index` (`member_id`), KEY `idx_station_delivery` (`station_code`,`delivery_time`) ) ENGINE=InnoDB AUTO_INCREMENT=35694778 DEFAULT CHARSET=utf8 COMMENT=‘配送表‘;
标签:种类 queue primary org str signed tab mobile comm
原文地址:http://www.cnblogs.com/52hadoop/p/7619881.html