

CREATE TABLE IF NOT EXISTS hi_goods_basic_self (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品主表' ;
ALTER TABLE hi_goods_basic_self ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_self ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_self ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_self ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_self ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_self ADD `title` VARCHAR(255) NOT NULL COMMENT '标题' ;
ALTER TABLE hi_goods_basic_self ADD `keywords` VARCHAR(255) NOT NULL COMMENT '供检索的关键词串' ;
ALTER TABLE hi_goods_basic_self ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_self ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_self ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_self ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_self ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_self ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_self ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_self ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_self ADD INDEX`siteid` (`siteid`);
ALTER TABLE hi_goods_basic_self ADD INDEX`uniacid` (`uniacid`);
ALTER TABLE hi_goods_basic_self ADD INDEX`shopid` (`shopid`);
ALTER TABLE hi_goods_basic_self ADD INDEX`keywords` (`keywords`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_form (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品实例表' ;
ALTER TABLE hi_goods_basic_form ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_form ADD `s_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应主表的记录编码' ;
ALTER TABLE hi_goods_basic_form ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_form ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_form ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_form ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_form ADD `partnerid` INT(11) UNSIGNED NOT NULL COMMENT '所属合作商户编码' ;
ALTER TABLE hi_goods_basic_form ADD `uid` INT(11) UNSIGNED NOT NULL COMMENT '所属后台用户编码' ;
ALTER TABLE hi_goods_basic_form ADD `title` VARCHAR(255) NOT NULL COMMENT '标题' ;
ALTER TABLE hi_goods_basic_form ADD `value` TEXT NOT NULL COMMENT '具体内容或描述' ;
ALTER TABLE hi_goods_basic_form ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_form ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_form ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_form ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_form ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_form ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_form ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_form ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_form ADD INDEX`s_sn` (`s_sn`);
ALTER TABLE hi_goods_basic_form ADD INDEX`siteid` (`siteid`);
ALTER TABLE hi_goods_basic_form ADD INDEX`uniacid` (`uniacid`);
ALTER TABLE hi_goods_basic_form ADD INDEX`title` (`title`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_param (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=MyISAM CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品主参数表' ;
ALTER TABLE hi_goods_basic_param ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_param ADD `s_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应主表的记录编码' ;
ALTER TABLE hi_goods_basic_param ADD `f_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应实例表的记录编码' ;
ALTER TABLE hi_goods_basic_param ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_param ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_param ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_param ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_param ADD `partnerid` INT(11) UNSIGNED NOT NULL COMMENT '所属合作商户编码' ;
ALTER TABLE hi_goods_basic_param ADD `setfor` VARCHAR(50) NOT NULL COMMENT '参数归属类别' ;
ALTER TABLE hi_goods_basic_param ADD `title` VARCHAR(255) NOT NULL COMMENT '参数标题' ;
ALTER TABLE hi_goods_basic_param ADD `key` VARCHAR(255) NOT NULL COMMENT '参数键值' ;
ALTER TABLE hi_goods_basic_param ADD `value` TEXT NOT NULL COMMENT '参数具体值' ;
ALTER TABLE hi_goods_basic_param ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_param ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_param ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_param ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_param ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_param ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_param ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_param ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_param ADD INDEX`s_sn` (`s_sn`);
ALTER TABLE hi_goods_basic_param ADD INDEX`setfor` (`setfor`);
ALTER TABLE hi_goods_basic_param ADD INDEX`title` (`title`);
ALTER TABLE hi_goods_basic_param ADD INDEX`key` (`key`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_order (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品数据提交/收集表单表' ;
ALTER TABLE hi_goods_basic_order ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_order ADD `s_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应主表的记录编码' ;
ALTER TABLE hi_goods_basic_order ADD `f_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应实例表的记录编码' ;
ALTER TABLE hi_goods_basic_order ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_order ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_order ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_order ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_order ADD `partnerid` INT(11) UNSIGNED NOT NULL COMMENT '所属合作商户编码' ;
ALTER TABLE hi_goods_basic_order ADD `mid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台会员编码' ;
ALTER TABLE hi_goods_basic_order ADD `fid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台粉丝(非注册用户)编码' ;
ALTER TABLE hi_goods_basic_order ADD `title` VARCHAR(255) NOT NULL COMMENT '标题' ;
ALTER TABLE hi_goods_basic_order ADD `value` TEXT NOT NULL COMMENT '具体内容或描述' ;
ALTER TABLE hi_goods_basic_order ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_order ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_order ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_order ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_order ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_order ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_order ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_order ADD INDEX`siteid` (`siteid`);
ALTER TABLE hi_goods_basic_order ADD INDEX`uniacid` (`uniacid`);
ALTER TABLE hi_goods_basic_order ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_order ADD INDEX`s_sn` (`s_sn`);
ALTER TABLE hi_goods_basic_order ADD INDEX`f_sn` (`f_sn`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_addon (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=MyISAM CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品附加参数表' ;
ALTER TABLE hi_goods_basic_addon ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_addon ADD `s_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应主表的记录编码' ;
ALTER TABLE hi_goods_basic_addon ADD `f_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应实例表的记录编码' ;
ALTER TABLE hi_goods_basic_addon ADD `o_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应数据提交表单的记录编码' ;
ALTER TABLE hi_goods_basic_addon ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_addon ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_addon ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_addon ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_addon ADD `partnerid` INT(11) UNSIGNED NOT NULL COMMENT '所属合作商户编码' ;
ALTER TABLE hi_goods_basic_addon ADD `mid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台会员编码' ;
ALTER TABLE hi_goods_basic_addon ADD `fid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台粉丝(非注册用户)编码' ;
ALTER TABLE hi_goods_basic_addon ADD `setfor` VARCHAR(50) NOT NULL COMMENT '参数归属类别' ;
ALTER TABLE hi_goods_basic_addon ADD `title` VARCHAR(255) NOT NULL COMMENT '参数标题' ;
ALTER TABLE hi_goods_basic_addon ADD `key` VARCHAR(255) NOT NULL COMMENT '参数键值' ;
ALTER TABLE hi_goods_basic_addon ADD `value` TEXT NOT NULL COMMENT '参数具体值' ;
ALTER TABLE hi_goods_basic_addon ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_addon ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_addon ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_addon ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_addon ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_addon ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_addon ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_addon ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_addon ADD INDEX`o_sn` (`o_sn`);
ALTER TABLE hi_goods_basic_addon ADD INDEX`setfor` (`setfor`);
ALTER TABLE hi_goods_basic_addon ADD INDEX`title` (`title`);
ALTER TABLE hi_goods_basic_addon ADD INDEX`key` (`key`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_data (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=MyISAM CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品具体数据表' ;
ALTER TABLE hi_goods_basic_data ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_data ADD `s_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应主表的记录编码' ;
ALTER TABLE hi_goods_basic_data ADD `f_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应实例表的记录编码' ;
ALTER TABLE hi_goods_basic_data ADD `o_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应数据提交表单的记录编码' ;
ALTER TABLE hi_goods_basic_data ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_data ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_data ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_data ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_data ADD `partnerid` INT(11) UNSIGNED NOT NULL COMMENT '所属合作商户编码' ;
ALTER TABLE hi_goods_basic_data ADD `mid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台会员编码' ;
ALTER TABLE hi_goods_basic_data ADD `fid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台粉丝(非注册用户)编码' ;
ALTER TABLE hi_goods_basic_data ADD `setfor` VARCHAR(50) NOT NULL COMMENT '参数归属类别' ;
ALTER TABLE hi_goods_basic_data ADD `title` VARCHAR(255) NOT NULL COMMENT '参数标题' ;
ALTER TABLE hi_goods_basic_data ADD `key` VARCHAR(255) NOT NULL COMMENT '参数键值' ;
ALTER TABLE hi_goods_basic_data ADD `value` TEXT NOT NULL COMMENT '参数具体值' ;
ALTER TABLE hi_goods_basic_data ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_data ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_data ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_data ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_data ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_data ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_data ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_data ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_data ADD INDEX`o_sn` (`o_sn`);
ALTER TABLE hi_goods_basic_data ADD INDEX`mid` (`mid`);
ALTER TABLE hi_goods_basic_data ADD INDEX`setfor` (`setfor`);
ALTER TABLE hi_goods_basic_data ADD INDEX`title` (`title`);
ALTER TABLE hi_goods_basic_data ADD INDEX`key` (`key`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_attr (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=MyISAM CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品数据属性微调表' ;
ALTER TABLE hi_goods_basic_attr ADD `sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '与其他表进行关联的唯一记录编码' ;
ALTER TABLE hi_goods_basic_attr ADD `t_sn` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应数据表的记录编码' ;
ALTER TABLE hi_goods_basic_attr ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_attr ADD `platid` INT(11) UNSIGNED NOT NULL COMMENT '所属平台编码' ;
ALTER TABLE hi_goods_basic_attr ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_attr ADD `shopid` INT(11) UNSIGNED NOT NULL COMMENT '所属商铺编码' ;
ALTER TABLE hi_goods_basic_attr ADD `partnerid` INT(11) UNSIGNED NOT NULL COMMENT '所属合作商户编码' ;
ALTER TABLE hi_goods_basic_attr ADD `uid` INT(11) UNSIGNED NOT NULL COMMENT '所属后台会员编码' ;
ALTER TABLE hi_goods_basic_attr ADD `mid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台会员编码' ;
ALTER TABLE hi_goods_basic_attr ADD `fid` INT(11) UNSIGNED NOT NULL COMMENT '所属前台粉丝(非注册用户)编码' ;
ALTER TABLE hi_goods_basic_attr ADD `suffix` VARCHAR(50) NOT NULL COMMENT '对应表后缀(用于区分表)' ;
ALTER TABLE hi_goods_basic_attr ADD `setfor` VARCHAR(50) NOT NULL COMMENT '参数归属类别' ;
ALTER TABLE hi_goods_basic_attr ADD `title` VARCHAR(255) NOT NULL COMMENT '参数标题' ;
ALTER TABLE hi_goods_basic_attr ADD `key` VARCHAR(255) NOT NULL COMMENT '参数键值' ;
ALTER TABLE hi_goods_basic_attr ADD `value` TEXT NOT NULL COMMENT '参数具体值' ;
ALTER TABLE hi_goods_basic_attr ADD `displayorder` INT(11) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '排序权重' ;
ALTER TABLE hi_goods_basic_attr ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_attr ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_attr ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_attr ADD `updatetime` INT(11)  UNSIGNED NOT NULL COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_attr ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_attr ADD  `update_at`  TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_attr ADD INDEX`sn` (`sn`);
ALTER TABLE hi_goods_basic_attr ADD INDEX`t_sn` (`t_sn`);
ALTER TABLE hi_goods_basic_attr ADD INDEX`uid` (`uid`);
ALTER TABLE hi_goods_basic_attr ADD INDEX`mid` (`mid`);
ALTER TABLE hi_goods_basic_attr ADD INDEX`setfor` (`setfor`);

CREATE TABLE IF NOT EXISTS hi_goods_basic_pre (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表记录序号ID',  PRIMARY KEY (`id`) USING BTREE) ENGINE=MyISAM CHARSET=utf8 COLLATE utf8_general_ci COMMENT='产品数据表预编辑操作记录' ;
ALTER TABLE hi_goods_basic_pre ADD `tid` BIGINT(20) UNSIGNED NOT NULL COMMENT '对应数据表的记录id' ;
ALTER TABLE hi_goods_basic_pre ADD `siteid` INT(11) UNSIGNED NOT NULL COMMENT '所属安装站点编码' ;
ALTER TABLE hi_goods_basic_pre ADD `uniacid` INT(11) UNSIGNED NOT NULL COMMENT '所属公众号编码' ;
ALTER TABLE hi_goods_basic_pre ADD `uid` INT(11) UNSIGNED NOT NULL COMMENT '操作者所属后台会员编码' ;
ALTER TABLE hi_goods_basic_pre ADD `mid` INT(11) UNSIGNED NOT NULL COMMENT '操作者所属前台会员编码' ;
ALTER TABLE hi_goods_basic_pre ADD `fid` INT(11) UNSIGNED NOT NULL COMMENT '操作者所属前台粉丝(非注册用户)编码' ;
ALTER TABLE hi_goods_basic_pre ADD `suffix` VARCHAR(50) NOT NULL COMMENT '对应表后缀(用于区分表)' ;
ALTER TABLE hi_goods_basic_pre ADD `setfor` VARCHAR(50) NOT NULL COMMENT '对应字段' ;
ALTER TABLE hi_goods_basic_pre ADD `value` TEXT NOT NULL COMMENT '参数具体值' ;
ALTER TABLE hi_goods_basic_pre ADD `status` TINYINT(1) NOT NULL DEFAULT '0'  COMMENT '站内状态代码' ;
ALTER TABLE hi_goods_basic_pre ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'  COMMENT '是否删除(1是0否)' ;
ALTER TABLE hi_goods_basic_pre ADD `createtime` INT(11) UNSIGNED NOT NULL  COMMENT '记录创建时间' ;
ALTER TABLE hi_goods_basic_pre ADD `statuscode` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '全站状态代码(-128~127)' ;
ALTER TABLE hi_goods_basic_pre ADD `create_at`TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP  COMMENT '记录更新时间' ;
ALTER TABLE hi_goods_basic_pre ADD INDEX`tid` (`tid`);
ALTER TABLE hi_goods_basic_pre ADD INDEX`uid` (`uid`);
ALTER TABLE hi_goods_basic_pre ADD INDEX`mid` (`mid`);
ALTER TABLE hi_goods_basic_pre ADD INDEX`siteid` (`siteid`);
ALTER TABLE hi_goods_basic_pre ADD INDEX`setfor` (`setfor`);