Sample State - makaveddy/gigbrite GitHub Wiki
{
entities: {
users: {
1: {
id: 1,
first_name: "peter",
last_name: "parker",
email: "[email protected]",
createdEventIds: [1],
eventRegistrationIds: [2],
bookmarkedEventIds: [2]
},
2: {
id: 2,
first_name: "bruce",
last_name: "banner",
email: "[email protected]",
createdEventIds: [2],
eventRegistrationIds: [1],
bookmarkedEventIds: [1]
}
},
events: {
1: {
id: 1,
creatorId: 1,
eventTitle: "comic-con nyc",
description: "attention all superhero's! come and gather around your favorite comic artists!",
location: nyc,
startDate: 10/01/2020,
endDate: 10/04/2020,
eventCategories: [1]
},
2: {
id: 2,
creatorId: 2,
eventTitle: "food truck bonanza!",
description: "A secret garden filled with different types of food trucks.",
location: secret,
startDate: 08/05/2020,
endDate: 08/05/2020,
eventCategories: [2]
}
},
bookmarks: {
1: {
id: 1,
userId: 1,
eventId: 2
},
2: {
id: 2,
userId: 2,
eventId: 1
}
},
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"],
eventForm: ["Title cannot be blank", "Location cannot be blank", "Event start/end cannot be blank"]
},
session: {
currentUserId: 1
}
}