State Shape
brandonflores647 edited this page Jun 24, 2022
·
3 revisions
store = {
session: {},
spots: {
spotId: {
data: {
userId,
price,
name,
address,
city,
state,
country,
},
reviews: {
reviewId: {
reviewData,
user: {userData for who reviewed}
}
},
images: {
imgId: url,
...imgId: url
}
}
}
bookings: {
bookingId: {
bookingData,
user: {userData of user that booked}.
spot: {spotData for the booking}
}
}
}