master
sunke 5 years ago
parent 889a79a6b5
commit cec446b5ab

@ -1074,6 +1074,22 @@ CREATE TABLE `sys_document_pop_rules` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--广--
CREATE TABLE `tab_sociaty_games` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`promote_id` int(11) NOT NULL COMMENT '会长ID',
`game_id` int(11) NOT NULL COMMENT '游戏ID',
`status` tinyint(1) NOT null DEFAULT '0' COMMENT '状态 0 禁用 1 启用',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT '工会授权游戏';
----
ALTER TABLE `tab_game`
ADD COLUMN `apply_auth` INT(11) NULL DEFAULT '1' COMMENT '申请权限(1为全部可申请2为部分会长可申请)' AFTER `game_detail_cover`;
-- 2020-01-14
-- cxj
ALTER TABLE `tab_promote_game_ratio`
@ -1102,14 +1118,76 @@ ADD COLUMN `can_view_recharge` tinyint(1) NOT NULL default 0 COMMENT '是否显
ALTER TABLE `tab_promote_belong`
ADD COLUMN `can_view_recharge` tinyint(1) NOT NULL default 0 COMMENT '是否显示充值数据 0否 1是';
--CP 2020-02-04
ALTER TABLE `tab_cp_game_ratio`
ADD COLUMN `instanceof` tinyint(2) NOT NULL DEFAULT 1 COMMENT '运算符1:>= ; 2:>' AFTER `game_id`;
-- 2020-02-04
ALTER TABLE `tab_promote`
ADD COLUMN `auto_review_withdraw_status` tinyint(3) NOT NULL DEFAULT 0 COMMENT '提现自动审核状态0-关闭 1-开启';
ALTER TABLE `tab_promote`
ADD COLUMN `auto_review_withdraw_updated_time` int(10) NOT NULL DEFAULT 0 COMMENT '提现自动审核状态更新时间';
ALTER TABLE `tab_promote`
ADD INDEX `auto_review_withdraw_status`(`auto_review_withdraw_status`) USING BTREE;
-- 2020-02-10 yulingwei 奖罚记录
CREATE TABLE `tab_reward_record` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reward_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '奖罚类型 1奖励 2惩罚',
`company_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '公司类型 1上游公司 2下游公司',
`company_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '公司ID 当公司类型为上游CP公司时展示合作方管理下的公司反之展示推广公司管理下的公司',
`accounts` json NOT NULL,
`relation_game_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏id',
`content` varchar(1000) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '事件内容',
`money` double(11,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '金额',
`reward_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '奖惩时间',
`remark` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '备注',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`creater_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- 公司录入信息
ALTER TABLE `tab_promote_company`
ADD COLUMN `settlement_contact` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 0 COMMENT '结算联系人' AFTER `last_up_time`,
ADD COLUMN `contact_phone` bigint(12) NOT NULL DEFAULT 0 COMMENT '联系电话' AFTER `settlement_contact`,
ADD COLUMN `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 0 COMMENT '所在地址' AFTER `contact_phone`,
ADD COLUMN `bank_card` varchar(60) NOT NULL DEFAULT 0 COMMENT '银行卡号' AFTER `address`,
ADD COLUMN `bank_cardname` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 0 COMMENT '银行卡名' AFTER `bank_card`,
ADD COLUMN `bank_name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 0 COMMENT '收款银行' AFTER `bank_cardname`,
ADD COLUMN `bank_address` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 0 COMMENT '开户网点' AFTER `bank_name`,
ADD COLUMN `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 0 COMMENT '备注' AFTER `bank_address`;
CREATE TABLE `tab_company_info` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`partner` varchar(60) NOT NULL COMMENT '合作方名称',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '添加人ID',
`status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '状态 0-禁用 1-启用',
`link_man` varchar(64) DEFAULT '' COMMENT '联系人',
`link_phone` varchar(24) DEFAULT NULL COMMENT '联系电话',
`address` varchar(255) DEFAULT NULL COMMENT '邮寄地址',
`company_tax_no` varchar(64) DEFAULT NULL COMMENT '公司税号',
`payee_name` varchar(24) DEFAULT NULL COMMENT '收款方名称',
`bank_account` varchar(32) DEFAULT NULL COMMENT '银行账号',
`opening_bank` varchar(128) DEFAULT NULL COMMENT '开户行',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加时间',
`last_up_time` int(10) NOT NULL DEFAULT '0' COMMENT '最后更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='内部公司信息';
-- 2020-02-10 liaojinling 会长押金
CREATE TABLE `tab_president_deposit` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`promote_id` varchar(60) NOT NULL COMMENT '会长ID',
`payer` varchar(50) NOT NULL DEFAULT '' COMMENT '付款人',
`amount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '金额',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',
`pay_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '押金付款方式',
`pay_way` tinyint(1) NOT NULL DEFAULT '0' COMMENT '付款方式',
`pay_account` varchar(60) NOT NULL DEFAULT '' COMMENT '付款账号',
`pay_confirm_time` int(10) NOT NULL DEFAULT '0' COMMENT '押金确认时间',
`refund_time` int(10) NOT NULL DEFAULT '0' COMMENT '退款时间',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '添加时间',
`update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会长押金';
-- 2020-02-10 yulingwei 推广工会管理 新增属性类型
ALTER TABLE `tab_promote_belong`
MODIFY COLUMN `company_belong` tinyint(1) UNSIGNED NOT NULL DEFAULT 3 COMMENT '工会归属0-内团1-外团 2-分发联盟 3 无' AFTER `verify_status`,
MODIFY COLUMN `company_relation` tinyint(1) UNSIGNED NOT NULL DEFAULT 2 COMMENT '工会关系0-自主开发及维护1-只维护 2 无' AFTER `company_belong`;
ADD COLUMN `company_type` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '工会类型 1公司 2个人' AFTER `can_view_recharge`;
-- 2020-02-10 cxj 推广提现--新增审核模式
ALTER TABLE `tab_withdraw`
ADD COLUMN `review_type` tinyint(3) NOT NULL DEFAULT 1 COMMENT '审核模式1-人工审核 2-自动审核';

Loading…
Cancel
Save