generated from hack4impact-calpoly/nextjs-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
The first step to having user data stored in our MongoDB.
Acceptance Criteria
- create a collection called "devusers" in MongoDB
- create a file in the database folder titled userSchema.ts
- create a role enum with possible options "user" and "admin" (to represent the two current roles)
- both create an exported type called IUsers, and a mongoose schema with the following information for users:
- _id (do NOT put this in the schema, only put it in the type), email, name, role