Skip to content

Latest commit

 

History

History
68 lines (65 loc) · 1.12 KB

sample-state.md

File metadata and controls

68 lines (65 loc) · 1.12 KB
{
  session: {
    currentUser: {
      id: 1,
      username: "Leo"
    },
    errors: []
  },

  users: {
    1: {
      id: 1,
      username: "Leo",
      image_url: "https://cloudinary.com/console/welcome",
      description: "artists",
      pins: [1, 2, 4, 7],
      boards: [1, 2, 3],
      follows: {
        followers: [2, 4, 5],
        following: [1, 2]
      }
    },
    2: {
      id: 2,
      username: "Stanley",
      ...
    }
  },

  pins: {
    pins: {
      1: {
        id: 2,
        title: "Stealth Suit",
        image_url: "https://cloudinary.com/console/welcome",
        description: "Game asset for art",
        user_id: 5
      },
      2: {
        id 3:,
        title: "Vehicle Modeling",
        image_url: "https://cloudinary.com/console/welcome",
        description: "Game asset for vehicle",
        user_id: 4
      },
      3: {
        ...
      }
    },
    errors: []
  },

  boards: {
    1: {
      id: 1,
      board_name: "My CG Artist Collection",
      description: "Cool Game Assests",
      pin_ids:[1, 2, 3, 4]
      user_id: 1
    },
    2: {
      ...
    },
    errors: []
  }
}