State Shape - cowfish813/Supertramp GitHub Wiki

{
    entities: {
        users: {
            1: {
                id: 1,
                username: 'nimbus',
                email: '[email protected]',
                firstName: 'Goku',
                lastName: 'Son'
            },
            2: {
                id: 2,
                username: 'Superman',
                email: '[email protected]',
                firstName: 'Clark',
                lastName: 'Kent'               
            }
        },
        listings: {
            1: {
                id: 1,
                name: 'Captain Ginyus Space Capsule',
                description: 'capsule pod',
                host_id: 1,
                locationCoordinate: [100, 200],
                country: 'New Zealand',
                area: 'Queenstown',
                price: '$350',
                capacity: 1,
                checkin: 2/25/20,
                checkout: 2/27/20,
                lodging_type: 'capsule',
                cancellation_policy: 'deadly',
                on_arrival: 'check in with Captain Ginyu at ph# 911',
                minimum_nights: 1

            },
            2: {
                id: 2,
                name: 'Fortress of Solitude',
                description: 'ice castle',
                hostId: 2,
                locationCoordinate: [100, 200],
                country: 'North Pole',
                area: 'north...',
                price: '$3500',
                capacity: 500,
                checkin: 3/25/20,
                checkout: 3/30/20,
                lodging_type: 'castle',
                cancellation_policy: 'strict',
                onArrival: 'key under doormat',
                minimumNights: 3

            }
        },

        amenities: {
            1: {
                id: 1,
                pets: false,
                toilets: false,
                showers: false,
                wifi: false,
                water: false,
                electricity: true,
                lighting: true,
                bedding: true,
                campfire: false,
                adaAccess: true,
                cooking: false,
                laundry: false,
                listingId: 1,
                parking: true,
                foraging: true
            },
            2: {
                id: 2,
                pets: false,
                toilets: false,
                showers: false,
                wifi: false,
                water: false,
                electricity: true,
                lighting: true,
                bedding: true,
                campfire: false,
                adaAccess: true,
                cooking: false,
                laundry: false,
                listing_id: 2,
                parking: true,
                foraging: true
            }
        },

        Activities: {
            1: {
                id: 1,
                starGazing: true,
                hiking: true,
                rockClimbing: true,
                wildLife_watching: true,
                biking: true,
                hunting: true,
                backpacking: true,
                surfing: false,
                horseback_riding: false,
                listingId: 1,
                snowSports: false

            },
            2: {
                id: 2,
                starGazing: true,
                hiking: true,
                rockClimbing: false,
                wildLife_watching: true,
                biking: true,
                hunting: false,
                backpacking: true,
                surfing: false,
                horseback_riding: false,
                listingId: 2,
                snowSports: false

            }
        },

        photos: {
            1: {
                id: 1,
                listingId: 1
            }
            2: {
                id: 2,
                listingId: 2
            }
        },

        reviews: {
            1: {
                id: 1,
                authorId: 1,
                listingId: 1,
                title: 'doesn''t fly anymore',
                body: 'no food',
                recommended: false
            }
            2: {
                id: 2,
                authorId: 2,
                listingId: 2,
                title: 'ultimate solitude',
                body: 'nobody for miles',
                recommended: true
            }
        },

        bookings: {
            1: {
                id: 1,
                listingId: 1,
                userId: 1,
                checkin: 2 / 25 / 20,
                checkout: 2 / 27 / 20,
                numberOfGuests: 1
            }
            2: {
                id: 2,
                listingId: 2,
                userId: 2,
                checkin: 3 / 25 / 20,
                checkout: 3 / 30 / 20,
                numberOfGuests: 1
            }
        },
        session: {
            currentUserId: 1
        },

        errors: {
            login: ["Incorrect username/password combination"],
            listingForm: ["Listing description cannot be blank"]
        },
        
        ui: {
            loading: true/false
        }

    }
}