标签:信息 number span ant engine anti inf 状态 库类
CREATE TABLE `barter_order` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT ‘ID‘, `order_pid` bigint(20) unsigned NOT NULL COMMENT ‘父订单id‘, `order_id` bigint(20) unsigned NOT NULL COMMENT ‘订单id‘, `order_source` int(10) unsigned NOT NULL DEFAULT ‘1‘ COMMENT ‘订单来源,1-pc端;2-APP ,3-M及WEB,4-微信,5-手Q‘, `order_submit_time` datetime DEFAULT NULL COMMENT ‘下单时间‘, `sku_id` bigint(20) unsigned NOT NULL COMMENT ‘sku id‘, `erp_prom_id` bigint(20) unsigned NOT NULL COMMENT ‘erp促销id‘, `barter_id` bigint(20) unsigned NOT NULL COMMENT ‘换购id‘, `quantity` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘购买数量‘, `bean_number` int(10) NOT NULL DEFAULT ‘0‘ COMMENT ‘总计京豆数量‘, `statistics_status` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘销量统计状态,0-未统计;1-已统计。‘, `to_es` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘是否将数据同步到es,0-未同步;1-已同步‘, `created` datetime DEFAULT NULL COMMENT ‘创建时间‘, `modified` datetime DEFAULT NULL COMMENT ‘更新时间‘, `uuid` varchar(40) NOT NULL COMMENT ‘唯一标识‘, PRIMARY KEY (`id`), UNIQUE KEY `uniq_uuid` (`uuid`), KEY `idx_barter_status` (`barter_id`,`statistics_status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT=‘根据订单统计换购销量表‘; CREATE TABLE `ps_storeinfo` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT ‘主键id‘, `DMS_STORE_ID` varchar(40) DEFAULT NULL COMMENT ‘分拣中心库房id‘, `DMS_STORE_NAME` varchar(100) NOT NULL DEFAULT ‘‘ COMMENT ‘分拣中心库房名称‘, `STORE_ID` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘仓库id‘, `LOC_NO` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘loc_no‘, `ORG_ID` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘机构id‘, `CREATE_DATE` datetime DEFAULT NULL COMMENT ‘创建时间‘, `REMARK` varchar(250) DEFAULT NULL COMMENT ‘备注‘, `YN` tinyint(3) NOT NULL DEFAULT ‘0‘ COMMENT ‘是否有效 1.有效 2.无效‘, `DMS_STORE_TYPE` varchar(40) DEFAULT NULL COMMENT ‘分拣中心仓库类型‘, `DMS_SITE_ID` int(11) DEFAULT NULL COMMENT ‘分拣中心站点ID‘, `DMS_CODE` varchar(40) DEFAULT NULL COMMENT ‘7位站点编号‘, `UPDATE_TIME` datetime DEFAULT NULL COMMENT ‘更新时间‘, `CREATE_OPERATOR_NAME` varchar(50) DEFAULT NULL COMMENT ‘创建操作人账号‘, `UPDATE_OPERATOR_NAME` varchar(50) DEFAULT NULL COMMENT ‘更新操作人账号‘, `province_id` int(11) DEFAULT NULL COMMENT ‘库房所在省‘, `city_id` int(11) DEFAULT NULL COMMENT ‘库房所在市‘, `SITE_NAME_PYM` varchar(30) DEFAULT NULL COMMENT ‘拼音码‘, `county_id` int(11) DEFAULT NULL COMMENT ‘县ID‘, `town_id` int(11) DEFAULT NULL COMMENT ‘镇ID‘, `address` varchar(500) DEFAULT NULL COMMENT ‘详细地址‘, `connector` varchar(100) DEFAULT NULL COMMENT ‘联系人‘, `telephone` varchar(100) DEFAULT NULL COMMENT ‘联系电话‘, `ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ‘时间戳‘, PRIMARY KEY (`ID`), KEY `IDX_ORG_ID` (`ORG_ID`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT=‘库房信息‘;
标签:信息 number span ant engine anti inf 状态 库类
原文地址:http://www.cnblogs.com/52hadoop/p/7472705.html