-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Jacob Prall edited this page Aug 25, 2020
·
5 revisions
{
entities: {
user: {
1: {
id: 1,
email: "jacob@prall.com"
}
accounts: {
8: {
id: 8,
debit: true,
category: "Cash",
label: "Spending Money",
balance: 400.00,
userId: 1
},
9: {
id: 9,
debit: false,
category: "Loans",
label: "Student Loans",
balance: 30000.00,
userId: 1
}
},
transactions: {
6: {
id: 6,
accountId: 8,
amount: 20.00,
description: "Starbucks",
category: "Food & Drink",
tags: "coffee",
date: 01-01-2020
},
7: {
id: 7,
accountId: 9,
amount: 300.00,
description: "Loan Payment",
category: "Credit Cards & Loans",
tags: null,
date: 01-05-2020
}
},
goals: {
3: {
id: 3,
account_id: 8,
category: "Travel",
title: "Hawaii vacation"
},
bills: {
3: {
id: 3,
name: "Rent",
details: "Rent to Bob",
notes: "gotta pay the piper",
amount: 1000.50,
recurring: true,
due_date: 1-10-2020,
paid: false,
user_id: 1
}
},
ui: {
modal: {
component: [],
formType: [],
account: [],
goal: [],
transaction: []
}
},
errors: {
login: ["Incorrect username or password"],
accountForm: ["Account details cannot be blank"],
goalForm: ["Goal details cannot be blank"],
transactionForm: ["Transaction details cannot be blank"],
billForm: ["Bill details cannot be blank"]
},
session: {
id: 1
}