Appearance
DoCurious API Reference / types / UserBadge
Interface: UserBadge
Defined in: types/gamification.types.ts:120
A badge earned by a specific user, with the timestamp and context of how it was earned.
Extends
Properties
badge?
optionalbadge:Badge
Defined in: types/gamification.types.ts:124
Populated badge definition (loaded for display)
badgeId
badgeId:
string
Defined in: types/gamification.types.ts:122
createdAt
createdAt:
string
Defined in: types/common.types.ts:154
ISO 8601 datetime when the entity was created
Inherited from
earnedAt
earnedAt:
string
Defined in: types/gamification.types.ts:127
ISO datetime when the badge was awarded
id
id:
string
Defined in: types/common.types.ts:167
Inherited from
metadata?
optionalmetadata:Record<string,unknown>
Defined in: types/gamification.types.ts:130
Additional context (e.g., which challenge or streak milestone triggered the award)
updatedAt
updatedAt:
string
Defined in: types/common.types.ts:156
ISO 8601 datetime when the entity was last modified
Inherited from
userId
userId:
string
Defined in: types/gamification.types.ts:121