petiteoh / Nommly

App Academy Full Stack Clone Project
0 stars 0 forks source link

Design doc review, part 2: Database Schema and Sample frontend state #2

Open RosemaryGonzaga opened 4 years ago

RosemaryGonzaga commented 4 years ago

Hey Nikki, it's clear you put a lot of thought into drafting your schema and frontend state. My hat's off to you for all your great questions!

The design doc rubric is below, along with my feedback. Please let me know if you have any questions!

Database Schema

Comments

Sample State

Comments

petiteoh commented 4 years ago

Hi Rosemary! So much awesome feedback. Thank you so much for taking the time! Some questions on the schema below:

  1. Would I remove icon_url from the Users table as well? this is meant for them to upload a picture. I am assuming yes since this would not be hosted on AWS.
  2. For the polymorphic assoc. table (which terrifies me): a. do I set the preferable as a :boolean? so when selected ingredient(allergies) we change preferable to false? b. did I display the references correctly below this table? Not sure what is the convention.
  3. For the time column in my recipes, would the data type be :time? or what would you recommend?

All other updates on my Schema have been reflected as per your guidance. Also, I wasn't sure if those checkboxes are meant for you to check or myself! Apologies if I overwritten some of your notes! Let me know for future note. Thank you so much and I look forward to your feedback. Will go through the State Shape portion a little later after User Auth. Cheers! :)