Sample State - fjswayze/Shack GitHub Wiki

{
  entities: {
    messages: {
      1: {
        id: 1,
        userId: 11,
        body: "Found a great shack in Norway!",
        messageableId: 5,
        messageableType: "channel",
        parentMessageId: '',
        created_at: (insert timestamp)
      }
    },
    users: {
      11: {
        id: 11,
        username: "Francis Swayze",
        email: "[email protected]",
        status: "",
        title: "", 
        channelIds: [5],
        direct_message_convoIds: [10]
        profile_picture: 46   `
      }
    },
    channels: {
      5: {
        id: 5,
        name: "Norwegian Shacks",
        description: "a channel for discussing the best shacks in Norway",
        private: true,
        userIds: [11, 13],
        messageIds: [1, 3, 5],
        adminId: 11
      }
    },
    directMessages: {
      10: {
        id: 10
        users: [3, 13],
        messages: [1, 3, 5],
      }
    },
    profilePictures: {
      46: {
        id: 46,
        url: "insert url here",
        user_id: 11
      }
    }
  },
  ui: {
    loading: true / false
  },
  errors: {
    login: ["Incorrect username/password combination"],
    messageForm: ["Message body cannot be blank"],
  },
  session: { currentUserId: 11 }
}