This commit is contained in:
2025-12-11 13:50:38 +01:00
parent e4c1be628d
commit c7e5de40d6
212 changed files with 2965 additions and 763 deletions

View File

@@ -1,9 +1,11 @@
/**
* Domain Entity: UserAchievement
*
*
* Represents an achievement earned by a specific user.
*/
import type { IEntity } from '@gridpilot/shared/domain';
export interface UserAchievementProps {
id: string;
userId: string;
@@ -13,7 +15,7 @@ export interface UserAchievementProps {
progress?: number; // For partial progress tracking (0-100)
}
export class UserAchievement {
export class UserAchievement implements IEntity<string> {
readonly id: string;
readonly userId: string;
readonly achievementId: string;