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