-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
celestialskyz edited this page Mar 31, 2020
·
2 revisions
{ entities: {
users: {
11: {
id: 11,
username: "rhettmc",
reviews_left: [],
},
25: {
id: 25,
username: "linkneal",
}
34: {
id: 34,
username: "steviewlevine"
}
},
shows: {
1: {
id: 1,
name: "Dear Evan Hansen"
description: "sad tree boy makes a friend",
address: "239 West 45th Street"
city: "New York City",
zip: 10036,
phone_n: 2122396200
category: "drama"
},
2: {
id: 2,
name: "Come from Away"
description: "Canadians are super nice",
address: "236 W 45th St,"
city: "New York City",
zip: 10036,
phone_n: 2122396200
category "comedy"
},
3: {
id: 3,
name: "Hamilton"
description: "rap makes history cool now.",
address: "226 W 46th St"
city: "New York City",
zip: 10036,
category "drama",
}
3: {
id: 3,
name: "Book of Mormon"
description: "2 Americans introduce bestiality to the people of Central Africa.",
address: "230 West 49th Street"
city: "New York City",
zip: 10019,
phone_n: 8772502929
category "comedy",
}
4: {
id: 4,
name: "Waitress"
description: "Man risks medical license to eat pies.",
address: "409-412 Strand",
city: "London",
zip: WC2R 0NS,
phone_n: 02070877754
category "romantic comedy",
}
},
bookings: {
10: {
id: 10,
show_id:1,
reserver_id: 25,
time: 20:00,
date: 03-03-21,
},
11: {
id: 11,
show_id:3,
reserver_id: 25,
time: 20:00,
date: 09-23-20,
},
12: {
id: 11,
show_id:2,
reserver_id: 11,
time: 19:30,
date: 01-09-21,
},
}
reviews: {
9: {
id: 9,
body: "Touching, beautiful, and hopeful.",
writer_id: 34,
show_id: 1,
stars: 5,
},
3: {
id: 9,
body: "Hello, My name is Elder Price, And I would like to share with you the most amazing book",
writer_id: 11,
show_id: 3,
stars: 5,
},
4: {
id: 11,
body: "I felt like he was screaming at me, but in rhyme",
writer_id: 25,
show_id: 3,
stars: 4,
},
favorites: {
10: {
id: 10,
user_id: 34,
show_id: 2,
},
11: {
id: 11,
user_id: 11,
show_id: 11,
},
12: {
id: 12,
user_id: 25,
show_id: 1,
},
13: {
id: 13,
user_id: 25,
show_id: 3,
},
}
}, ui: { loading: true/false, sorting: true/false }, errors: { login: ["Incorrect username/password combination"], book: ["that time is no longer available"] }, session: { currentUserId: 25 } }