ALTER TABLE `sky_goods`
DROP COLUMN `points`,
DROP COLUMN `price`,
DROP COLUMN `rates`,
MODIFY COLUMN `method`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '[1,2,3,4,5,6,7]' COMMENT '商品扩展参数' AFTER `freight`,
MODIFY COLUMN `goods_mainKey`  text CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `submit_the_field`,
ADD COLUMN `profits`  decimal(24,0) NULL DEFAULT 100 COMMENT '商品利润比例' AFTER `money`,
ADD COLUMN `min`  int(255) NULL DEFAULT 1 COMMENT '最小下单数量' AFTER `profits`,
ADD COLUMN `max`  int(255) NULL COMMENT '最大下单数量' AFTER `min`;
DELETE FROM `sky_money`;
ALTER TABLE `sky_price`
ADD COLUMN `state`  int(255) NULL DEFAULT 1 COMMENT '是否使用' AFTER `money`;
DELETE FROM `sky_price`;
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('1','1','普通用户', '普通用户，和游客没什么区别!', '30', '3000', '0.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('2','2','铜牌代理', '铜牌代理，可以加盟分店了,其他用户在你分站下单你可以获得提成!', '28', '2800', '10.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('3','3','银牌代理', '银牌代理，除了可以加盟分店外，还可以赚取下级提成，并且收益比上一级别更高！，推荐购买!', '26', '2600', '20.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('4','4','金牌代理', '金牌代理，除了可以加盟分店外，还可以赚取下级提成，并且收益比上一级别更高！，推荐购买!', '24', '2400', '30.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('5','5','小站长', '小站长，除了可以加盟分店外，还可以赚取下级提成，并且收益比上一级别更高！，推荐购买!', '22', '2200', '40.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('6','6','平台站长', '平台站长，除了可以加盟分店外，还可以赚取下级提成，并且收益比上一级别更高！，推荐购买!', '20', '2000', '50.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('7','7','高级站长', '高级站长，除了可以加盟分店外，还可以赚取下级提成，并且收益比上一级别更高！，推荐购买!', '18', '1800', '60.00','2020-03-18 00:00:00');
INSERT INTO `sky_price` (`mid`,`sort`, `name`, `content`, `priceis`, `pointsis`, `money`, `addtime`)  VALUES ('8','8','领袖站长', '领袖站长，除了可以加盟分店外，还可以赚取下级提成，并且收益比上一级别更高！，推荐购买!', '16', '1600', '70.00','2020-03-18 00:00:00');
ALTER TABLE `sky_shequ`
ADD COLUMN `pattern`  varchar(255) NULL DEFAULT 1 COMMENT '对接模式' AFTER `secret`;
ALTER TABLE `sky_user`
ADD COLUMN `domain`  varchar(255) NULL COMMENT '店铺域名' AFTER `grade`,
ADD COLUMN `configuration`  text NULL COMMENT '其他配置，以序列格式存在' AFTER `domain`;
ALTER TABLE `sky_user`
MODIFY COLUMN `user_idu`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '唯一识别码' AFTER `id`,
CHANGE COLUMN `limit` `currency`  decimal(24,0) NULL DEFAULT 0 COMMENT '用户积分' AFTER `superior`,
DROP PRIMARY KEY,
ADD PRIMARY KEY (`id`);
CREATE TABLE `sky_withdrawal` (
  `id` int(12) NOT NULL AUTO_INCREMENT,
  `type` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL COMMENT '提现者姓名',
  `account_number` varchar(255) DEFAULT NULL COMMENT '提现账号',
  `uid` int(11) DEFAULT NULL,
  `remarks` text COMMENT '提现者备注',
  `state` int(1) DEFAULT '3' COMMENT '1，已完成,2已退回,3待处理',
  `result_code` text COMMENT '处理结果',
  `money` decimal(12,2) DEFAULT NULL COMMENT '提现金额',
  `endtime` datetime DEFAULT NULL COMMENT '处理时间',
  `addtime` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;