|
|
@ -371,3 +371,26 @@ CREATE TABLE `log_client_sub_merchant_id` (
|
|
|
|
`client_id` int(11) NOT NULL,
|
|
|
|
`client_id` int(11) NOT NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `pmt_sub_merchant_id` (
|
|
|
|
|
|
|
|
`sub_merchant_id` varchar(30) NOT NULL,
|
|
|
|
|
|
|
|
`merchant_id` varchar(30) NOT NULL,
|
|
|
|
|
|
|
|
`is_valid` tinyint(1) DEFAULT 1,
|
|
|
|
|
|
|
|
`operator` varchar(30) DEFAULT '',
|
|
|
|
|
|
|
|
`create_time` datetime DEFAULT NULL,
|
|
|
|
|
|
|
|
`update_time` datetime DEFAULT NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (`sub_merchant_id`)
|
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alter table sys_clients add column common_sub_merchant_id tinyint(1) default 0 comment '是否使用通用子商户号';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `cli_sub_merchant_id` (
|
|
|
|
|
|
|
|
`sub_merchant_id` varchar(30) NOT NULL,
|
|
|
|
|
|
|
|
`merchant_id` varchar(30) DEFAULT NULL,
|
|
|
|
|
|
|
|
`client_count` int(8) DEFAULT NULL,
|
|
|
|
|
|
|
|
`temp_sub_merchant` tinyint(1) DEFAULT 0,
|
|
|
|
|
|
|
|
`create_time` datetime DEFAULT NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (`sub_merchant_id`)
|
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|