State of Shape - akoven/Pupperz GitHub Wiki
State shape for Pupperz:
session: {},
users: {
userId: {
userData,
albums: {
albumId: {
albumData,
user: {userData of the user that created the album}
}
},
optionalOrderedList: []
},
photo: { //optional
photoData,
user: {userData of the user that uploaded the photo to a specific album},
comments: {
normalizedComments,
user: {user who wrote a comment}
},
optionalOrderedList: []
},
allPhotos: [array of photos for a specific album, or all photos belong to that user]
}