ALTER TABLE `cai_recharge_order`
    ADD COLUMN `device_type` varchar(255) NULL COMMENT '设备' AFTER `appid`;


DROP TABLE cai_order_logs;
CREATE TABLE `cai_order_logs`
(
    `id`          bigint        NOT NULL AUTO_INCREMENT,
    `order_no`    varchar(100)  NOT NULL COMMENT '订单号',
    `step_name`   varchar(100)  NOT NULL COMMENT '操作名称',
    `flag_name`   varchar(100)  NULL COMMENT '标识1',
    `in_params`   JSON COMMENT '入参',
    `out_params`  JSON COMMENT '出参',
    `remark`      varchar(2100) NULL COMMENT '备注',
    `success`     varchar(100)  NULL COMMENT '成功',
    `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    PRIMARY KEY (`id`) USING BTREE,
    KEY           `idx_order` (`order_no`) USING BTREE
) ENGINE = InnoDB
  AUTO_INCREMENT = 1;

