-
Notifications
You must be signed in to change notification settings - Fork 5
Sample State
taisiat edited this page May 5, 2023
·
11 revisions
{
entities: {
users: {
1: {
id: 1,
first_name: "Vin",
last_name: "Diesel",
approved_to_drive: false,
is_superhost: true,
is_clean_certified: true,
email: "[email protected]",
phone_number: "111-111-1111",
profile_pic_url: "https://i.imgur.com/example.jpg",
created_at: "2021-05-01T00:00:00.000Z"
hosted_cars_count : 4,
trips_count: 35,
photos_url: "example",
user_rating: "4.03"
}
},
cars: {
1: {
id: 1,
make: "Dodge",
model: "Charger",
year: 1970,
mpg: 15,
doors_count: 2,
seats_count: 5,
category: "Muscle Car",
automatic: false,
description: "Designed by Sean Smith and built to absolute perfection (as far as some beliefs) by SpeedKore. Featured as a minor car character in “The Fate of the Furious” and slightly more prominently in “F9” (aka “F9: The Fast Saga” or “Fast & Furious 9”). Gifted to Vin Diesel as a birthday present from the cast.",
guidelines: "Please return the car in the same condition as you received it. No smoking, no pets, no off-roading, no speeding",
daily_rate: 1000,
location: [37.92836210660829, -122.35291441475073],
active: true,
host_id: 1,
avg_accuracy_rating: "5.0",
avg_cleanliness_rating: "5.0",
avg_communication_rating: "5.0",
avg_convenience_rating: "5.0",
avg_maintenance_rating: "5.0",
created_at: "2021-05-01T00:00:00.000Z",
host: {},
photosUrl: "example",
reviews: {
1: {
driver:{}
}
}
}
},
trips: {
1: {
id: 1,
status: "pending",
start_date: "2021-05-05",
end_date: "2021-05-08",
start_hour: 12,
end_hour: 8,
delivery_info: "I will meet you at the airport.",
protection_plan: "standard protection plan",
payment_method: "credit card",
price: 3000,
driver_id: 2,
car_id: 1,
created_at: "2021-05-01T00:00:00.000Z"
}
},
reviews: {
1:{
id: 1,
star_rating: 5,
cleanliness_rating: 5,
maintenance_rating: 5,
communication_rating: 5,
convenience_rating: 5,
accuracy_rating: 5,
review: "This car is amazing!",
driver_id: 2,
car_id: 1,
created_at: "2021-05-01T00:00:00.000Z"
}
},
favorites: {
1: {
id: 1,
driver_id: 2,
car_id: 1
driver: {},
car: {
host: {}
}
}
},
session: {
user: {
id: 1,
first_name: "Vin",
last_name: "Diesel",
approved_to_drive: false,
is_superhost: true,
is_clean_certified: true,
email: "[email protected]",
phone_number: "111-111-1111",
profile_pic_url: "https://i.imgur.com/example.jpg",
created_at: "2021-05-01T00:00:00.000Z"
hosted_cars_count : 4,
trips_count: 35,
photos_url: "example",
user_rating: "4.03"
}
},
}