migrate/1725266271_create_table_step.up.sql

10 lines
409 B
SQL

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='历史步数表';