feat(users): 添加用户每日健康数据步数字段,支持步数记录和更新

This commit is contained in:
richarjiang
2025-12-03 09:00:26 +08:00
parent c3b59752ee
commit 2ff2c58b43
3 changed files with 18 additions and 0 deletions

View File

@@ -101,6 +101,13 @@ export class UserDailyHealth extends Model {
})
declare stressLevel: number | null;
@Column({
type: DataType.INTEGER,
allowNull: true,
comment: '步数',
})
declare steps: number | null;
@Column({
type: DataType.DATE,
defaultValue: DataType.NOW,