State Shape - Gregory-DelCarlo/UnBlended GitHub Wiki

{
  entities: {
     users: {
        1: {
           id: 1,
           username: "Sample_user",
           passwordDigest: "AUHHF4623BB34738H",
           location: "San Francisco",
           userImageUrl: "www.somecoolphoto.com"
        },
        2: {
           id: 2,
           username: "Better_user",
           passwordDigest: "IUGHH8498HIUH742",
           location: "New York",
           userImageUrl: "www.someotherphoto.com"
        }
   },
     whiskey: {
        3: {
           id: 3,
           name: "Bulleit Rye",
           type: "Rye",
           ABV: 45,
           proof: 90,
           description: "Kentucky- Enters with soft mouthfeel. Mild tobacco and some cherry notes hit first. 
                         Mid-palate the rye becomes buttery smooth and well rounded between the sweet and 
                         spicy characteristics. This is an incredible sipper straight or on the rocks or 
                         mixed in a Manhattan.",
           distilleryId: 1,
           reviewIds: [1, 7, 4],
           whiskeyPhotoUrl: "www.whiskeyphoto.com"
        },
        7: {
           id: 7,
           name: "Bulleit Bourbon",
           type: "Bourbon",
           ABV: 45,
           proof: 90,
           description: "Bulleit Bourbon is a brand of Kentucky straight bourbon whiskey produced at the 
                         Bulleit Distillery in Lebanon, Kentucky and the Bulleit Distillery in Shelbyville, 
                         Kentucky, for the Diageo beverage conglomerate. It is characterized by a high rye 
                         content for a bourbon (at approximately 28% of the mash bill) and being aged at 
                         least six years. It is bottled at 45% abv (90 proof) for the US, Canadian, British, 
                         Dutch and Mexican markets. For Australian and Danish markets, it is bottled at 40% 
                         abv. It is also sold in Germany, Norway and Sweden.",
           distilleryId: 1,
           reviewIds: [2, 9, 11],
           whiskeyPhotoUrl: "www.whiskeyphoto2.com"
        }
     },
     distilleries {
          1: {
             id: 1,
             name: “Bulleit”,
             lat: 38.22287736469198 ,
             long: -85.13708646532419,
             description: "Built in 2017 and open to visitors in 2019, Bulleit Distilling Co. leads the 
                           industry with its state-of-the-art technology and offers a portfolio distilled 
                           and aged in the Bulleit family tradition, using a distinctive high rye recipe,
                           which gives them a bold, spicy taste.",
             whiskeyIds: [3, 7]
          }
     }
     reviews: {
          7: {
             id: 7,
             rating: 6.7,
             body: "Pretty sure I found god at the bottom"
             pour: "on the rocks",
             location: "The Deep End",
             whiskeyId: 3,
             userId: 1,
             commentIds: [1, 3, 5],
             cheersIds: [3, 7, 9]
     },
     comments: {
        3: {
           id: 3,
           body: "Starting the search",
           reviewId: 7,
           userId: 1
        }
     },
     whiskeyLists: {
        2: {
           id: 2,
           name: "Favorite Whiskeys",
           userId: 1
        }
     },
     cheers: {
        9: {
           id: 9,
           userId: 2,
           reviewId: 7
        }
     },
     likedWhiskeys: {
        1: {
           id: 1,
           drinkId: 3,
           listId: 2
        }
     }
  },
  ui: {
     loading: true/false,
     modal: true/false
  },
  session: {
     currentUser: 1
  },
  errors: {
     login: ["username/password combination is incorrect"],
     signUp: ["username/password can't be blank"],
     reviewForm: ["body can't be blank", "rating must be higher than 0.0", "please specify a pour"],
     commentForm: ["body can't be blank"],
     listForm: ["List name can't be blank"]
  }
}