-
Notifications
You must be signed in to change notification settings - Fork 0
sample state
eric2523 edited this page Oct 16, 2020
·
6 revisions
{
entities: {
users: {
1: {
id: 1,
username: "pedaltothemedal5",
email: "[email protected]",
isInstructor: true/false
},
2: {
id: 2,
username: "datspeed",
email: "[email protected]",
isInstructor: true/false
}
},
workoutClasses: {
1: {
id: 1,
name: "Slow and Steady",
date: "2020-10-15 16:00:00",
skillLevel: "intermediate",
categoryId: 1,
instructorId: 2
},
5: {
id: 5,
name: "Morning HIIT",
date: "2020-11-05 07:00:00",
skillLevel: "advanced",
categoryId: 1,
instructorId: 2
}
},
categories: {
1: {
id: 1,
name: "Strength"
}
},
challenges: {
10: {
id: 10,
name: "The Annual",
startDate: "2020-10-01 06:00:00",
endDate: "2021-10-01 06:00:00",
active: true/false
}
},
songs: {
13: {
id: 13,
name: "Power",
artist: "Kanye West"
}
},
userClasses: {
1: {
id: 1,
userId: 1,
classId: 1
},
2: {
id: 2,
userId: 2,
classId: 5
}
},
workoutClassSongs: {
1: {
id: 1,
songId: 2,
workoutClassId: 3
}
},
userFollows: {
1: {
id: 1,
userId: 1,
followedUserId: 2
}
},
userChallenges: {
3: {
id: 3,
userId: 1,
challengeId: 10
}
}
},
ui: {
loading: true/false
},
errors: {
login: ["In correct username or email/password combination"],
classForm: ["Class is full or not available"]
},
session: { currentUserId: 1 }
}