ko-time/data-mysql.sql
2022-05-28 17:27:05 +08:00

42 lines
1.7 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create table ko_method_node (
id varchar(200) not null primary key comment '主键' ,
name varchar(200) null comment '类名+方法名' ,
class_name varchar(200) null comment '类名' ,
method_name varchar(200) null comment '方法名' ,
route_name varchar(200) null comment '路由controller才有' ,
method_type varchar(64) null comment '方法类型'
) comment '方法信息表';
create table ko_method_relation (
id varchar(200) not null primary key comment '' ,
source_id varchar(200) null comment '调用方id' ,
target_id varchar(200) null comment '被调用方id' ,
avg_run_time numeric(10,2) null comment '平均耗时' ,
max_run_time numeric(10,2) null comment '最大耗时' ,
min_run_time numeric(10,2) null comment '最小耗时'
) comment '方法调用关系表';
;
create table ko_exception_node (
id varchar(64) not null primary key comment '主键' ,
name varchar(64) null comment '异常名' ,
class_name varchar(64) null comment '类名' ,
message varchar(64) null comment '异常消息'
) comment '异常表';
create table ko_exception_relation (
id varchar(64) not null primary key comment '' ,
source_id varchar(64) null comment '调用方法id' ,
target_id varchar(64) null comment '异常id' ,
location int null comment '异常位置'
) comment '异常关系表';
create table ko_param_ana (
source_id varchar(64) null comment '调用方法id' ,
params varchar(64) null comment '参数组合,-分隔' ,
avg_run_time numeric(10,2) null comment '平均耗时' ,
max_run_time numeric(10,2) null comment '最大耗时' ,
min_run_time numeric(10,2) null comment '最小耗时'
) comment '参数分析表';