This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
-- 慢查询日志表
CREATE TABLE IF NOT EXISTS sys_slow_query_log (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
method_name VARCHAR(200) NOT NULL COMMENT '方法名',
execution_time BIGINT NOT NULL COMMENT '执行时间(ms)',
threshold BIGINT NOT NULL COMMENT '阈值(ms)',
params TEXT COMMENT '请求参数',
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
INDEX idx_method_name (method_name),
INDEX idx_execution_time (execution_time),
INDEX idx_create_time (create_time)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='慢查询日志表';