ayeryn / next-read

Reading list organizer
0 stars 0 forks source link

Book - schema #10

Open ayeryn opened 2 days ago

ayeryn commented 2 days ago

Match the schema with Google API data

Instead of saving Google Books record in DB (it will get huge), simply store the following information when a user adds a book to their list:

  1. userId: the DB id of the user
  2. listId: the list the book is being added to
  3. googleBookId: the unique id of the book in Google Books

We probably need to have a Book datatype to store self-reported books at some point in the future?