Skip to content

Make user schema #4

@blwelsh

Description

@blwelsh

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions