feat(badges): 更新勋章系统,支持UUID作为勋章ID类型
feat(challenges): 优化进度报告,添加睡眠挑战勋章授予逻辑 fix(push-notifications): 修复推送测试服务初始化返回值问题
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user