-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Kevin Choy edited this page Aug 2, 2018
·
2 revisions
{
entities: {
users: {
1: {
id: 1,
email: dude@gmail.com,
first_name: Bill,
last_name: Smith,
created_at: "07/20/2016"
}
2: {
id: 1,
email: girl@gmail.com,
first_name: Jill,
last_name: Miller,
created_at: "07/20/2016"
}
},
camp_sites: {
1: {
id: 1,
owner_id: 45,
title: WindTree Vista,
daily_rate: 45,
state: CA,
city: Sacramento
created_at: "02/05/2012"
}
2: {
id: 2,
owner_id: 15,
title: Lake Tahoe Camp Grounds,
daily_rate: 15,
state: NV,
city: South Lake Tahoe
created_at: "01/10/2012"
}
},
bookings: {
1: {
id: 1,
campsite_id: 2,
guest_id: 83,
guests_total: 6,
check_in: "08/02/2018",
check_out: "08/10/2018"
}
2: {
id: 2,
campsite_id: 10,
guest_id: 43,
guests_total: 4,
check_in: "08/20/2018",
check_out: "09/02/2018"
}
},
reviews: {
1: {
id: 1,
body: "great fun times",
author_id: 18
campsite_id: 12,
created_at: "02/21/2017"
}
2: {
id: 2,
body: "nice and amazing views",
author_id: 8
campsite_id: 85,
created_at: "04/18/2018"
}
},
campsite_photos: {
1: {
id: 1,
campsite_id: 5,
image_url: "images/laketahoe.jpg"
}
},
activities: {
1: {
id: 1,
campsite_id: 7,
biking: true,
boating: true,
fishing: true,
hiking: true,
paddling: true,
climbing: false,
swimming: true,
wildlife_watching: false
}
}
},
ui: {
loading: true/false
},
errors: {
login: ["Invalid username/password combination"],
}
session: { currentUserId: 8 }
}