Sample State - MCavi/Accommodate GitHub Wiki

{
    enitities:{
        users:{
            42: {
                id: 42,
                email: "[email protected]",
                first_name: "Marcus",
                last_name: "Cavini",
                profile_thumb: "https://picture2",
                bookings_ids: [],
                listings_ids: [36]
            },
            13: {
                id: 13,
                email: "[email protected]",
                first_name: "Andreea",
                last_name: "Chavii",
                profile_thumb: "https://picture1",
                bookings_id: [1],
                listings_id: [28]
            }

        },
        listings:{
            36: {
                id: 36,
                host_id: 42,
                pictures: ["https://picture3", "https://picture4"]
                title: "Great place to chill",
                address: "123 somestreet somecity sometate, someZip"
                lat: 15.23,
                long: -100.6873,
                rate: 120.00,
                capacity: 2,
                num_bedroom: 1,
                num_bathroom: 1,
                description: "Just an amazing house",
                rating: 4.2
            }
            28: {
                id: 28,
                host_id: 13,
                pictures: ["https://picture5"]
                title: "Bad place to chill",
                address: "456 somestreet somecity sometate, someZip"
                lat: 115.23,
                long: 150.6873,
                rate: 1120.00,
                capacity: 1,
                num_bedroom: 1,
                num_bathroom: 0,
                description: "New house with beautiful views",  
                rating: 3.5
            }

        },
        reviews:{
            1:{
                id: 1, 
                author_id: 13,
                listing_id: 28,
                body: "Horrible, would never stay here again",
                rating: 5
            },
            2:{
                id: 2, 
                author_id: 13,
                listing_id: 36,
                body: "Had a great time and the hosts were awesome",
                rating: 3
            }

        },
        bookings:{
            1: {
                id: 2, 
                listing_id: 36, 
                renter_id: 13, 
                status: approved,
                start_date: "April 1, 2019",
                end_date: "April 3, 2019"
            }
        }
    },
    ui:{    
        loading: true/false
    },
    session:{
        currentUser: 42, 
        currentUserName: "Marcus"
    }

}