{
entities: {
restaurants: {
1: {
id: 1,
name: "Dig Inn - 275 Madison",
address: 275 Madison Ave,
phone_number: 6469271480,
img_url: "http://maxpixel.freegreatpicture.com/static/photo/1x/Wildlife-Tropical-Pet-Colorful-Macaw-Parrot-Bird-410144.jpg",
cuisine: American,
rating: 4,
delivery_minimum: 12,
delivery_fee: 0,
open_time: 11:00,
close_time: 23:00,
menu_section_ids: [1, 66, 44],
menu_item_ids: [78, 90, 112],
review_ids: [78, 79, 80]
},
2: {
id: 2,
name: "Just Salad (37th St)",
address: 134 W 37 th St,
phone_number: 9179990713,
img_url: "http://maxpixel.freegreatpicture.com/static/photo/1x/Wildlife-Tropical-Pet-Colorful-Macaw-Parrot-Bird-410144.jpg",
cuisine: American,
rating: 4,
delivery_minimum: 10,
delivery_fee: 0,
open_time: 11:00,
close_time: 23:00
},
3: {
id: 3,
name: "Chopt Creative Salad Co.",
address: 350 Fifth Ave,
phone_number: 9292731656,
img_url: "http://maxpixel.freegreatpicture.com/static/photo/1x/Wildlife-Tropical-Pet-Colorful-Macaw-Parrot-Bird-410144.jpg",
cuisine: American
rating: 4,
delivery_minimum: 15,
delivery_fee: 2.99,
open_time: 11:00,
close_time: 23:00
}
},
menu_sections: {
1: {
id: 1,
restaurant_id: 1,
name: lunch_specials,
open_time: 11:00,
close_time: 14:00,
menu_item_ids: [11, 12, 13, 14]
}
}
menu_items {
1: {
id: 1,
restaurant_id: 1,
menu_section_id: 1,
name: 'Charred Chicken',
description: 'Charred chicken marinated with lemon, fennel seeds and mustard seeds.',
price: 12.54,
item_option_section_ids: [9, 67, 70],
item_option_ids: [22, 24, 76]
},
2: {
id: 2,
restaurant_id: 1,
menu_section_id: 1,
name: 'Happy Valley Meatballs',
description: 'Local beef and chicken meatball w/ dried apricot and tomato chutney. Gluten-free, contains egg. Now comes w/ 3 meatballs. Add an extra one for $1.06. Includes choice of grains or greens, and 2 sides.',
price: 12.54
},
3: {
id: 3,
restaurant_id: 1,
menu_section_id: 1,
name: 'Wild Alaskan Salmon',
description: 'Wild Alaskan Salmon, lemon thyme, tarragon mustard.',
price: 14.65
}
},
item_option_sections {
1: {
id: 1,
item_id: 1,
name: 'choose your dressing',
descripion: 'must choose 1',
required: true,
min_allowed: 1,
max_allowed: 1,
item_option_ids: [13, 47, 98]
}
}
item_options {
1: {
id: 1,
item_id: 1,
item_option_section_id: 1,
name: italian
},
2: {
id: 2,
item_id: 1,
item_option_section_id: 1,
name: special dressing,
price: 1.50
},
3: {
id: 3,
item_id: 1,
item_option_section_id: 1,
name: none
}
}
order {
1: {
id: 1,
user_id: 1,
restaurant_id: 1,
subtotal: 14.50,
tax: 1.37,
total: 15.87
special_instructions: 'Press buzzer twice.',
order_item_ids: [11, 15, 24, 56]
}
}
order_items: {
1: {
id: 1,
order_id: 1,
item_id: 1,
quantity: 1,
item_instructions: 'Add extra pickles.',
order_item_option_ids: [33, 36, 51, 81]
}
},
users: {
1: {
id: 1,
first_name: 'John',
last_name: 'Lennon',
email: '[email protected]'
},
2: {
id: 2,
first_name: 'Paul',
last_name: 'McCartney',
email: '[email protected]'
}
},
reviews: {
1: {
id: 1,
user_id: 1,
restaurant_id: 1,
rating: 4,
review: 'Liked it a lot!'
},
2: {
id: 2,
user_id: 2,
restaurant_id: 1,
rating: 1,
review: 'Food came late.'
}
}
},
ui: {
loading: true / false,
modal: sign in/sign up,
modal: menu item popup
},
errors: {
signup: ["First name cannot be blank!", "Last na ecannot be blank", "Email cannot be blank!", "Password cannot be blank!", "Email already exists!", "Email must be formatted like [email protected]", "Password must be at least 6 characters"],
login: ["Email cannot be blank!", "Password cannot be blank!", "Incorrect username/password combination"],
menuItem: ["Minimum quantity is 1", "Must select at least one option"],
order: ["Order cannot be blank!"]
},
session: {
id: 14,
email: "[email protected]",
}
}