Add event log and statistic log

This commit is contained in:
2023-12-14 18:29:24 +08:00
parent c2e5248aa0
commit ed1124380b
12 changed files with 223 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
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')) -- 操作时间
);

View File

@@ -0,0 +1,9 @@
drop table if exists t_statistic_log;
create table if not exists t_statistic_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')) -- 记录时间
)