-
Notifications
You must be signed in to change notification settings - Fork 2
Sample State
le-s edited this page Dec 15, 2018
·
5 revisions
{
entities: {
users: {
1: {
id: 1,
email: 'sle@gmail.com',
firstName: 'Steven',
lastName: 'Le',
},
2: {
id: 2,
email: 'jdoe@gmail.com',
firstName: 'John',
lastName: 'Doe',
}
},
cars: {
1: {
id: 1,
ownerId: 1,
year: 2000,
make: 'Mazda',
model: 'Miata',
price: 50,
description: 'Like a go kart',
mpg: 20,
fuelType: 'Gas',
numOfDoors: 2,
numOfSeats: 2,
bluetooth: false,
auxiliaryInput: true,
heatedSeats: false,
gps: false,
automaticTrans: false,
usbPorts: true,
backupCamera: false,
mods: 'coilovers, roll bar, flares',
address: '1 Something road',
city: 'San Francisco',
state: 'CA',
zipcode: 94101,
longitude: 37.7989,
latitude: -122.4012
}
},
rentals: {
1: {
id: 1,
carId: 1,
renterId: 2,
reserveDate: 2018-12-18,
returnDate: 2018-12-20,
}
},
reviews: {
1: {
id: 1,
authorId: 2,
carId: 1,
body: 'It was kinda slow, but fun on turns',
rating: 5
}
},
},
ui: {
},
errors: {
login: ["Incorrect credentials"],
rentalForm: ["Please check for valid dates"],
reviewForm: ["Please fill in all fields"]
},
session: { currentUserId: 1 }
}