Pinjasaur/whenisgucci

Create DB Schemas

Closed this issue · 1 comments

Create MongoDB Schemas/Models via Mongoose. Currently we only have the 3 we mocked up.

Create a models/ directory within the repo root and place the <name>.js files there. Example: the "Event" Schema/Model would go in models/event.js.

Mongoose reference docs:

(4)

FYI, we'll be using Hashids to handling converting an ID to a "random" string for handling URLs.

Mongo already provides ObjectIds (_id). May be worth doing our own auto-incrementing IDs, at least for an Event.