Optimize code
This commit is contained in:
@@ -2,19 +2,19 @@ drop table if exists t_sys_log;
|
||||
|
||||
create table t_sys_log -- 系统日志表
|
||||
(
|
||||
id bigint not null,
|
||||
log_type varchar(50) not null, -- 日志类型
|
||||
operate_user_id bigint not null, -- 操作用户
|
||||
operate_time datetime not null default (strftime('%Y-%m-%d %H:%M:%f','now')), -- 操作时间
|
||||
request_uri varchar(500) default null, -- 请求 URI
|
||||
request_method varchar(10) default null, -- 请求方式
|
||||
request_params text, -- 请求参数
|
||||
request_ip varchar(20) not null, -- 请求 IP
|
||||
request_server_address varchar(50) not null, -- 请求服务器地址
|
||||
exception int not null default 0, -- 是否异常
|
||||
exception_info text, -- 异常信息
|
||||
start_time datetime not null, -- 开始时间
|
||||
end_time datetime not null, -- 结束时间
|
||||
execute_time bigint default null, -- 执行时间
|
||||
user_agent varchar(500) default null -- 用户代理
|
||||
id integer not null,
|
||||
log_type text not null, -- 日志类型
|
||||
operate_user_id integer not null, -- 操作用户
|
||||
operate_time text not null default (strftime('%Y-%m-%d %H:%M:%f', 'now')), -- 操作时间
|
||||
request_uri text default null, -- 请求 URI
|
||||
request_method text default null, -- 请求方式
|
||||
request_params text, -- 请求参数
|
||||
request_ip text not null, -- 请求 IP
|
||||
request_server_address text not null, -- 请求服务器地址
|
||||
exception integer not null default 0, -- 是否异常
|
||||
exception_info text, -- 异常信息
|
||||
start_time text not null, -- 开始时间
|
||||
end_time text not null, -- 结束时间
|
||||
execute_time integer default null, -- 执行时间
|
||||
user_agent text default null -- 用户代理
|
||||
);
|
||||
@@ -2,8 +2,8 @@ drop table if exists t_event_log;
|
||||
|
||||
create table if not exists t_event_log -- 事件日志表
|
||||
(
|
||||
id bigint not null primary key,
|
||||
event varchar(50) not null, -- 事件,
|
||||
operate_user_id bigint not null, -- 操作用户
|
||||
operate_time datetime not null default (strftime('%Y-%m-%d %H:%M:%f','now')) -- 操作时间
|
||||
id integer not null primary key,
|
||||
event text not null, -- 事件,
|
||||
operate_user_id integer not null, -- 操作用户
|
||||
operate_time text not null default (strftime('%Y-%m-%d %H:%M:%f', 'now')) -- 操作时间
|
||||
);
|
||||
@@ -2,8 +2,8 @@ drop table if exists t_statistics_log;
|
||||
|
||||
create table if not exists t_statistics_log -- 统计日志表
|
||||
(
|
||||
id bigint not null primary key,
|
||||
key varchar(50) not null, -- 记录键
|
||||
value varchar(100) not null, -- 记录值
|
||||
record_time datetime not null default (strftime('%Y-%m-%d %H:%M:%f', 'now')) -- 记录时间
|
||||
id integer not null primary key,
|
||||
key text not null, -- 记录键
|
||||
value text not null, -- 记录值
|
||||
record_time text not null default (strftime('%Y-%m-%d %H:%M:%f', 'now')) -- 记录时间
|
||||
)
|
||||
Reference in New Issue
Block a user