RBeneroff / Bok-Burger-Blog

Burger Blog - MongoDB, JS, Express, Passport
https://bokburgerlist.herokuapp.com/
0 stars 0 forks source link

Models/Schema Forms #3

Open RBeneroff opened 7 years ago

RBeneroff commented 7 years ago
  1. Restaurant Form -- MAYBE - leave out for now (not sure how have burger info INSIDE restaurant will affect the NEW forms. Want to be able to update all at once with no overlaps. If I decide to use it: restaurantName: String, location: String, burger: [burger] -- array if more than one, if not, just burger
RBeneroff commented 7 years ago

DONE: In schema.js:

  1. Burger Form burgerName: String, restaurantName: String, typeOfMeat: String, burgerPic: URL, rating: Number, review: String, postedAt: Date (moment-timezone) - or else just have a form field that can put the date, so every time its updated, or created the date can change there? updatedAt: Date (moment-timezone)
  2. User Form -- in it's own schema actually (user.js) username: String, password: String,
  3. Email Form firstName: String, lastName: String, email: String