From 11caa30cfa314b800fe0315d1b1a49e00e32389a Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Sun, 28 Jun 2020 11:11:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/update.sql | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Data/update.sql b/Data/update.sql index 13bdaac33..b4d59aba4 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -1998,4 +1998,32 @@ ADD UNIQUE INDEX `userid_type`(`user_id`, `type`) COMMENT '用户id与类型唯 ALTER TABLE `tab_promote` ADD COLUMN `withdraw_show` tinyint(2) NOT NULL DEFAULT 0 COMMENT '推广员提现查看权限 1 有 0 无' AFTER `group_remark`, -ADD COLUMN `withdraw_done` tinyint(2) NOT NULL DEFAULT 0 COMMENT '推广员提现查看权限 1 有 0 无' AFTER `withdraw_show`; \ No newline at end of file +ADD COLUMN `withdraw_done` tinyint(2) NOT NULL DEFAULT 0 COMMENT '推广员提现查看权限 1 有 0 无' AFTER `withdraw_show`; + +CREATE TABLE `tab_tasks` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `type` varchar(20) COLLATE utf8mb4_bin NOT NULL COMMENT '类型', + `params` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '参数', + `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态 0 待处理 1 处理中 2 处理成功 3 处理失败 ', + `result` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '处理结果', + `start_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '处理开始时间', + `end_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '处理结束时间', + `created_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; + +CREATE TABLE `tab_market_shift` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `promote_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会长ID', + `from_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '原市场专员ID', + `to_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '市场专员ID', + `split_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '切割时间', + `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态 0 待处理 1 处理成功 2 处理失败 ', + `remark` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '备注', + `creator_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者', + `created_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; + +ALTER TABLE `tab_deposit` add column `market_admin_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '市场专员ID' after promote_account; +ALTER TABLE `tab_spend` add column `market_admin_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '市场专员ID' after promote_account; \ No newline at end of file