website refactor

This commit is contained in:
2026-01-16 16:46:57 +01:00
parent 37b1aa626c
commit 2f53727702
445 changed files with 1160 additions and 1150 deletions

View File

@@ -4,7 +4,7 @@
* Represents an achievement earned by a specific user.
*/
import type { Entity } from '@core/shared/domain/Entity';
import { Entity } from '@core/shared/domain/Entity';
export interface UserAchievementProps {
id: string;
@@ -15,8 +15,7 @@ export interface UserAchievementProps {
progress?: number; // For partial progress tracking (0-100)
}
export class UserAchievement implements Entity<string> {
readonly id: string;
export class UserAchievement extends Entity<string> {
readonly userId: string;
readonly achievementId: string;
readonly earnedAt: Date;
@@ -24,7 +23,8 @@ export class UserAchievement implements Entity<string> {
readonly progress: number;
private constructor(props: UserAchievementProps) {
this.id = props.id;
super(props.id);
this.userId = props.userId;
this.achievementId = props.achievementId;
this.earnedAt = props.earnedAt;