|
|
@ -1785,7 +1785,7 @@ CREATE TABLE `tab_company_game_ratio` (
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `company_id` (`company_id`) USING BTREE,
|
|
|
|
KEY `company_id` (`company_id`) USING BTREE,
|
|
|
|
KEY `relation_game_id` (`relation_game_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` (
|
|
|
|
CREATE TABLE `tab_company_game_ratio_log` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`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 `company_id` (`company_id`) USING BTREE,
|
|
|
|
KEY `status` (`status`) USING BTREE,
|
|
|
|
KEY `status` (`status`) USING BTREE,
|
|
|
|
KEY `relation_game_id` (`relation_game_id`) USING BTREE
|
|
|
|
KEY `relation_game_id` (`relation_game_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
|
|
) 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='公司关系绑定申请记录';
|
|
|
|