Redux State Shape - davidjettt/Staybnb GitHub Wiki

General structure of the redux state shape for features.

Spots

{
    spotId: {
        spotId,
        ownerId,
        address,
        city,
        state,
        country,
        lat,
        lng,
        name,
        description,
        price,
        previewImage
    }
}

Reviews

{
    reviewId: {
        reviewId,
        userId,
        spotId,
        review,
        starrs
    }
}

Bookings

{
    bookingId: {
        bookingId,
        spotId,
        userId,
        stateDate,
        endDate,
        Spot: {
            spotId,
            ownerId,
            address,
            city,
            state,
            country,
            lat,
            lng,
            name,
            price,
            previewImage
        }
    }
}

Images

{
    imageId: {
        imageId,
        spotId,
        reviewId,
        url
    }
}