DROP TABLE IF EXISTS `EXT_AX_API_LOG`;
CREATE TABLE IF NOT EXISTS EXT_AX_API_LOG
(
    `id`            bigint        NOT NULL AUTO_INCREMENT COMMENT '主键',
    `trace_id`      varchar(100)  NOT NULL DEFAULT '' COMMENT '唯一标识',
    `api_url`       varchar(2000) NOT NULL DEFAULT '' COMMENT '请求 API',
    `request_body`  text          COMMENT '请求参数',
    `response_body` text          COMMENT '响应参数',
    `take_time`     decimal(5, 2) NOT NULL COMMENT '执行耗时',
    `type`          varchar(10)   NOT NULL DEFAULT '' COMMENT '函数类型',
    `create_at`     datetime      NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_at`     datetime      NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `is_delete`     bigint        NOT NULL DEFAULT '0' COMMENT '是否删除',
    PRIMARY KEY (`id`)
) ENGINE = InnoDB COMMENT 'API 执行耗时记录表';
