Sample State - minwang2022/SplitDice GitHub Wiki

{
 entities: {
      user: { 
          1: {
              id: 1,
              username: "aragonite",
              email: "[email protected]"
              since: "May 2021"
              avatarImg: "path/avatar1.png"
             },
          2: {
              id: 2,
              username: "dratini",
              email: "[email protected]"
              since: "May 2021"
              avatarImg: "path/avatar2.png"
             },    

          3: {
              id: 3,
              username: "mew",
              email: "[email protected]"
              since: "May 2021"
              avatarImg: "path/avatar3.png"
             },  

          4: {
              id: 4,
              username: "mewtwo",
              email: "[email protected]"
              since: "May 2021"
              avatarImg: "path/avatar4.png"
             }
          }, 
      friends: {
          5: {
              id: 5,
              friendId: 2
             },
          6: {
              id: 6,
              friendId: 3
             },
          7: {
              id: 7,
              friendId: 4
             },
          },
     expenses: {
          8: {
              id: 8,
              belongToGroupId: 30,
              expense: 100,
              description: "toll expense",
              category: "transportation",
              note: "",
              authorId: 1,
              expenseDate: "May 4 2021"
              expense_split_percentage: 0.25,
              paid: false
              createdAt: "2021-05-04 20:44:10 -0400"
             },
              
          9: {
              id: 9,
              belongToGroupId: 30,
              expense: 300.10,
              description: "Snowboard Trip food expense",
              category: "Food",
              note: "",
              authorId: 1,
              expenseDate: "May 4 2021"
              expense_split_percentage: 0.25,
              paid: false
              createdAt: "2021-05-04 20:45:20 -0400"
             },         
         10: {
              id: 10,
              belongToGroupId: 30,
              expense: 1500.10,
              description: "Airbnb house renting for 7 days",
              category: "Food",
              note: "",
              authorId: 1,
              expenseDate: "May 4 2021"
              expense_split_percentage: 0.25,
              paid: false
              createdAt: "2021-05-04 20:45:40 -0400"
             },
         11: {
              id: 11,
              belongToGroupId: 30,
              expense: 700,
              description: "Car renting for 8 days",
              category: "Car Rental",
              note: "",
              authorId: 2,
              expenseDate: "May 4 2021"
              expense_split_percentage: 0.25,
              paid: false
              createdAt: "2021-05-04 20:55:40 -0400"
             }
          },
      billSplit: {
         11: { 
              id: 11,
              splitAmount: +1250.15,
              receiver: 1,
              receiver_paid: false,
             }
          },
     group: {
        30:  {
              id: 30,
              groupName: "snowboard trip",
              groupType: "travel",
             }
            },
     groupMemberTable: {
        31:  {
              id: 31,
              groupId: 30,
              groupMemberId: [1, 2, 3, 4],
             }
            },
     comment: {
        32:  {
              id: 32,
              comment: "food is so delicious",
              author_id: 2,
              expense_id: 9,
             },
        33:  {
              id: 33,
              comment: "strong agree, everything is fresh",
              author_id: 3,
              expense_id: 9,
             }
      },
  ui: {
       loading: false,
       modal: "signup"
      },
  session: {
       currentId: 1
       bills: [8, 9, 10, 11]
      },
  error: {
       login: ["something went wrong"],
       addExpense: ["You must enter a description."]
      }    
}```