feat(badges): 更新勋章系统,支持UUID作为勋章ID类型

feat(challenges): 优化进度报告,添加睡眠挑战勋章授予逻辑
fix(push-notifications): 修复推送测试服务初始化返回值问题
This commit is contained in:
2025-11-15 23:25:02 +08:00
parent 9c7bcb6083
commit 1c033cd801
4 changed files with 46 additions and 33 deletions

View File

@@ -31,11 +31,11 @@ export enum BadgeSource {
})
export class UserBadge extends Model {
@Column({
type: DataType.INTEGER,
type: DataType.CHAR(36),
defaultValue: DataType.UUIDV4,
primaryKey: true,
autoIncrement: true,
})
declare id: number;
declare id: string;
@ForeignKey(() => User)
@Column({