Replace UserPhoto with Avatar inheritance hierarchy and update UserBackground

Refactorkamo-shared-library
Shipped
November 23, 2025 at 7:25 PM UTC
Author
snadjafinia
Commit
483de41

- Renamed UserPhoto to Avatar (base class) using JPA JOINED inheritance - Created AvatarPhoto subclass for uploaded photos (stores file extension only) - Created AvatarAvatar Creator subclass with all Avatar Creator parameters: * style, seed, size, scale, rotate, translateX, translateY, flip, radius * bgColor1, bgColor2, useGradient, bgRotation - Updated UserBackground to store file extension instead of URL (MinIO uses ID) - Added Avatar relationships to User class (OneToMany avatars, ManyToOne avatar) - Added Avatar relationships to Member class (OneToMany avatars, ManyToOne avatar) - Files stored in MinIO using record ID: {id}.{fileExtension}

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing