feat(users): add avatar and bio support, improve user profile handling

Introduce `avatarUrl` and `bio` fields in the user schema. Update repository, service, and controller to handle avatar uploads, processing, and bio updates. Add S3 integration for avatar storage and enhance user data handling for private and public profiles.
This commit is contained in:
Mathis HERRIOT
2026-01-14 21:42:46 +01:00
parent 975e29dea1
commit a30113e8e2
7 changed files with 163 additions and 6 deletions

View File

@@ -4,12 +4,12 @@ export interface User {
email: string;
displayName?: string;
avatarUrl?: string;
bio?: string;
role: "user" | "admin";
createdAt: string;
}
export interface UserProfile extends User {
bio?: string;
favoritesCount: number;
uploadsCount: number;
}