Sample State - ppondo/Uncorkd GitHub Wiki

{
  entities: {

    checkins: {
      1: {
        id: 1,
        body: "Awesome IPA!!",
        rating: 4.50,
        authorId: 6,
        beverageId: 42,
        photo: null,
      },
      2: {
        id: 2,
        body: "great beer for a warm summer night",
        rating: 4.00,
        authorId: 12,
        beverageId: 15,
        photo: 'https://beerconnoisseur.com/sites/default/files/articles/2018/monday_night_brewing_debuts_rucksack_a_new_summer_seasonal/rucksack-cc.jpg',
      },
      3: {
        id: 3,
        body: "way too sour :(",
        rating: 2.50,
        authorId: 3,
        beverageId: 17,
        photo: null,
      }
    },

    beverages: {
      2: {
        id: 2,
        name: "Landshark Lager",
        style: "Lager",
        ABV: "4.6",
        averageRating: 3.50,
        breweryId: 1,
      },
      15: {
        id: 15,
        name: "Haze",
        style: "IPA",
        ABV: "8.2",
        averageRating: 4.25,
        breweryId: 7,
      },
      10: {
        id: 10,
        name: "Guinness Draught",
        style: "Stout",
        ABV: "4.2",
        averageRating: 5.00,
        breweryId: 12,
      }
    },
    users: {
      5: {
        id: 5,
        username: "i_love_beer",
        checkins: [],       
        profile_photo: "https://realnicepic.com/selfie",  
      },
      6: {
        id: 6,
        username: "ppondo",
        checkins: [2, 4, 10],
        profile_photo: "https://photo.com/default_silhouette", // default photo
      },
      17: {
        id: 17,
        username: "suzyG",
        checkins: [6, 9, 17, 34],
        profile_photo: "https://realnicepic.com/another_selfie",
      }
    },

    breweries: {
      7: {
        id: 7
        name: "Tree House Brewing Company",
        location: "Charlton, MA United States",
        numCheckins: 15,
        numBeverages: 4,
      },
      11: {
        id: 11
        name: "Anchorage Brewing Company",
        location: "Anchorage, AK United States",
        numCheckins: 1,
        numBeverages: 2,
      },
      12: {
        id: 12
        name: "Guinness",
        location: "Dublin, Ireland",
        numCheckins: 7,
        numBeverages: 3,
      },
    }
  },

  ui: {
    loading: true/false
  },

  errors: {
    signup: ["Email field cannot be blank"],
    beverageForm: ["beverage ABV cannot be blank"],
  },

  session: { currentUserId: 6 }
}