历史步数修改,redis数据异常丢失

This commit is contained in:
buke 2024-09-02 17:22:00 +08:00
parent 788914e77e
commit 7c11dddcdd

View File

@ -0,0 +1,10 @@
CREATE TABLE `ufutx_history_step`
(
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`step_id` int(11) NOT NULL DEFAULT '0',
`year_month` varchar(12) NOT NULL,
`step_count` int(11) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='历史步数表';