Sample State - maggieyao1211/Open-Omakase GitHub Wiki
{
entities: { reviews: { 1: { id: 1, userId: 3, restaurantId: 5, comment: "I really like sushi here", rating: 5, }, 2: { id: 2, userId: 4, restaurantId: 6, comment: "I don't like poke here", rating: 1.5, }, }, users: { 3: { id: 3, username: "Bidiu", email: "[email protected]", passwordDigest: "aksjdhkajhskjzhxkjchjzkx", sessionToken: "a1o9209zlxjncjlzkx", }, 4: { id: 4, username: "Meimei", email: "[email protected]", passwordDigest: "ckvhbc8v9byu9hcj", sessionToken: "weuryh9zkcjcv", }, }, restaurants: { 5: { id: 5, name: "Kinjo", priceLevel: 4, rating: 4.5, }, 6: { id: 6, name: "French Laundry", priceLevel: 5, rating: 4.75, }, }, reservations { 100: { id: 100, userId: 3, restaurantId: 5, reserveTime: 2020-08-25, specialNotice: "No cinnamon please", }, 101: { id: 101, userId: 4, restaurantId: 6, reserveTime: 2020-12-11, specialNotice: "Birthday Party!", }, }, }, ui: { loading: true/false }, errors: { login: ["Incorrect username/password combination"], reviewForm: ["Comment body cannot be blank", "Rating must be chosen"], restaurantForm: ["Please enter restaurant name", "Price level must be set"], }, session: { currentUserId: 25 }
}