master
ELF 4 years ago
parent 76fcfec7c2
commit 11caa30cfa

@ -1999,3 +1999,31 @@ ADD UNIQUE INDEX `userid_type`(`user_id`, `type`) COMMENT '用户id与类型唯
ALTER TABLE `tab_promote` ALTER TABLE `tab_promote`
ADD COLUMN `withdraw_show` tinyint(2) NOT NULL DEFAULT 0 COMMENT '推广员提现查看权限 1 有 0 无' AFTER `group_remark`, 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`; 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;
Loading…
Cancel
Save