-
Notifications
You must be signed in to change notification settings - Fork 0
State Shape
junnac edited this page Nov 6, 2019
·
8 revisions
{
entities:{
users:{
1:{
id: 1,
username: user1,
email: "[email protected]"
},
2:{
id: 2,
username: user2,
email: "[email protected]"
},
3:{
id: 3,
username: user3,
email: "[email protected]"
}
},
cities:{
1:{
id: 1,
name: "Boston",
state: "Massachusetts"
},
2:{
id: 2,
name: "San Francisco",
state: "California"
},
3:{
id: 3,
name: "Kalamazoo",
state: "Michigan"
}
},
breweries:{
1:{
id: 1,
name: "Lord Hobo Brewing Company",
address: "5 Draper St, Woburn, MA 01801",
lat: 42.476323,
lng: -71.128895,
website: "lordhobobrewing.com",
description: "..."
cityId: 1,
},
2:{
id: 2,
name: "Bell's Brewery",
address: "355 E Kalamazoo Ave, Kalamazoo, MI 49007",
lat: 42.295153,
lng: -85.578998,
website: "bellsbeer.com",
description: "..."
cityId: 3,
},
3:{
id: 3,
name: "Lamplighter Brewing Co.",
address: "284 Broadway, Cambridge, MA 02139",
lat: 42.368241,
lng: -71.097918,
website: "lamplighterbrewing.com",
description: "..."
cityId: 1,
}
},
guides:{
1:{
id: 1,
title: "Best Breweries in Cambridge"
body: "..."
cityId: 1
},
2:{
id: 2,
title: "Best Breweries in San Francisco"
body: "..."
cityId: 2
}
},
breweryGuides:{
1:{
id: 1,
breweryId: 3,
guideId: 1
},
2:{
id: 2,
breweryId: 2,
guideId: 1
}
},
favorites:{
1:{
id: 1,
userId: 3,
breweryId: 1
},
2:{
id: 2,
userId: 1,
breweryId: 2
}
}
}
ui: {
loading: true/false
},
session: {
id: 1
},
errors: {
session: []
}
}