there are two tables:
1, user table
(id,name,age),
2, profile picture table
(id,user_id,image).
purpose: A user can save multiple avatars
.
query everyone, and each user record contains all his pictures (if any). The desired query result is: [(name,age, [image,image,image ])]
ask for advice