From 2220924ff639df9aae57172967d1c2463d10e7a3 Mon Sep 17 00:00:00 2001 From: Hankin Date: Wed, 28 May 2025 15:09:17 +0800 Subject: [PATCH] daily step --- 1748414109_create_table_daily_step.up.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 1748414109_create_table_daily_step.up.sql diff --git a/1748414109_create_table_daily_step.up.sql b/1748414109_create_table_daily_step.up.sql new file mode 100644 index 0000000..b4cfb58 --- /dev/null +++ b/1748414109_create_table_daily_step.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE `ufutx_daily_step`( + `id` BIGINT NOT NULL AUTO_INCREMENT , + `user_id` integer NOT NULL COMMENT "用户id", + `date` date NOT NULL COMMENT "日期", + `step` integer DEFAULT 0 COMMENT "步数", + `last_id` integer NOT NULL COMMENT "最后更新id", + `created_at` TIMESTAMP NULL DEFAULT NULL , + `updated_at` TIMESTAMP NULL DEFAULT NULL , + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = '每日步数'; \ No newline at end of file