|
|
|
@ -370,4 +370,69 @@ CREATE TABLE `log_client_sub_merchant_id` (
|
|
|
|
|
`create_time` datetime NOT NULL COMMENT '创建时间',
|
|
|
|
|
`client_id` int(11) NOT NULL,
|
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table risk_merchant_record(
|
|
|
|
|
id varchar(50) not null comment 'id',
|
|
|
|
|
create_time datetime not null comment '创建时间',
|
|
|
|
|
expiry_time datetime not null comment '过期时间',
|
|
|
|
|
client_id int(11) not null comment '商户id',
|
|
|
|
|
client_moniker varchar(20) not null comment '商户code',
|
|
|
|
|
status varchar(5) not null comment '记录状态 0:未处理,1已处理,2处理中',
|
|
|
|
|
risk_types varchar(50) not null comment '触发的风控类型 "," 号分割',
|
|
|
|
|
risk_counts varchar(70) null comment '对应类型触发次数 "," 号分割',
|
|
|
|
|
primary key(id),
|
|
|
|
|
key(client_id) using BTREE
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table risk_white_list(
|
|
|
|
|
client_id int(11) not null comment '商户id',
|
|
|
|
|
client_moniker varchar(20) not null comment '商户code',
|
|
|
|
|
create_time datetime not null comment '创建时间',
|
|
|
|
|
is_valid TINYINT(1) DEFAULT 1 COMMENT '是否可用',
|
|
|
|
|
primary key(client_id),
|
|
|
|
|
key(client_id) USING BTREE,
|
|
|
|
|
key(client_moniker)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table risk_merchant_detail_log(
|
|
|
|
|
id varchar(50) not null comment 'id',
|
|
|
|
|
record_id varchar(50) not null comment '商户风控记录id',
|
|
|
|
|
create_time datetime not null comment '创建时间',
|
|
|
|
|
client_id int(11) not null comment '商户id',
|
|
|
|
|
auditor varchar(30) not null comment '操作者',
|
|
|
|
|
auditor_id varchar(50) not null comment '操作者id',
|
|
|
|
|
files varchar(500) null comment '上传附件 "," 号分割',
|
|
|
|
|
remark varchar(100) null comment '备注',
|
|
|
|
|
primary key(id),
|
|
|
|
|
key(client_id) using BTREE,
|
|
|
|
|
key(record_id)
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table risk_transaction_log(
|
|
|
|
|
id varchar(50) not null comment 'id',
|
|
|
|
|
order_id varchar(500) not null comment '问题订单id',
|
|
|
|
|
record_id varchar(50) not null comment '商户风控记录id',
|
|
|
|
|
amount DECIMAL(10,2) not null comment '过期时间',
|
|
|
|
|
channel varchar(15) NULL COMMENT '订单支付通道',
|
|
|
|
|
client_id int(11) not null comment '商户id',
|
|
|
|
|
risk_types varchar(50) not null comment '触发的风控类型 ","号分割 ',
|
|
|
|
|
create_time datetime not null,
|
|
|
|
|
primary key(id),
|
|
|
|
|
key(order_id),
|
|
|
|
|
key(record_id),
|
|
|
|
|
key(client_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
insert into `royalpay_production`.`sys_configs` ( `config_key`, `config_value`) values ( 'risk_counts', '3');
|
|
|
|
|
insert into `royalpay_production`.`sys_configs` ( `config_key`, `config_value`) values ( 'risk_total_amout', '5000');
|