{
entities: {
projects: {
1: {
id: 101,
title: "The world's first KS project",
subtitle: "The world's first KS project's subtitle",
creatorId: 1,
category: "Technology",
createdAt: "2020-01-01 12:00:00",
updateAt: "2020-01-01 12:00:00",
dueDate: "2020-2-17 12:00:00",
body: "Campaign body / project description",
pledgeLevelIds: [1,2,3],
target: 10000,
funding: 20000
},
2: {
id: 2,
title: "The world's second JS project",
subtitle: "subtitle,
body: "body",
creatorId: 2,
category: "Music",
dueDate: "2020-2-18 12:00:00",
target: 20000,
funding: 10
}
},
users: {
1: {
id: 1,
name: "creator01",
avatar: "s3.amazonaws.com/avatar/default.jpg"
},
2: {
id: 2,
name: "creator02",
avatar: "s3.amazonaws.com/avatar/default.jpg"
},
3: {
id: 3,
name: "backer01",
avatar: "s3.amazonaws.com/avatar/default.jpg"
}
},
rewards: {
1: {
id: 1,
projectId: 1,
amount: 1,
title: "Show Your Support",
description: "Back it because you believe in it.",
estimatedDelivery: "2020-02-28"
},
2: {
id: 2,
projectId: 1,
amount: 100,
quantity: 10,
title: "Gold Tier",
description: "Gold tier rewards",
estimatedDelivery: "2020-02-28"
},
3: {
id: 3,
projectId: 1,
amount: 1000,
quantity: 2,
remaining: 1,
title: "Platinum Tier",
description: "Plat tier rewards",
estimatedDelivery: "2020-02-28"
}
}
},
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"],
project: ["Title/Body/Date/etc cannot be blank"],
reward: ["Title/Description/Amount cannot be blank"]
},
session: { currentUser: {
id: 3,
name: "backer01",
avatar: "s3.amazonaws.com/avatar/default.jpg",
backedProjectIds: [1, 2]
}
}
}