feat: sprint 3 — profile endpoints + avatar
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 32s

- GET /api/auth/me enrichi : avatar, plan actif, subscriptionDate
- GET /api/users/me/profile : profil complet (local UUID, sub, rôles)
- PATCH /api/users/me : update nickname / avatar (validation URL + longueur)
- User entity : champ avatar VARCHAR(500) nullable
- Migration 1742000000000-AddUserAvatar (appliquée VPS)
This commit is contained in:
2026-03-14 22:25:22 +01:00
parent 24ae8854ce
commit 30ef7312b5
5 changed files with 187 additions and 4 deletions

View File

@@ -22,6 +22,9 @@ export class User {
@Column({ type: "varchar", length: 100 })
nickname!: string;
@Column({ type: "varchar", length: 500, nullable: true })
avatar!: string | null;
@Column({ type: "boolean", default: true })
isActive!: boolean;