From 7fb7d657e2153fe977e0617c345039d54cdeb5f6 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 22 May 2020 15:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E5=8F=B8=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/update.sql | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/Data/update.sql b/Data/update.sql index 1645f3ef1..a8a8883b2 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -1785,7 +1785,7 @@ CREATE TABLE `tab_company_game_ratio` ( PRIMARY KEY (`id`), KEY `company_id` (`company_id`) USING BTREE, KEY `relation_game_id` (`relation_game_id`) USING BTREE -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='推广游戏分成比例'; CREATE TABLE `tab_company_game_ratio_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, @@ -1804,4 +1804,45 @@ CREATE TABLE `tab_company_game_ratio_log` ( KEY `company_id` (`company_id`) USING BTREE, KEY `status` (`status`) USING BTREE, KEY `relation_game_id` (`relation_game_id`) USING BTREE -) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; \ No newline at end of file +) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='推广游戏分成比例申请记录'; + +CREATE TABLE `tab_company_relation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `first_company_id` int(11) NOT NULL DEFAULT '0' COMMENT '甲方公司id', + `first_company_name` varchar(200) NOT NULL DEFAULT '' COMMENT '甲方公司名称', + `first_company_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0己方,1上游cp,2联运下游', + `second_company_id` int(11) NOT NULL DEFAULT '0' COMMENT '乙方公司id', + `second_company_name` varchar(200) NOT NULL DEFAULT '' COMMENT '乙方公司名称', + `second_company_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0己方,1上游cp,2联运下游', + `settlement_type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '结算类型:1-周结 2-月结', + `invoice_type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '结算类型:1-专票 2-普票', + `invoice_content` varchar(200) NOT NULL DEFAULT '' COMMENT '开票内容', + `is_payment` tinyint(3) NOT NULL DEFAULT '1' COMMENT '是否需要打款:1-是 2-否(线下)', + `collection` tinyint(2) DEFAULT '1' COMMENT '1甲方收款 2乙方收款', + PRIMARY KEY (`id`), + KEY `company_id` (`company_id`) USING BTREE, + KEY `status` (`status`) USING BTREE, + KEY `relation_game_id` (`relation_game_id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='公司关系绑定'; + +CREATE TABLE `tab_company_relation_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `first_company_id` int(11) NOT NULL DEFAULT '0' COMMENT '甲方公司id', + `first_company_name` varchar(200) NOT NULL DEFAULT '' COMMENT '甲方公司名称', + `first_company_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0己方,1上游cp,2联运下游', + `second_company_id` int(11) NOT NULL DEFAULT '0' COMMENT '乙方公司id', + `second_company_name` varchar(200) NOT NULL DEFAULT '' COMMENT '乙方公司名称', + `second_company_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0己方,1上游cp,2联运下游', + `settlement_type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '结算类型:1-周结 2-月结', + `invoice_type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '结算类型:1-专票 2-普票', + `invoice_content` varchar(200) NOT NULL DEFAULT '' COMMENT '开票内容', + `is_payment` tinyint(3) NOT NULL DEFAULT '1' COMMENT '是否需要打款:1-是 2-否(线下)', + `collection` tinyint(2) DEFAULT '1' COMMENT '1甲方收款 2乙方收款', + `remark` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '备注', + `status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '审核状态:-2管理员拒绝 -1市场部拒绝 0-待审核 1-市场部通过 2管理员通过', + `verify_log` varchar(2000) COLLATE utf8mb4_bin NOT NULL COMMENT '审核详细信息', + PRIMARY KEY (`id`), + KEY `company_id` (`company_id`) USING BTREE, + KEY `status` (`status`) USING BTREE, + KEY `relation_game_id` (`relation_game_id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='公司关系绑定申请记录';